From fede0e64ca4753cc961e8308ddcef2b39dcb6f24 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 15:48:52 +0000 Subject: [PATCH 1/4] chore(internal): version bump --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 092fbebe..b6aa38de 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (0.3.0) + orb-billing (0.3.1) connection_pool GEM From e572719854490cfa7735dcc70d9cfd1dc4d4a122 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 16:49:04 +0000 Subject: [PATCH 2/4] chore: revert ignoring Gemfile.lock --- .gitignore | 1 - Gemfile.lock | 2 +- Rakefile | 2 +- scripts/bootstrap | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index edaa164e..3d26ceed 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,4 @@ bin/tapioca Brewfile.lock.json doc/ -Gemfile.lock sorbet/tapioca/* diff --git a/Gemfile.lock b/Gemfile.lock index b6aa38de..0624d6e1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/stainless-api/syntax_tree-rbs.git - revision: c30b50219918be7cfe3ef803a00b59d1e77fcada + revision: 140eb3ba2ff4b959b345ac2a7927cd758a9f1284 branch: main specs: syntax_tree-rbs (1.0.0) diff --git a/Rakefile b/Rakefile index e8317577..db2c83ed 100644 --- a/Rakefile +++ b/Rakefile @@ -11,7 +11,7 @@ require "rubocop/rake_task" tapioca = "sorbet/tapioca" ignore_file = ".ignore" -CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/ doc/ Gemfile.lock], *FileList["*.gem"], ignore_file) +CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/ doc/], *FileList["*.gem"], ignore_file) CLOBBER.push(*%w[sorbet/rbi/annotations/ sorbet/rbi/gems/], tapioca) diff --git a/scripts/bootstrap b/scripts/bootstrap index 9bf05537..cc31aa85 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -13,5 +13,4 @@ fi echo "==> Installing Ruby dependencies…" -rm -fr -v -- Gemfile.lock exec -- bundle install "$@" From c4cc44a8e280089938586de353b08e8091056ca0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 14:17:01 +0000 Subject: [PATCH 3/4] fix(internal): ensure formatting always uses c.utf-8 locale --- .rubocop.yml | 10 + Gemfile.lock | 2 +- README.md | 4 +- Rakefile | 27 +- lib/orb.rb | 1 + lib/orb/file_part.rb | 4 +- lib/orb/internal/type/enum.rb | 6 +- lib/orb/internal/type/request_parameters.rb | 8 +- lib/orb/internal/type/union.rb | 8 +- lib/orb/internal/util.rb | 2 +- lib/orb/models/alert.rb | 61 +- .../alert_create_for_customer_params.rb | 15 +- ...ert_create_for_external_customer_params.rb | 15 +- .../alert_create_for_subscription_params.rb | 15 +- lib/orb/models/alert_list_params.rb | 1 - lib/orb/models/alert_update_params.rb | 9 +- lib/orb/models/amount_discount.rb | 13 +- lib/orb/models/billable_metric.rb | 20 +- lib/orb/models/coupon.rb | 21 +- lib/orb/models/coupon_create_params.rb | 14 +- lib/orb/models/coupon_list_params.rb | 2 - .../coupons/subscription_list_params.rb | 1 - lib/orb/models/credit_note.rb | 94 +- lib/orb/models/credit_note_create_params.rb | 12 +- lib/orb/models/credit_note_list_params.rb | 1 - lib/orb/models/customer.rb | 115 +- lib/orb/models/customer_create_params.rb | 94 +- lib/orb/models/customer_list_params.rb | 1 - .../customer_update_by_external_id_params.rb | 94 +- lib/orb/models/customer_update_params.rb | 92 +- .../balance_transaction_create_params.rb | 6 +- .../balance_transaction_create_response.rb | 2 - .../balance_transaction_list_params.rb | 1 - .../balance_transaction_list_response.rb | 2 - .../cost_list_by_external_id_params.rb | 7 +- .../cost_list_by_external_id_response.rb | 6 +- lib/orb/models/customers/cost_list_params.rb | 7 +- .../models/customers/cost_list_response.rb | 6 +- .../credit_list_by_external_id_params.rb | 2 - .../models/customers/credit_list_params.rb | 2 - ...dger_create_entry_by_external_id_params.rb | 33 +- ...er_create_entry_by_external_id_response.rb | 7 - .../credits/ledger_create_entry_params.rb | 33 +- .../credits/ledger_create_entry_response.rb | 7 - .../ledger_list_by_external_id_params.rb | 13 +- .../ledger_list_by_external_id_response.rb | 7 - .../customers/credits/ledger_list_params.rb | 17 +- .../customers/credits/ledger_list_response.rb | 7 - .../top_up_create_by_external_id_params.rb | 25 +- .../top_up_create_by_external_id_response.rb | 6 - .../customers/credits/top_up_create_params.rb | 22 +- .../credits/top_up_create_response.rb | 6 - .../top_up_list_by_external_id_params.rb | 1 - .../top_up_list_by_external_id_response.rb | 6 - .../customers/credits/top_up_list_params.rb | 1 - .../customers/credits/top_up_list_response.rb | 6 - lib/orb/models/dimensional_price_group.rb | 4 +- .../dimensional_price_group_create_params.rb | 1 - .../dimensional_price_group_list_params.rb | 1 - lib/orb/models/dimensional_price_groups.rb | 12 +- lib/orb/models/discount.rb | 10 +- lib/orb/models/evaluate_price_group.rb | 2 +- lib/orb/models/event_ingest_params.rb | 13 +- lib/orb/models/event_ingest_response.rb | 3 - lib/orb/models/event_search_params.rb | 3 - lib/orb/models/event_search_response.rb | 4 - lib/orb/models/event_update_params.rb | 3 - .../models/events/backfill_close_response.rb | 4 - .../models/events/backfill_create_params.rb | 7 - .../models/events/backfill_create_response.rb | 4 - .../models/events/backfill_fetch_response.rb | 4 - lib/orb/models/events/backfill_list_params.rb | 1 - .../models/events/backfill_list_response.rb | 4 - .../models/events/backfill_revert_response.rb | 4 - lib/orb/models/events/event_volumes.rb | 6 +- lib/orb/models/events/volume_list_params.rb | 3 - lib/orb/models/invoice.rb | 359 +- lib/orb/models/invoice_create_params.rb | 35 +- .../models/invoice_fetch_upcoming_response.rb | 63 +- lib/orb/models/invoice_issue_params.rb | 1 - lib/orb/models/invoice_level_discount.rb | 8 +- .../models/invoice_line_item_create_params.rb | 1 - .../invoice_line_item_create_response.rb | 32 +- lib/orb/models/invoice_list_params.rb | 16 +- lib/orb/models/invoice_update_params.rb | 1 - lib/orb/models/item.rb | 15 +- lib/orb/models/item_list_params.rb | 1 - lib/orb/models/item_update_params.rb | 14 +- lib/orb/models/metric_create_params.rb | 1 - lib/orb/models/metric_list_params.rb | 1 - lib/orb/models/metric_update_params.rb | 1 - lib/orb/models/percentage_discount.rb | 14 +- lib/orb/models/plan.rb | 181 +- lib/orb/models/plan_create_params.rb | 1527 +- lib/orb/models/plan_list_params.rb | 7 +- lib/orb/models/plan_update_params.rb | 2 - .../plans/external_plan_id_update_params.rb | 2 - lib/orb/models/price.rb | 3395 ++-- lib/orb/models/price_create_params.rb | 159 +- lib/orb/models/price_evaluate_params.rb | 2 - lib/orb/models/price_evaluate_response.rb | 6 +- lib/orb/models/price_list_params.rb | 1 - lib/orb/models/price_update_params.rb | 1 - .../prices/external_price_id_update_params.rb | 1 - lib/orb/models/subscription.rb | 208 +- lib/orb/models/subscription_cancel_params.rb | 8 +- .../models/subscription_cancel_response.rb | 78 +- .../subscription_change_apply_response.rb | 79 +- .../subscription_change_cancel_response.rb | 79 +- .../subscription_change_retrieve_response.rb | 79 +- lib/orb/models/subscription_create_params.rb | 3680 ++-- .../models/subscription_create_response.rb | 78 +- .../models/subscription_fetch_costs_params.rb | 7 +- .../subscription_fetch_costs_response.rb | 6 +- .../subscription_fetch_schedule_params.rb | 1 - .../subscription_fetch_schedule_response.rb | 1 - .../models/subscription_fetch_usage_params.rb | 14 +- lib/orb/models/subscription_list_params.rb | 7 +- .../subscription_price_intervals_params.rb | 2122 ++- .../subscription_price_intervals_response.rb | 78 +- ...ubscription_schedule_plan_change_params.rb | 3697 ++-- ...scription_schedule_plan_change_response.rb | 78 +- .../subscription_trigger_phase_params.rb | 2 - .../subscription_trigger_phase_response.rb | 78 +- ...iption_unschedule_cancellation_response.rb | 78 +- ...ule_fixed_fee_quantity_updates_response.rb | 78 +- ...nschedule_pending_plan_changes_response.rb | 78 +- ...iption_update_fixed_fee_quantity_params.rb | 9 +- ...tion_update_fixed_fee_quantity_response.rb | 78 +- lib/orb/models/subscription_update_params.rb | 5 - .../subscription_update_trial_params.rb | 10 +- .../subscription_update_trial_response.rb | 78 +- lib/orb/models/subscription_usage.rb | 85 +- lib/orb/models/subscriptions.rb | 12 +- lib/orb/models/trial_discount.rb | 13 +- lib/orb/models/usage_discount.rb | 14 +- lib/orb/resources/alerts.rb | 61 +- lib/orb/resources/coupons.rb | 32 +- lib/orb/resources/coupons/subscriptions.rb | 7 +- lib/orb/resources/credit_notes.rb | 21 +- lib/orb/resources/customers.rb | 107 +- .../customers/balance_transactions.rb | 7 +- lib/orb/resources/customers/costs.rb | 10 +- lib/orb/resources/customers/credits.rb | 8 +- lib/orb/resources/customers/credits/ledger.rb | 47 +- .../resources/customers/credits/top_ups.rb | 30 +- lib/orb/resources/dimensional_price_groups.rb | 18 +- .../external_dimensional_price_group_id.rb | 4 +- lib/orb/resources/events.rb | 16 +- lib/orb/resources/events/backfills.rb | 12 +- lib/orb/resources/events/volume.rb | 9 +- lib/orb/resources/invoice_line_items.rb | 3 +- lib/orb/resources/invoices.rb | 69 +- lib/orb/resources/items.rb | 25 +- lib/orb/resources/metrics.rb | 25 +- lib/orb/resources/plans.rb | 37 +- lib/orb/resources/plans/external_plan_id.rb | 12 +- lib/orb/resources/prices.rb | 60 +- lib/orb/resources/prices/external_price_id.rb | 11 +- lib/orb/resources/subscription_changes.rb | 2 +- lib/orb/resources/subscriptions.rb | 156 +- rbi/orb/client.rbi | 9 +- rbi/orb/errors.rbi | 87 +- rbi/orb/file_part.rbi | 15 +- rbi/orb/internal/page.rbi | 25 +- rbi/orb/internal/transport/base_client.rbi | 204 +- .../transport/pooled_net_requester.rbi | 37 +- rbi/orb/internal/type/array_of.rbi | 76 +- rbi/orb/internal/type/base_model.rbi | 189 +- rbi/orb/internal/type/base_page.rbi | 18 +- rbi/orb/internal/type/boolean.rbi | 26 +- rbi/orb/internal/type/converter.rbi | 97 +- rbi/orb/internal/type/enum.rbi | 42 +- rbi/orb/internal/type/file_input.rbi | 22 +- rbi/orb/internal/type/hash_of.rbi | 58 +- rbi/orb/internal/type/request_parameters.rbi | 16 +- rbi/orb/internal/type/union.rbi | 85 +- rbi/orb/internal/type/unknown.rbi | 32 +- rbi/orb/internal/util.rbi | 299 +- rbi/orb/models.rbi | 33 +- rbi/orb/models/alert.rbi | 177 +- .../alert_create_for_customer_params.rbi | 87 +- ...rt_create_for_external_customer_params.rbi | 97 +- .../alert_create_for_subscription_params.rbi | 79 +- rbi/orb/models/alert_disable_params.rbi | 23 +- rbi/orb/models/alert_enable_params.rbi | 23 +- rbi/orb/models/alert_list_params.rbi | 43 +- rbi/orb/models/alert_retrieve_params.rbi | 14 +- rbi/orb/models/alert_update_params.rbi | 39 +- rbi/orb/models/amount_discount.rbi | 47 +- rbi/orb/models/billable_metric.rbi | 59 +- .../models/billing_cycle_relative_date.rbi | 16 +- rbi/orb/models/coupon.rbi | 48 +- rbi/orb/models/coupon_archive_params.rbi | 14 +- rbi/orb/models/coupon_create_params.rbi | 110 +- rbi/orb/models/coupon_fetch_params.rbi | 14 +- rbi/orb/models/coupon_list_params.rbi | 33 +- .../coupons/subscription_list_params.rbi | 22 +- rbi/orb/models/credit_note.rbi | 451 +- rbi/orb/models/credit_note_create_params.rbi | 87 +- rbi/orb/models/credit_note_fetch_params.rbi | 14 +- rbi/orb/models/credit_note_list_params.rbi | 37 +- rbi/orb/models/customer.rbi | 759 +- rbi/orb/models/customer_create_params.rbi | 987 +- rbi/orb/models/customer_delete_params.rbi | 14 +- .../customer_fetch_by_external_id_params.rbi | 14 +- rbi/orb/models/customer_fetch_params.rbi | 14 +- rbi/orb/models/customer_list_params.rbi | 37 +- ...gateway_by_external_customer_id_params.rbi | 14 +- ...nc_payment_methods_from_gateway_params.rbi | 14 +- .../customer_update_by_external_id_params.rbi | 1472 +- rbi/orb/models/customer_update_params.rbi | 985 +- .../balance_transaction_create_params.rbi | 71 +- .../balance_transaction_create_response.rbi | 215 +- .../balance_transaction_list_params.rbi | 37 +- .../balance_transaction_list_response.rbi | 223 +- .../cost_list_by_external_id_params.rbi | 78 +- .../cost_list_by_external_id_response.rbi | 286 +- rbi/orb/models/customers/cost_list_params.rbi | 67 +- .../models/customers/cost_list_response.rbi | 277 +- .../credit_list_by_external_id_params.rbi | 33 +- .../credit_list_by_external_id_response.rbi | 70 +- .../models/customers/credit_list_params.rbi | 33 +- .../models/customers/credit_list_response.rbi | 65 +- ...ger_create_entry_by_external_id_params.rbi | 174 +- ...r_create_entry_by_external_id_response.rbi | 1077 +- .../credits/ledger_create_entry_params.rbi | 176 +- .../credits/ledger_create_entry_response.rbi | 1125 +- .../ledger_list_by_external_id_params.rbi | 146 +- .../ledger_list_by_external_id_response.rbi | 1113 +- .../customers/credits/ledger_list_params.rbi | 163 +- .../credits/ledger_list_response.rbi | 1124 +- .../top_up_create_by_external_id_params.rbi | 127 +- .../top_up_create_by_external_id_response.rbi | 113 +- .../credits/top_up_create_params.rbi | 129 +- .../credits/top_up_create_response.rbi | 126 +- .../top_up_delete_by_external_id_params.rbi | 22 +- .../credits/top_up_delete_params.rbi | 20 +- .../top_up_list_by_external_id_params.rbi | 14 +- .../top_up_list_by_external_id_response.rbi | 119 +- .../customers/credits/top_up_list_params.rbi | 14 +- .../credits/top_up_list_response.rbi | 127 +- rbi/orb/models/dimensional_price_group.rbi | 33 +- .../dimensional_price_group_create_params.rbi | 35 +- .../dimensional_price_group_list_params.rbi | 22 +- ...imensional_price_group_retrieve_params.rbi | 14 +- rbi/orb/models/dimensional_price_groups.rbi | 31 +- ...nsional_price_group_id_retrieve_params.rbi | 19 +- rbi/orb/models/discount.rbi | 16 +- rbi/orb/models/evaluate_price_group.rbi | 40 +- rbi/orb/models/event_deprecate_params.rbi | 14 +- rbi/orb/models/event_deprecate_response.rbi | 11 +- rbi/orb/models/event_ingest_params.rbi | 68 +- rbi/orb/models/event_ingest_response.rbi | 86 +- rbi/orb/models/event_search_params.rbi | 31 +- rbi/orb/models/event_search_response.rbi | 54 +- rbi/orb/models/event_update_params.rbi | 35 +- rbi/orb/models/event_update_response.rbi | 11 +- .../models/events/backfill_close_params.rbi | 19 +- .../models/events/backfill_close_response.rbi | 93 +- .../models/events/backfill_create_params.rbi | 39 +- .../events/backfill_create_response.rbi | 92 +- .../models/events/backfill_fetch_params.rbi | 19 +- .../models/events/backfill_fetch_response.rbi | 93 +- .../models/events/backfill_list_params.rbi | 22 +- .../models/events/backfill_list_response.rbi | 90 +- .../models/events/backfill_revert_params.rbi | 19 +- .../events/backfill_revert_response.rbi | 92 +- rbi/orb/models/events/event_volumes.rbi | 42 +- rbi/orb/models/events/volume_list_params.rbi | 33 +- rbi/orb/models/invoice.rbi | 2091 +- rbi/orb/models/invoice_create_params.rbi | 166 +- rbi/orb/models/invoice_fetch_params.rbi | 14 +- .../models/invoice_fetch_upcoming_params.rbi | 20 +- .../invoice_fetch_upcoming_response.rbi | 2852 ++- rbi/orb/models/invoice_issue_params.rbi | 21 +- rbi/orb/models/invoice_level_discount.rbi | 15 +- .../invoice_line_item_create_params.rbi | 37 +- .../invoice_line_item_create_response.rbi | 949 +- rbi/orb/models/invoice_list_params.rbi | 114 +- rbi/orb/models/invoice_mark_paid_params.rbi | 31 +- rbi/orb/models/invoice_pay_params.rbi | 14 +- rbi/orb/models/invoice_update_params.rbi | 25 +- rbi/orb/models/invoice_void_params.rbi | 14 +- rbi/orb/models/item.rbi | 126 +- rbi/orb/models/item_create_params.rbi | 19 +- rbi/orb/models/item_fetch_params.rbi | 14 +- rbi/orb/models/item_list_params.rbi | 22 +- rbi/orb/models/item_update_params.rbi | 118 +- rbi/orb/models/metric_create_params.rbi | 35 +- rbi/orb/models/metric_fetch_params.rbi | 14 +- rbi/orb/models/metric_list_params.rbi | 37 +- rbi/orb/models/metric_update_params.rbi | 25 +- rbi/orb/models/pagination_metadata.rbi | 20 +- rbi/orb/models/percentage_discount.rbi | 51 +- rbi/orb/models/plan.rbi | 861 +- rbi/orb/models/plan_create_params.rbi | 7660 +++++--- rbi/orb/models/plan_fetch_params.rbi | 14 +- rbi/orb/models/plan_list_params.rbi | 61 +- rbi/orb/models/plan_update_params.rbi | 29 +- .../plans/external_plan_id_fetch_params.rbi | 19 +- .../plans/external_plan_id_update_params.rbi | 29 +- rbi/orb/models/price.rbi | 14993 ++++++++++----- rbi/orb/models/price_create_params.rbi | 746 +- rbi/orb/models/price_evaluate_params.rbi | 37 +- rbi/orb/models/price_evaluate_response.rbi | 17 +- rbi/orb/models/price_fetch_params.rbi | 14 +- rbi/orb/models/price_list_params.rbi | 22 +- rbi/orb/models/price_update_params.rbi | 25 +- .../prices/external_price_id_fetch_params.rbi | 19 +- .../external_price_id_update_params.rbi | 25 +- rbi/orb/models/subscription.rbi | 998 +- rbi/orb/models/subscription_cancel_params.rbi | 66 +- .../models/subscription_cancel_response.rbi | 1138 +- .../subscription_change_apply_params.rbi | 29 +- .../subscription_change_apply_response.rbi | 1288 +- .../subscription_change_cancel_params.rbi | 14 +- .../subscription_change_cancel_response.rbi | 1297 +- .../subscription_change_retrieve_params.rbi | 14 +- .../subscription_change_retrieve_response.rbi | 1306 +- rbi/orb/models/subscription_create_params.rbi | 15751 +++++++++------- .../models/subscription_create_response.rbi | 1138 +- .../subscription_fetch_costs_params.rbi | 69 +- .../subscription_fetch_costs_response.rbi | 277 +- rbi/orb/models/subscription_fetch_params.rbi | 14 +- .../subscription_fetch_schedule_params.rbi | 37 +- .../subscription_fetch_schedule_response.rbi | 52 +- .../subscription_fetch_usage_params.rbi | 115 +- rbi/orb/models/subscription_list_params.rbi | 67 +- .../subscription_price_intervals_params.rbi | 9003 +++++---- .../subscription_price_intervals_response.rbi | 1173 +- ...bscription_schedule_plan_change_params.rbi | 15512 ++++++++------- ...cription_schedule_plan_change_response.rbi | 1185 +- .../subscription_trigger_phase_params.rbi | 29 +- .../subscription_trigger_phase_response.rbi | 1160 +- ...ription_unschedule_cancellation_params.rbi | 14 +- ...ption_unschedule_cancellation_response.rbi | 1186 +- ...dule_fixed_fee_quantity_updates_params.rbi | 21 +- ...le_fixed_fee_quantity_updates_response.rbi | 1195 +- ...unschedule_pending_plan_changes_params.rbi | 14 +- ...schedule_pending_plan_changes_response.rbi | 1205 +- ...ption_update_fixed_fee_quantity_params.rbi | 83 +- ...ion_update_fixed_fee_quantity_response.rbi | 1186 +- rbi/orb/models/subscription_update_params.rbi | 35 +- .../subscription_update_trial_params.rbi | 76 +- .../subscription_update_trial_response.rbi | 1159 +- rbi/orb/models/subscription_usage.rbi | 392 +- rbi/orb/models/subscriptions.rbi | 29 +- rbi/orb/models/top_level_ping_params.rbi | 14 +- rbi/orb/models/top_level_ping_response.rbi | 10 +- rbi/orb/models/trial_discount.rbi | 49 +- rbi/orb/models/usage_discount.rbi | 47 +- rbi/orb/request_options.rbi | 18 +- rbi/orb/resources/alerts.rbi | 101 +- rbi/orb/resources/coupons.rbi | 51 +- rbi/orb/resources/coupons/subscriptions.rbi | 12 +- rbi/orb/resources/credit_notes.rbi | 35 +- rbi/orb/resources/customers.rbi | 209 +- .../customers/balance_transactions.rbi | 26 +- rbi/orb/resources/customers/costs.rbi | 29 +- rbi/orb/resources/customers/credits.rbi | 23 +- .../resources/customers/credits/ledger.rbi | 172 +- .../resources/customers/credits/top_ups.rbi | 86 +- .../resources/dimensional_price_groups.rbi | 38 +- .../external_dimensional_price_group_id.rbi | 12 +- rbi/orb/resources/events.rbi | 42 +- rbi/orb/resources/events/backfills.rbi | 52 +- rbi/orb/resources/events/volume.rbi | 12 +- rbi/orb/resources/invoice_line_items.rbi | 12 +- rbi/orb/resources/invoices.rbi | 113 +- rbi/orb/resources/items.rbi | 53 +- rbi/orb/resources/metrics.rbi | 40 +- rbi/orb/resources/plans.rbi | 104 +- rbi/orb/resources/plans/external_plan_id.rbi | 22 +- rbi/orb/resources/prices.rbi | 332 +- .../resources/prices/external_price_id.rbi | 141 +- rbi/orb/resources/subscription_changes.rbi | 30 +- rbi/orb/resources/subscriptions.rbi | 314 +- rbi/orb/resources/top_level.rbi | 12 +- sig/orb/internal/page.rbs | 2 - sig/orb/internal/type/request_parameters.rbs | 4 +- sig/orb/models/alert.rbs | 50 +- .../alert_create_for_customer_params.rbs | 10 +- ...rt_create_for_external_customer_params.rbs | 10 +- .../alert_create_for_subscription_params.rbs | 10 +- sig/orb/models/alert_disable_params.rbs | 2 - sig/orb/models/alert_enable_params.rbs | 2 - sig/orb/models/alert_list_params.rbs | 2 - sig/orb/models/alert_retrieve_params.rbs | 2 - sig/orb/models/alert_update_params.rbs | 10 +- sig/orb/models/amount_discount.rbs | 10 +- sig/orb/models/billable_metric.rbs | 16 +- sig/orb/models/coupon.rbs | 13 +- sig/orb/models/coupon_archive_params.rbs | 2 - sig/orb/models/coupon_create_params.rbs | 12 +- sig/orb/models/coupon_fetch_params.rbs | 2 - sig/orb/models/coupon_list_params.rbs | 2 - .../coupons/subscription_list_params.rbs | 2 - sig/orb/models/credit_note.rbs | 114 +- sig/orb/models/credit_note_create_params.rbs | 10 +- sig/orb/models/credit_note_fetch_params.rbs | 2 - sig/orb/models/credit_note_list_params.rbs | 2 - sig/orb/models/customer.rbs | 106 +- sig/orb/models/customer_create_params.rbs | 84 +- sig/orb/models/customer_delete_params.rbs | 2 - .../customer_fetch_by_external_id_params.rbs | 2 - sig/orb/models/customer_fetch_params.rbs | 2 - sig/orb/models/customer_list_params.rbs | 2 - ...gateway_by_external_customer_id_params.rbs | 2 - ...nc_payment_methods_from_gateway_params.rbs | 2 - .../customer_update_by_external_id_params.rbs | 84 +- sig/orb/models/customer_update_params.rbs | 84 +- .../balance_transaction_create_params.rbs | 2 - .../balance_transaction_create_response.rbs | 6 - .../balance_transaction_list_params.rbs | 2 - .../balance_transaction_list_response.rbs | 6 - .../cost_list_by_external_id_params.rbs | 2 - .../cost_list_by_external_id_response.rbs | 6 - sig/orb/models/customers/cost_list_params.rbs | 2 - .../models/customers/cost_list_response.rbs | 6 - .../credit_list_by_external_id_params.rbs | 2 - .../credit_list_by_external_id_response.rbs | 2 - .../models/customers/credit_list_params.rbs | 2 - .../models/customers/credit_list_response.rbs | 2 - ...ger_create_entry_by_external_id_params.rbs | 10 +- ...r_create_entry_by_external_id_response.rbs | 44 +- .../credits/ledger_create_entry_params.rbs | 10 +- .../credits/ledger_create_entry_response.rbs | 44 +- .../ledger_list_by_external_id_params.rbs | 2 - .../ledger_list_by_external_id_response.rbs | 44 +- .../customers/credits/ledger_list_params.rbs | 2 - .../credits/ledger_list_response.rbs | 44 +- .../top_up_create_by_external_id_params.rbs | 10 +- .../top_up_create_by_external_id_response.rbs | 4 - .../credits/top_up_create_params.rbs | 10 +- .../credits/top_up_create_response.rbs | 4 - .../top_up_delete_by_external_id_params.rbs | 2 - .../credits/top_up_delete_params.rbs | 2 - .../top_up_list_by_external_id_params.rbs | 2 - .../top_up_list_by_external_id_response.rbs | 4 - .../customers/credits/top_up_list_params.rbs | 2 - .../credits/top_up_list_response.rbs | 4 - sig/orb/models/dimensional_price_group.rbs | 2 - .../dimensional_price_group_create_params.rbs | 2 - .../dimensional_price_group_list_params.rbs | 2 - ...imensional_price_group_retrieve_params.rbs | 2 - sig/orb/models/dimensional_price_groups.rbs | 14 +- ...nsional_price_group_id_retrieve_params.rbs | 2 - sig/orb/models/discount.rbs | 10 +- sig/orb/models/evaluate_price_group.rbs | 10 +- sig/orb/models/event_deprecate_params.rbs | 2 - sig/orb/models/event_deprecate_response.rbs | 2 - sig/orb/models/event_ingest_params.rbs | 10 +- sig/orb/models/event_ingest_response.rbs | 6 - sig/orb/models/event_search_params.rbs | 2 - sig/orb/models/event_search_response.rbs | 4 - sig/orb/models/event_update_params.rbs | 2 - sig/orb/models/event_update_response.rbs | 2 - .../models/events/backfill_close_params.rbs | 2 - .../models/events/backfill_close_response.rbs | 2 - .../models/events/backfill_create_params.rbs | 2 - .../events/backfill_create_response.rbs | 2 - .../models/events/backfill_fetch_params.rbs | 2 - .../models/events/backfill_fetch_response.rbs | 2 - .../models/events/backfill_list_params.rbs | 2 - .../models/events/backfill_list_response.rbs | 2 - .../models/events/backfill_revert_params.rbs | 2 - .../events/backfill_revert_response.rbs | 2 - sig/orb/models/events/event_volumes.rbs | 13 +- sig/orb/models/events/volume_list_params.rbs | 2 - sig/orb/models/invoice.rbs | 282 +- sig/orb/models/invoice_create_params.rbs | 26 +- sig/orb/models/invoice_fetch_params.rbs | 2 - .../models/invoice_fetch_upcoming_params.rbs | 2 - .../invoice_fetch_upcoming_response.rbs | 66 +- sig/orb/models/invoice_issue_params.rbs | 2 - sig/orb/models/invoice_level_discount.rbs | 6 +- .../invoice_line_item_create_params.rbs | 2 - .../invoice_line_item_create_response.rbs | 38 +- sig/orb/models/invoice_list_params.rbs | 10 +- sig/orb/models/invoice_mark_paid_params.rbs | 2 - sig/orb/models/invoice_pay_params.rbs | 2 - sig/orb/models/invoice_update_params.rbs | 2 - sig/orb/models/invoice_void_params.rbs | 2 - sig/orb/models/item.rbs | 18 +- sig/orb/models/item_create_params.rbs | 2 - sig/orb/models/item_fetch_params.rbs | 2 - sig/orb/models/item_list_params.rbs | 2 - sig/orb/models/item_update_params.rbs | 18 +- sig/orb/models/metric_create_params.rbs | 2 - sig/orb/models/metric_fetch_params.rbs | 2 - sig/orb/models/metric_list_params.rbs | 2 - sig/orb/models/metric_update_params.rbs | 2 - sig/orb/models/pagination_metadata.rbs | 2 - sig/orb/models/percentage_discount.rbs | 10 +- sig/orb/models/plan.rbs | 118 +- sig/orb/models/plan_create_params.rbs | 1214 +- sig/orb/models/plan_fetch_params.rbs | 2 - sig/orb/models/plan_list_params.rbs | 2 - sig/orb/models/plan_update_params.rbs | 2 - .../plans/external_plan_id_fetch_params.rbs | 2 - .../plans/external_plan_id_update_params.rbs | 2 - sig/orb/models/price.rbs | 2924 ++- sig/orb/models/price_create_params.rbs | 156 +- sig/orb/models/price_evaluate_params.rbs | 2 - sig/orb/models/price_evaluate_response.rbs | 9 +- sig/orb/models/price_fetch_params.rbs | 2 - sig/orb/models/price_list_params.rbs | 2 - sig/orb/models/price_update_params.rbs | 2 - .../prices/external_price_id_fetch_params.rbs | 2 - .../external_price_id_update_params.rbs | 2 - sig/orb/models/subscription.rbs | 150 +- sig/orb/models/subscription_cancel_params.rbs | 2 - .../models/subscription_cancel_response.rbs | 80 +- .../subscription_change_apply_params.rbs | 2 - .../subscription_change_apply_response.rbs | 82 +- .../subscription_change_cancel_params.rbs | 2 - .../subscription_change_cancel_response.rbs | 82 +- .../subscription_change_retrieve_params.rbs | 2 - .../subscription_change_retrieve_response.rbs | 82 +- sig/orb/models/subscription_create_params.rbs | 2602 ++- .../models/subscription_create_response.rbs | 80 +- .../subscription_fetch_costs_params.rbs | 2 - .../subscription_fetch_costs_response.rbs | 6 - sig/orb/models/subscription_fetch_params.rbs | 2 - .../subscription_fetch_schedule_params.rbs | 2 - .../subscription_fetch_schedule_response.rbs | 4 - .../subscription_fetch_usage_params.rbs | 2 - sig/orb/models/subscription_list_params.rbs | 2 - .../subscription_price_intervals_params.rbs | 1562 +- .../subscription_price_intervals_response.rbs | 80 +- ...bscription_schedule_plan_change_params.rbs | 2602 ++- ...cription_schedule_plan_change_response.rbs | 80 +- .../subscription_trigger_phase_params.rbs | 2 - .../subscription_trigger_phase_response.rbs | 80 +- ...ription_unschedule_cancellation_params.rbs | 2 - ...ption_unschedule_cancellation_response.rbs | 80 +- ...dule_fixed_fee_quantity_updates_params.rbs | 2 - ...le_fixed_fee_quantity_updates_response.rbs | 80 +- ...unschedule_pending_plan_changes_params.rbs | 2 - ...schedule_pending_plan_changes_response.rbs | 80 +- ...ption_update_fixed_fee_quantity_params.rbs | 2 - ...ion_update_fixed_fee_quantity_response.rbs | 80 +- sig/orb/models/subscription_update_params.rbs | 2 - .../subscription_update_trial_params.rbs | 4 +- .../subscription_update_trial_response.rbs | 80 +- sig/orb/models/subscription_usage.rbs | 88 +- sig/orb/models/subscriptions.rbs | 14 +- sig/orb/models/top_level_ping_params.rbs | 2 - sig/orb/models/top_level_ping_response.rbs | 2 - sig/orb/models/trial_discount.rbs | 10 +- sig/orb/models/usage_discount.rbs | 10 +- sig/orb/request_options.rbs | 2 +- sig/orb/resources/alerts.rbs | 24 +- sig/orb/resources/coupons.rbs | 8 +- sig/orb/resources/coupons/subscriptions.rbs | 2 +- sig/orb/resources/credit_notes.rbs | 8 +- sig/orb/resources/customers.rbs | 48 +- .../resources/customers/credits/ledger.rbs | 4 +- .../resources/customers/credits/top_ups.rbs | 4 +- .../resources/dimensional_price_groups.rbs | 6 +- .../external_dimensional_price_group_id.rbs | 2 +- sig/orb/resources/events.rbs | 2 +- sig/orb/resources/events/volume.rbs | 2 +- sig/orb/resources/invoices.rbs | 20 +- sig/orb/resources/items.rbs | 10 +- sig/orb/resources/metrics.rbs | 8 +- sig/orb/resources/plans.rbs | 10 +- sig/orb/resources/plans/external_plan_id.rbs | 4 +- sig/orb/resources/prices.rbs | 22 +- sig/orb/resources/subscriptions.rbs | 42 +- test/orb/resources/alerts_test.rb | 112 +- .../resources/coupons/subscriptions_test.rb | 28 +- test/orb/resources/coupons_test.rb | 16 +- test/orb/resources/credit_notes_test.rb | 42 +- test/orb/resources/customers_test.rb | 96 +- ...xternal_dimensional_price_group_id_test.rb | 2 +- .../dimensional_price_groups_test.rb | 6 +- test/orb/resources/events/volume_test.rb | 4 +- test/orb/resources/invoice_line_items_test.rb | 4 +- test/orb/resources/invoices_test.rb | 258 +- test/orb/resources/items_test.rb | 16 +- test/orb/resources/metrics_test.rb | 24 +- .../resources/plans/external_plan_id_test.rb | 44 +- test/orb/resources/plans_test.rb | 88 +- .../prices/external_price_id_test.rb | 1384 +- test/orb/resources/prices_test.rb | 2770 +-- test/orb/resources/subscriptions_test.rb | 130 +- 588 files changed, 82722 insertions(+), 63016 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 76f50c2b..07753389 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -63,6 +63,8 @@ Layout/MultilineMethodParameterLineBreaks: # Prefer compact hash literals. Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space + Exclude: + - "**/*.rbi" Lint/BooleanSymbol: Enabled: false @@ -90,6 +92,10 @@ Lint/MissingSuper: Exclude: - "**/*.rbi" +Lint/SymbolConversion: + Exclude: + - "**/*.rbi" + # Disabled for safety reasons, this option changes code semantics. Lint/UnusedMethodArgument: AutoCorrect: false @@ -244,6 +250,10 @@ Style/RedundantInitialize: Exclude: - "**/*.rbi" +Style/RedundantParentheses: + Exclude: + - "**/*.rbi" + # Prefer slashes for regex literals. Style/RegexpLiteral: EnforcedStyle: slashes diff --git a/Gemfile.lock b/Gemfile.lock index 0624d6e1..b6aa38de 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/stainless-api/syntax_tree-rbs.git - revision: 140eb3ba2ff4b959b345ac2a7927cd758a9f1284 + revision: c30b50219918be7cfe3ef803a00b59d1e77fcada branch: main specs: syntax_tree-rbs (1.0.0) diff --git a/README.md b/README.md index 5338840a..fabbe447 100644 --- a/README.md +++ b/README.md @@ -200,9 +200,9 @@ Sorbet's typed enums require sub-classing of the [`T::Enum` class](https://sorbe Since this library does not depend on `sorbet-runtime`, it uses a [`T.all` intersection type](https://sorbet.org/docs/intersection-types) with a ruby primitive type to construct a "tagged alias" instead. ```ruby -module Orb::Models::BillingCycleRelativeDate +module Orb::BillingCycleRelativeDate # This alias aids language service driven navigation. - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillingCycleRelativeDate) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::BillingCycleRelativeDate) } end ``` diff --git a/Rakefile b/Rakefile index db2c83ed..8361a8b9 100644 --- a/Rakefile +++ b/Rakefile @@ -34,11 +34,13 @@ multitask(:test) do ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 } end -rubo_find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] +locale = {"LC_ALL" => "C.UTF-8"} desc("Lint `*.rb(i)`") multitask(:"lint:rubocop") do + find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0] + rubocop = %w[rubocop --fail-level E] rubocop += %w[--format github] if ENV.key?("CI") @@ -46,17 +48,26 @@ multitask(:"lint:rubocop") do rubocop += %w[--except Lint/RedundantCopDisableDirective,Layout/LineLength] lint = xargs + rubocop - sh("#{rubo_find.shelljoin} | #{lint.shelljoin}") + sh("#{find.shelljoin} | #{lint.shelljoin}") end -desc("Format `*.rb(i)`") -multitask(:"format:rubocop") do +desc("Format `*.rb`") +multitask(:"format:rb") do + # while `syntax_tree` is much faster than `rubocop`, `rubocop` is the only formatter with full syntax support + find = %w[find ./lib ./test -type f -and -name *.rb -print0] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] - sh("#{rubo_find.shelljoin} | #{fmt.shelljoin}") + sh("#{find.shelljoin} | #{fmt.shelljoin}") +end + +desc("Format `*.rbi`") +multitask(:"format:rbi") do + find = %w[find ./rbi -type f -and -name *.rbi -print0] + fmt = xargs + %w[stree write --] + sh(locale, "#{find.shelljoin} | #{fmt.shelljoin}") end desc("Format `*.rbs`") -multitask(:"format:syntax_tree") do +multitask(:"format:rbs") do find = %w[find ./sig -type f -name *.rbs -print0] inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? ["-i", ""] : %w[-i] uuid = SecureRandom.uuid @@ -88,7 +99,7 @@ multitask(:"format:syntax_tree") do # transform class aliases to type aliases, which syntax tree has no trouble with sh("#{find.shelljoin} | #{pre.shelljoin}") # run syntax tree to format `*.rbs` files - sh("#{find.shelljoin} | #{fmt.shelljoin}") do + sh(locale, "#{find.shelljoin} | #{fmt.shelljoin}") do success = _1 end # transform type aliases back to class aliases @@ -99,7 +110,7 @@ multitask(:"format:syntax_tree") do end desc("Format everything") -multitask(format: [:"format:rubocop", :"format:syntax_tree"]) +multitask(format: [:"format:rb", :"format:rbi", :"format:rbs"]) desc("Typecheck `*.rbs`") multitask(:"typecheck:steep") do diff --git a/lib/orb.rb b/lib/orb.rb index 489cb88e..16a42655 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -219,6 +219,7 @@ require_relative "orb/models/top_level_ping_response" require_relative "orb/models/trial_discount" require_relative "orb/models/usage_discount" +require_relative "orb/models" require_relative "orb/resources/alerts" require_relative "orb/resources/coupons" require_relative "orb/resources/coupons/subscriptions" diff --git a/lib/orb/file_part.rb b/lib/orb/file_part.rb index 85188b38..e96e727a 100644 --- a/lib/orb/file_part.rb +++ b/lib/orb/file_part.rb @@ -45,9 +45,9 @@ def initialize(content, filename: nil, content_type: nil) @filename = case content in Pathname - filename.nil? ? content.basename.to_path : File.basename(filename) + filename.nil? ? content.basename.to_path : ::File.basename(filename) else - filename.nil? ? nil : File.basename(filename) + filename.nil? ? nil : ::File.basename(filename) end @content_type = content_type end diff --git a/lib/orb/internal/type/enum.rb b/lib/orb/internal/type/enum.rb index 7f7cc7c4..d3777666 100644 --- a/lib/orb/internal/type/enum.rb +++ b/lib/orb/internal/type/enum.rb @@ -17,11 +17,11 @@ module Type # values safely. # # @example - # # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate` + # # `billing_cycle_relative_date` is a `Orb::BillingCycleRelativeDate` # case billing_cycle_relative_date - # when Orb::Models::BillingCycleRelativeDate::START_OF_TERM + # when Orb::BillingCycleRelativeDate::START_OF_TERM # # ... - # when Orb::Models::BillingCycleRelativeDate::END_OF_TERM + # when Orb::BillingCycleRelativeDate::END_OF_TERM # # ... # else # puts(billing_cycle_relative_date) diff --git a/lib/orb/internal/type/request_parameters.rb b/lib/orb/internal/type/request_parameters.rb index 4967ce2f..d54d8c0d 100644 --- a/lib/orb/internal/type/request_parameters.rb +++ b/lib/orb/internal/type/request_parameters.rb @@ -5,10 +5,10 @@ module Internal module Type # @api private module RequestParameters - # @!parse - # # Options to specify HTTP behaviour for this request. - # # @return [Orb::RequestOptions, Hash{Symbol=>Object}] - # attr_accessor :request_options + # @!attribute request_options + # Options to specify HTTP behaviour for this request. + # + # @return [Orb::RequestOptions, Hash{Symbol=>Object}] # @param mod [Module] def self.included(mod) diff --git a/lib/orb/internal/type/union.rb b/lib/orb/internal/type/union.rb index b147d593..80db9f57 100644 --- a/lib/orb/internal/type/union.rb +++ b/lib/orb/internal/type/union.rb @@ -6,13 +6,13 @@ module Type # @api private # # @example - # # `discount` is a `Orb::Models::Discount` + # # `discount` is a `Orb::Discount` # case discount - # when Orb::Models::PercentageDiscount + # when Orb::PercentageDiscount # puts(discount.applies_to_price_ids) - # when Orb::Models::TrialDiscount + # when Orb::TrialDiscount # puts(discount.discount_type) - # when Orb::Models::UsageDiscount + # when Orb::UsageDiscount # puts(discount.usage_discount) # else # puts(discount) diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index bc158a2b..7804bb11 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -535,7 +535,7 @@ class << self filename = ERB::Util.url_encode(val.filename) y << "; filename=\"#{filename}\"" in Pathname | IO - filename = ERB::Util.url_encode(File.basename(val.to_path)) + filename = ERB::Util.url_encode(::File.basename(val.to_path)) y << "; filename=\"#{filename}\"" else end diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 20d1a7f8..8464b2a9 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -25,8 +25,8 @@ class Alert < Orb::Internal::Type::BaseModel # @!attribute customer # The customer the alert applies to. # - # @return [Orb::Models::Alert::Customer, nil] - required :customer, -> { Orb::Models::Alert::Customer }, nil?: true + # @return [Orb::Alert::Customer, nil] + required :customer, -> { Orb::Alert::Customer }, nil?: true # @!attribute enabled # Whether the alert is enabled or disabled. @@ -37,37 +37,37 @@ class Alert < Orb::Internal::Type::BaseModel # @!attribute metric # The metric the alert applies to. # - # @return [Orb::Models::Alert::Metric, nil] - required :metric, -> { Orb::Models::Alert::Metric }, nil?: true + # @return [Orb::Alert::Metric, nil] + required :metric, -> { Orb::Alert::Metric }, nil?: true # @!attribute plan # The plan the alert applies to. # - # @return [Orb::Models::Alert::Plan, nil] - required :plan, -> { Orb::Models::Alert::Plan }, nil?: true + # @return [Orb::Alert::Plan, nil] + required :plan, -> { Orb::Alert::Plan }, nil?: true # @!attribute subscription # The subscription the alert applies to. # - # @return [Orb::Models::Alert::Subscription, nil] - required :subscription, -> { Orb::Models::Alert::Subscription }, nil?: true + # @return [Orb::Alert::Subscription, nil] + required :subscription, -> { Orb::Alert::Subscription }, nil?: true # @!attribute thresholds # The thresholds that define the conditions under which the alert will be # triggered. # - # @return [Array, nil] - required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold] }, nil?: true + # @return [Array, nil] + required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold] }, nil?: true # @!attribute type # The type of alert. This must be a valid alert type. # - # @return [Symbol, Orb::Models::Alert::Type] - required :type, enum: -> { Orb::Models::Alert::Type } + # @return [Symbol, Orb::Alert::Type] + required :type, enum: -> { Orb::Alert::Type } # @!method initialize(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:) - # Some parameter documentations has been truncated, see {Orb::Models::Alert} for - # more details. + # Some parameter documentations has been truncated, see {Orb::Alert} for more + # details. # # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending, # usage, or credit balance and trigger webhooks when a threshold is exceeded. @@ -81,22 +81,21 @@ class Alert < Orb::Internal::Type::BaseModel # # @param currency [String, nil] The name of the currency the credit balance or invoice cost is denominated in. # - # @param customer [Orb::Models::Alert::Customer, nil] The customer the alert applies to. + # @param customer [Orb::Alert::Customer, nil] The customer the alert applies to. # # @param enabled [Boolean] Whether the alert is enabled or disabled. # - # @param metric [Orb::Models::Alert::Metric, nil] The metric the alert applies to. + # @param metric [Orb::Alert::Metric, nil] The metric the alert applies to. # - # @param plan [Orb::Models::Alert::Plan, nil] The plan the alert applies to. + # @param plan [Orb::Alert::Plan, nil] The plan the alert applies to. # - # @param subscription [Orb::Models::Alert::Subscription, nil] The subscription the alert applies to. + # @param subscription [Orb::Alert::Subscription, nil] The subscription the alert applies to. # - # @param thresholds [Array, nil] The thresholds that define the conditions under which the alert will be triggere - # ... + # @param thresholds [Array, nil] The thresholds that define the conditions under which the alert will be triggere # - # @param type [Symbol, Orb::Models::Alert::Type] The type of alert. This must be a valid alert type. + # @param type [Symbol, Orb::Alert::Type] The type of alert. This must be a valid alert type. - # @see Orb::Models::Alert#customer + # @see Orb::Alert#customer class Customer < Orb::Internal::Type::BaseModel # @!attribute id # @@ -115,7 +114,7 @@ class Customer < Orb::Internal::Type::BaseModel # @param external_customer_id [String, nil] end - # @see Orb::Models::Alert#metric + # @see Orb::Alert#metric class Metric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -128,7 +127,7 @@ class Metric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Alert#plan + # @see Orb::Alert#plan class Plan < Orb::Internal::Type::BaseModel # @!attribute id # @@ -154,22 +153,21 @@ class Plan < Orb::Internal::Type::BaseModel required :plan_version, String # @!method initialize(id:, external_plan_id:, name:, plan_version:) - # Some parameter documentations has been truncated, see {Orb::Models::Alert::Plan} - # for more details. + # Some parameter documentations has been truncated, see {Orb::Alert::Plan} for + # more details. # # The plan the alert applies to. # # @param id [String, nil] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param name [String, nil] # # @param plan_version [String] end - # @see Orb::Models::Alert#subscription + # @see Orb::Alert#subscription class Subscription < Orb::Internal::Type::BaseModel # @!attribute id # @@ -192,19 +190,18 @@ class Threshold < Orb::Internal::Type::BaseModel required :value, Float # @!method initialize(value:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Alert::Threshold} for more details. + # Some parameter documentations has been truncated, see {Orb::Alert::Threshold} + # for more details. # # Thresholds are used to define the conditions under which an alert will be # triggered. # # @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will - # ... end # The type of alert. This must be a valid alert type. # - # @see Orb::Models::Alert#type + # @see Orb::Alert#type module Type extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/alert_create_for_customer_params.rb b/lib/orb/models/alert_create_for_customer_params.rb index 47573d14..eddbda6e 100644 --- a/lib/orb/models/alert_create_for_customer_params.rb +++ b/lib/orb/models/alert_create_for_customer_params.rb @@ -16,23 +16,23 @@ class AlertCreateForCustomerParams < Orb::Internal::Type::BaseModel # @!attribute type # The type of alert to create. This must be a valid alert type. # - # @return [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] - required :type, enum: -> { Orb::Models::AlertCreateForCustomerParams::Type } + # @return [Symbol, Orb::AlertCreateForCustomerParams::Type] + required :type, enum: -> { Orb::AlertCreateForCustomerParams::Type } # @!attribute thresholds # The thresholds that define the values at which the alert will be triggered. # - # @return [Array, nil] + # @return [Array, nil] optional :thresholds, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::AlertCreateForCustomerParams::Threshold] }, + -> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForCustomerParams::Threshold] }, nil?: true # @!method initialize(currency:, type:, thresholds: nil, request_options: {}) # @param currency [String] The case sensitive currency or custom pricing unit to use for this alert. # - # @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type. # - # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -59,13 +59,12 @@ class Threshold < Orb::Internal::Type::BaseModel # @!method initialize(value:) # Some parameter documentations has been truncated, see - # {Orb::Models::AlertCreateForCustomerParams::Threshold} for more details. + # {Orb::AlertCreateForCustomerParams::Threshold} for more details. # # Thresholds are used to define the conditions under which an alert will be # triggered. # # @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will - # ... end end end diff --git a/lib/orb/models/alert_create_for_external_customer_params.rb b/lib/orb/models/alert_create_for_external_customer_params.rb index d26085dd..6c9f3bda 100644 --- a/lib/orb/models/alert_create_for_external_customer_params.rb +++ b/lib/orb/models/alert_create_for_external_customer_params.rb @@ -16,23 +16,23 @@ class AlertCreateForExternalCustomerParams < Orb::Internal::Type::BaseModel # @!attribute type # The type of alert to create. This must be a valid alert type. # - # @return [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] - required :type, enum: -> { Orb::Models::AlertCreateForExternalCustomerParams::Type } + # @return [Symbol, Orb::AlertCreateForExternalCustomerParams::Type] + required :type, enum: -> { Orb::AlertCreateForExternalCustomerParams::Type } # @!attribute thresholds # The thresholds that define the values at which the alert will be triggered. # - # @return [Array, nil] + # @return [Array, nil] optional :thresholds, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::AlertCreateForExternalCustomerParams::Threshold] }, + -> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForExternalCustomerParams::Threshold] }, nil?: true # @!method initialize(currency:, type:, thresholds: nil, request_options: {}) # @param currency [String] The case sensitive currency or custom pricing unit to use for this alert. # - # @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type. # - # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -59,13 +59,12 @@ class Threshold < Orb::Internal::Type::BaseModel # @!method initialize(value:) # Some parameter documentations has been truncated, see - # {Orb::Models::AlertCreateForExternalCustomerParams::Threshold} for more details. + # {Orb::AlertCreateForExternalCustomerParams::Threshold} for more details. # # Thresholds are used to define the conditions under which an alert will be # triggered. # # @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will - # ... end end end diff --git a/lib/orb/models/alert_create_for_subscription_params.rb b/lib/orb/models/alert_create_for_subscription_params.rb index 39319002..009f2269 100644 --- a/lib/orb/models/alert_create_for_subscription_params.rb +++ b/lib/orb/models/alert_create_for_subscription_params.rb @@ -10,15 +10,15 @@ class AlertCreateForSubscriptionParams < Orb::Internal::Type::BaseModel # @!attribute thresholds # The thresholds that define the values at which the alert will be triggered. # - # @return [Array] + # @return [Array] required :thresholds, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::AlertCreateForSubscriptionParams::Threshold] } + -> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForSubscriptionParams::Threshold] } # @!attribute type # The type of alert to create. This must be a valid alert type. # - # @return [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] - required :type, enum: -> { Orb::Models::AlertCreateForSubscriptionParams::Type } + # @return [Symbol, Orb::AlertCreateForSubscriptionParams::Type] + required :type, enum: -> { Orb::AlertCreateForSubscriptionParams::Type } # @!attribute metric_id # The metric to track usage for. @@ -27,9 +27,9 @@ class AlertCreateForSubscriptionParams < Orb::Internal::Type::BaseModel optional :metric_id, String, nil?: true # @!method initialize(thresholds:, type:, metric_id: nil, request_options: {}) - # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. # - # @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type. # # @param metric_id [String, nil] The metric to track usage for. # @@ -46,13 +46,12 @@ class Threshold < Orb::Internal::Type::BaseModel # @!method initialize(value:) # Some parameter documentations has been truncated, see - # {Orb::Models::AlertCreateForSubscriptionParams::Threshold} for more details. + # {Orb::AlertCreateForSubscriptionParams::Threshold} for more details. # # Thresholds are used to define the conditions under which an alert will be # triggered. # # @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will - # ... end # The type of alert to create. This must be a valid alert type. diff --git a/lib/orb/models/alert_list_params.rb b/lib/orb/models/alert_list_params.rb index f9883651..847b675f 100644 --- a/lib/orb/models/alert_list_params.rb +++ b/lib/orb/models/alert_list_params.rb @@ -71,7 +71,6 @@ class AlertListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [String, nil] Fetch alerts scoped to this customer_id # diff --git a/lib/orb/models/alert_update_params.rb b/lib/orb/models/alert_update_params.rb index adc1b0cc..8dda5499 100644 --- a/lib/orb/models/alert_update_params.rb +++ b/lib/orb/models/alert_update_params.rb @@ -10,11 +10,11 @@ class AlertUpdateParams < Orb::Internal::Type::BaseModel # @!attribute thresholds # The thresholds that define the values at which the alert will be triggered. # - # @return [Array] - required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Models::AlertUpdateParams::Threshold] } + # @return [Array] + required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::AlertUpdateParams::Threshold] } # @!method initialize(thresholds:, request_options: {}) - # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -29,13 +29,12 @@ class Threshold < Orb::Internal::Type::BaseModel # @!method initialize(value:) # Some parameter documentations has been truncated, see - # {Orb::Models::AlertUpdateParams::Threshold} for more details. + # {Orb::AlertUpdateParams::Threshold} for more details. # # Thresholds are used to define the conditions under which an alert will be # triggered. # # @param value [Float] The value at which an alert will fire. For credit balance alerts, the alert will - # ... end end end diff --git a/lib/orb/models/amount_discount.rb b/lib/orb/models/amount_discount.rb index 27097f2d..585fb772 100644 --- a/lib/orb/models/amount_discount.rb +++ b/lib/orb/models/amount_discount.rb @@ -18,8 +18,8 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::AmountDiscount::DiscountType] - required :discount_type, enum: -> { Orb::Models::AmountDiscount::DiscountType } + # @return [Symbol, Orb::AmountDiscount::DiscountType] + required :discount_type, enum: -> { Orb::AmountDiscount::DiscountType } # @!attribute reason # @@ -27,19 +27,18 @@ class AmountDiscount < Orb::Internal::Type::BaseModel optional :reason, String, nil?: true # @!method initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::AmountDiscount} for more details. + # Some parameter documentations has been truncated, see {Orb::AmountDiscount} for + # more details. # # @param amount_discount [String] Only available if discount_type is `amount`. # # @param applies_to_price_ids [Array] List of price_ids that this discount applies to. For plan/plan phase discounts, - # ... # - # @param discount_type [Symbol, Orb::Models::AmountDiscount::DiscountType] + # @param discount_type [Symbol, Orb::AmountDiscount::DiscountType] # # @param reason [String, nil] - # @see Orb::Models::AmountDiscount#discount_type + # @see Orb::AmountDiscount#discount_type module DiscountType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/billable_metric.rb b/lib/orb/models/billable_metric.rb index bf028599..2974e061 100644 --- a/lib/orb/models/billable_metric.rb +++ b/lib/orb/models/billable_metric.rb @@ -19,8 +19,8 @@ class BillableMetric < Orb::Internal::Type::BaseModel # with all line items, billable metrics, and prices and are used for defining # external sync behavior for invoices and tax calculation purposes. # - # @return [Orb::Models::Item] - required :item, -> { Orb::Models::Item } + # @return [Orb::Item] + required :item, -> { Orb::Item } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -38,12 +38,12 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute status # - # @return [Symbol, Orb::Models::BillableMetric::Status] - required :status, enum: -> { Orb::Models::BillableMetric::Status } + # @return [Symbol, Orb::BillableMetric::Status] + required :status, enum: -> { Orb::BillableMetric::Status } # @!method initialize(id:, description:, item:, metadata:, name:, status:) - # Some parameter documentations has been truncated, see - # {Orb::Models::BillableMetric} for more details. + # Some parameter documentations has been truncated, see {Orb::BillableMetric} for + # more details. # # The Metric resource represents a calculation of a quantity based on events. # Metrics are defined by the query that transforms raw usage events into @@ -53,17 +53,15 @@ class BillableMetric < Orb::Internal::Type::BaseModel # # @param description [String, nil] # - # @param item [Orb::Models::Item] The Item resource represents a sellable product or good. Items are associated wi - # ... + # @param item [Orb::Item] The Item resource represents a sellable product or good. Items are associated wi # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param name [String] # - # @param status [Symbol, Orb::Models::BillableMetric::Status] + # @param status [Symbol, Orb::BillableMetric::Status] - # @see Orb::Models::BillableMetric#status + # @see Orb::BillableMetric#status module Status extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index 34aa08b2..506c8273 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -19,8 +19,8 @@ class Coupon < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] - required :discount, union: -> { Orb::Models::Coupon::Discount } + # @return [Orb::PercentageDiscount, Orb::AmountDiscount] + required :discount, union: -> { Orb::Coupon::Discount } # @!attribute duration_in_months # This allows for a coupon's discount to apply for a limited time (determined in @@ -49,8 +49,8 @@ class Coupon < Orb::Internal::Type::BaseModel required :times_redeemed, Integer # @!method initialize(id:, archived_at:, discount:, duration_in_months:, max_redemptions:, redemption_code:, times_redeemed:) - # Some parameter documentations has been truncated, see {Orb::Models::Coupon} for - # more details. + # Some parameter documentations has been truncated, see {Orb::Coupon} for more + # details. # # A coupon represents a reusable discount configuration that can be applied either # as a fixed or percentage amount to an invoice or subscription. Coupons are @@ -61,32 +61,29 @@ class Coupon < Orb::Internal::Type::BaseModel # @param id [String] Also referred to as coupon_id in this documentation. # # @param archived_at [Time, nil] An archived coupon can no longer be redeemed. Active coupons will have a value o - # ... # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] + # @param discount [Orb::PercentageDiscount, Orb::AmountDiscount] # # @param duration_in_months [Integer, nil] This allows for a coupon's discount to apply for a limited time (determined in m - # ... # # @param max_redemptions [Integer, nil] The maximum number of redemptions allowed for this coupon before it is exhausted - # ... # # @param redemption_code [String] This string can be used to redeem this coupon for a given subscription. # # @param times_redeemed [Integer] The number of times this coupon has been redeemed. - # @see Orb::Models::Coupon#discount + # @see Orb::Coupon#discount module Discount extend Orb::Internal::Type::Union discriminator :discount_type - variant :percentage, -> { Orb::Models::PercentageDiscount } + variant :percentage, -> { Orb::PercentageDiscount } - variant :amount, -> { Orb::Models::AmountDiscount } + variant :amount, -> { Orb::AmountDiscount } # @!method self.variants - # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)] + # @return [Array(Orb::PercentageDiscount, Orb::AmountDiscount)] end end end diff --git a/lib/orb/models/coupon_create_params.rb b/lib/orb/models/coupon_create_params.rb index 577a0128..7d8fff92 100644 --- a/lib/orb/models/coupon_create_params.rb +++ b/lib/orb/models/coupon_create_params.rb @@ -9,8 +9,8 @@ class CouponCreateParams < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount] - required :discount, union: -> { Orb::Models::CouponCreateParams::Discount } + # @return [Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount] + required :discount, union: -> { Orb::CouponCreateParams::Discount } # @!attribute redemption_code # This string can be used to redeem this coupon for a given subscription. @@ -36,15 +36,13 @@ class CouponCreateParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::CouponCreateParams} for more details. # - # @param discount [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount] + # @param discount [Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount] # # @param redemption_code [String] This string can be used to redeem this coupon for a given subscription. # # @param duration_in_months [Integer, nil] This allows for a coupon's discount to apply for a limited time (determined in m - # ... # # @param max_redemptions [Integer, nil] The maximum number of redemptions allowed for this coupon before it is exhausted - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -53,9 +51,9 @@ module Discount discriminator :discount_type - variant :percentage, -> { Orb::Models::CouponCreateParams::Discount::Percentage } + variant :percentage, -> { Orb::CouponCreateParams::Discount::Percentage } - variant :amount, -> { Orb::Models::CouponCreateParams::Discount::Amount } + variant :amount, -> { Orb::CouponCreateParams::Discount::Amount } class Percentage < Orb::Internal::Type::BaseModel # @!attribute discount_type @@ -90,7 +88,7 @@ class Amount < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount)] + # @return [Array(Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount)] end end end diff --git a/lib/orb/models/coupon_list_params.rb b/lib/orb/models/coupon_list_params.rb index a4fb2670..ae68ca43 100644 --- a/lib/orb/models/coupon_list_params.rb +++ b/lib/orb/models/coupon_list_params.rb @@ -38,14 +38,12 @@ class CouponListParams < Orb::Internal::Type::BaseModel # {Orb::Models::CouponListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param redemption_code [String, nil] Filter to coupons matching this redemption code. # # @param show_archived [Boolean, nil] Show archived coupons as well (by default, this endpoint only returns active cou - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/coupons/subscription_list_params.rb b/lib/orb/models/coupons/subscription_list_params.rb index 55aa12e6..bca8eca8 100644 --- a/lib/orb/models/coupons/subscription_list_params.rb +++ b/lib/orb/models/coupons/subscription_list_params.rb @@ -26,7 +26,6 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # {Orb::Models::Coupons::SubscriptionListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/credit_note.rb b/lib/orb/models/credit_note.rb index 866e9ec4..14c6d2be 100644 --- a/lib/orb/models/credit_note.rb +++ b/lib/orb/models/credit_note.rb @@ -30,8 +30,8 @@ class CreditNote < Orb::Internal::Type::BaseModel # @!attribute customer # - # @return [Orb::Models::CreditNote::Customer] - required :customer, -> { Orb::Models::CreditNote::Customer } + # @return [Orb::CreditNote::Customer] + required :customer, -> { Orb::CreditNote::Customer } # @!attribute invoice_id # The id of the invoice resource that this credit note is applied to. @@ -42,14 +42,14 @@ class CreditNote < Orb::Internal::Type::BaseModel # @!attribute line_items # All of the line items associated with this credit note. # - # @return [Array] - required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem] } + # @return [Array] + required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem] } # @!attribute maximum_amount_adjustment # The maximum amount applied on the original invoice # - # @return [Orb::Models::CreditNote::MaximumAmountAdjustment, nil] - required :maximum_amount_adjustment, -> { Orb::Models::CreditNote::MaximumAmountAdjustment }, nil?: true + # @return [Orb::CreditNote::MaximumAmountAdjustment, nil] + required :maximum_amount_adjustment, -> { Orb::CreditNote::MaximumAmountAdjustment }, nil?: true # @!attribute memo # An optional memo supplied on the credit note. @@ -65,8 +65,8 @@ class CreditNote < Orb::Internal::Type::BaseModel # @!attribute reason # - # @return [Symbol, Orb::Models::CreditNote::Reason, nil] - required :reason, enum: -> { Orb::Models::CreditNote::Reason }, nil?: true + # @return [Symbol, Orb::CreditNote::Reason, nil] + required :reason, enum: -> { Orb::CreditNote::Reason }, nil?: true # @!attribute subtotal # The total prior to any creditable invoice-level discounts or minimums. @@ -82,8 +82,8 @@ class CreditNote < Orb::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, Orb::Models::CreditNote::Type] - required :type, enum: -> { Orb::Models::CreditNote::Type } + # @return [Symbol, Orb::CreditNote::Type] + required :type, enum: -> { Orb::CreditNote::Type } # @!attribute voided_at # The time at which the credit note was voided in Orb, if applicable. @@ -94,8 +94,8 @@ class CreditNote < Orb::Internal::Type::BaseModel # @!attribute discounts # Any discounts applied on the original invoice. # - # @return [Array, nil] - optional :discounts, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::Discount] } + # @return [Array, nil] + optional :discounts, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote::Discount] } # @!method initialize(id:, created_at:, credit_note_number:, credit_note_pdf:, customer:, invoice_id:, line_items:, maximum_amount_adjustment:, memo:, minimum_amount_refunded:, reason:, subtotal:, total:, type:, voided_at:, discounts: nil) # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has @@ -109,31 +109,31 @@ class CreditNote < Orb::Internal::Type::BaseModel # # @param credit_note_pdf [String, nil] A URL to a PDF of the credit note. # - # @param customer [Orb::Models::CreditNote::Customer] + # @param customer [Orb::CreditNote::Customer] # # @param invoice_id [String] The id of the invoice resource that this credit note is applied to. # - # @param line_items [Array] All of the line items associated with this credit note. + # @param line_items [Array] All of the line items associated with this credit note. # - # @param maximum_amount_adjustment [Orb::Models::CreditNote::MaximumAmountAdjustment, nil] The maximum amount applied on the original invoice + # @param maximum_amount_adjustment [Orb::CreditNote::MaximumAmountAdjustment, nil] The maximum amount applied on the original invoice # # @param memo [String, nil] An optional memo supplied on the credit note. # # @param minimum_amount_refunded [String, nil] Any credited amount from the applied minimum on the invoice. # - # @param reason [Symbol, Orb::Models::CreditNote::Reason, nil] + # @param reason [Symbol, Orb::CreditNote::Reason, nil] # # @param subtotal [String] The total prior to any creditable invoice-level discounts or minimums. # # @param total [String] The total including creditable invoice-level discounts or minimums, and tax. # - # @param type [Symbol, Orb::Models::CreditNote::Type] + # @param type [Symbol, Orb::CreditNote::Type] # # @param voided_at [Time, nil] The time at which the credit note was voided in Orb, if applicable. # - # @param discounts [Array] Any discounts applied on the original invoice. + # @param discounts [Array] Any discounts applied on the original invoice. - # @see Orb::Models::CreditNote#customer + # @see Orb::CreditNote#customer class Customer < Orb::Internal::Type::BaseModel # @!attribute id # @@ -190,14 +190,14 @@ class LineItem < Orb::Internal::Type::BaseModel # @!attribute tax_amounts # Any tax amounts applied onto the line item. # - # @return [Array] - required :tax_amounts, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem::TaxAmount] } + # @return [Array] + required :tax_amounts, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem::TaxAmount] } # @!attribute discounts # Any line item discounts from the invoice's line item. # - # @return [Array, nil] - optional :discounts, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem::Discount] } + # @return [Array, nil] + optional :discounts, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem::Discount] } # @!method initialize(id:, amount:, item_id:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil) # @param id [String] The Orb id of this resource. @@ -212,9 +212,9 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param subtotal [String] The amount of the line item, excluding any line item minimums and discounts. # - # @param tax_amounts [Array] Any tax amounts applied onto the line item. + # @param tax_amounts [Array] Any tax amounts applied onto the line item. # - # @param discounts [Array] Any line item discounts from the invoice's line item. + # @param discounts [Array] Any line item discounts from the invoice's line item. class TaxAmount < Orb::Internal::Type::BaseModel # @!attribute amount @@ -261,8 +261,8 @@ class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType] - required :discount_type, enum: -> { Orb::Models::CreditNote::LineItem::Discount::DiscountType } + # @return [Symbol, Orb::CreditNote::LineItem::Discount::DiscountType] + required :discount_type, enum: -> { Orb::CreditNote::LineItem::Discount::DiscountType } # @!attribute percentage_discount # @@ -283,12 +283,12 @@ class Discount < Orb::Internal::Type::BaseModel # @param id [String] # @param amount_applied [String] # @param applies_to_price_ids [Array] - # @param discount_type [Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType] + # @param discount_type [Symbol, Orb::CreditNote::LineItem::Discount::DiscountType] # @param percentage_discount [Float] # @param amount_discount [String, nil] # @param reason [String, nil] - # @see Orb::Models::CreditNote::LineItem::Discount#discount_type + # @see Orb::CreditNote::LineItem::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -301,7 +301,7 @@ module DiscountType end end - # @see Orb::Models::CreditNote#maximum_amount_adjustment + # @see Orb::CreditNote#maximum_amount_adjustment class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel # @!attribute amount_applied # @@ -310,8 +310,8 @@ class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType] - required :discount_type, enum: -> { Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType } + # @return [Symbol, Orb::CreditNote::MaximumAmountAdjustment::DiscountType] + required :discount_type, enum: -> { Orb::CreditNote::MaximumAmountAdjustment::DiscountType } # @!attribute percentage_discount # @@ -320,9 +320,11 @@ class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel # @!attribute applies_to_prices # - # @return [Array, nil] + # @return [Array, nil] optional :applies_to_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice] + }, nil?: true # @!attribute reason @@ -334,12 +336,12 @@ class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel # The maximum amount applied on the original invoice # # @param amount_applied [String] - # @param discount_type [Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType] + # @param discount_type [Symbol, Orb::CreditNote::MaximumAmountAdjustment::DiscountType] # @param percentage_discount [Float] - # @param applies_to_prices [Array, nil] + # @param applies_to_prices [Array, nil] # @param reason [String, nil] - # @see Orb::Models::CreditNote::MaximumAmountAdjustment#discount_type + # @see Orb::CreditNote::MaximumAmountAdjustment#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -366,7 +368,7 @@ class AppliesToPrice < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::CreditNote#reason + # @see Orb::CreditNote#reason module Reason extend Orb::Internal::Type::Enum @@ -379,7 +381,7 @@ module Reason # @return [Array] end - # @see Orb::Models::CreditNote#type + # @see Orb::CreditNote#type module Type extend Orb::Internal::Type::Enum @@ -398,8 +400,8 @@ class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::CreditNote::Discount::DiscountType] - required :discount_type, enum: -> { Orb::Models::CreditNote::Discount::DiscountType } + # @return [Symbol, Orb::CreditNote::Discount::DiscountType] + required :discount_type, enum: -> { Orb::CreditNote::Discount::DiscountType } # @!attribute percentage_discount # @@ -408,9 +410,9 @@ class Discount < Orb::Internal::Type::BaseModel # @!attribute applies_to_prices # - # @return [Array, nil] + # @return [Array, nil] optional :applies_to_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::Discount::AppliesToPrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote::Discount::AppliesToPrice] }, nil?: true # @!attribute reason @@ -420,12 +422,12 @@ class Discount < Orb::Internal::Type::BaseModel # @!method initialize(amount_applied:, discount_type:, percentage_discount:, applies_to_prices: nil, reason: nil) # @param amount_applied [String] - # @param discount_type [Symbol, Orb::Models::CreditNote::Discount::DiscountType] + # @param discount_type [Symbol, Orb::CreditNote::Discount::DiscountType] # @param percentage_discount [Float] - # @param applies_to_prices [Array, nil] + # @param applies_to_prices [Array, nil] # @param reason [String, nil] - # @see Orb::Models::CreditNote::Discount#discount_type + # @see Orb::CreditNote::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/credit_note_create_params.rb b/lib/orb/models/credit_note_create_params.rb index 9dc58ad0..8d267295 100644 --- a/lib/orb/models/credit_note_create_params.rb +++ b/lib/orb/models/credit_note_create_params.rb @@ -9,8 +9,8 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel # @!attribute line_items # - # @return [Array] - required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNoteCreateParams::LineItem] } + # @return [Array] + required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNoteCreateParams::LineItem] } # @!attribute memo # An optional memo to attach to the credit note. @@ -21,15 +21,15 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel # @!attribute reason # An optional reason for the credit note. # - # @return [Symbol, Orb::Models::CreditNoteCreateParams::Reason, nil] - optional :reason, enum: -> { Orb::Models::CreditNoteCreateParams::Reason }, nil?: true + # @return [Symbol, Orb::CreditNoteCreateParams::Reason, nil] + optional :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }, nil?: true # @!method initialize(line_items:, memo: nil, reason: nil, request_options: {}) - # @param line_items [Array] + # @param line_items [Array] # # @param memo [String, nil] An optional memo to attach to the credit note. # - # @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason, nil] An optional reason for the credit note. + # @param reason [Symbol, Orb::CreditNoteCreateParams::Reason, nil] An optional reason for the credit note. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/credit_note_list_params.rb b/lib/orb/models/credit_note_list_params.rb index b99ecabe..1251fbd1 100644 --- a/lib/orb/models/credit_note_list_params.rb +++ b/lib/orb/models/credit_note_list_params.rb @@ -53,7 +53,6 @@ class CreditNoteListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 4fe51f9c..cf14824c 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -27,8 +27,8 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute billing_address # - # @return [Orb::Models::Customer::BillingAddress, nil] - required :billing_address, -> { Orb::Models::Customer::BillingAddress }, nil?: true + # @return [Orb::Customer::BillingAddress, nil] + required :billing_address, -> { Orb::Customer::BillingAddress }, nil?: true # @!attribute created_at # @@ -69,8 +69,8 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute hierarchy # The hierarchical relationships for this customer. # - # @return [Orb::Models::Customer::Hierarchy] - required :hierarchy, -> { Orb::Models::Customer::Hierarchy } + # @return [Orb::Customer::Hierarchy] + required :hierarchy, -> { Orb::Customer::Hierarchy } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -92,8 +92,8 @@ class Customer < Orb::Internal::Type::BaseModel # When not in test mode, the connection must first be configured in the Orb # webapp. # - # @return [Symbol, Orb::Models::Customer::PaymentProvider, nil] - required :payment_provider, enum: -> { Orb::Models::Customer::PaymentProvider }, nil?: true + # @return [Symbol, Orb::Customer::PaymentProvider, nil] + required :payment_provider, enum: -> { Orb::Customer::PaymentProvider }, nil?: true # @!attribute payment_provider_id # The ID of this customer in an external payments solution, such as Stripe. This @@ -109,8 +109,8 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute shipping_address # - # @return [Orb::Models::Customer::ShippingAddress, nil] - required :shipping_address, -> { Orb::Models::Customer::ShippingAddress }, nil?: true + # @return [Orb::Customer::ShippingAddress, nil] + required :shipping_address, -> { Orb::Customer::ShippingAddress }, nil?: true # @!attribute tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -219,8 +219,8 @@ class Customer < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @return [Orb::Models::Customer::TaxID, nil] - required :tax_id, -> { Orb::Models::Customer::TaxID }, nil?: true + # @return [Orb::Customer::TaxID, nil] + required :tax_id, -> { Orb::Customer::TaxID }, nil?: true # @!attribute timezone # A timezone identifier from the IANA timezone database, such as @@ -232,19 +232,17 @@ class Customer < Orb::Internal::Type::BaseModel # @!attribute accounting_sync_configuration # - # @return [Orb::Models::Customer::AccountingSyncConfiguration, nil] - optional :accounting_sync_configuration, - -> { Orb::Models::Customer::AccountingSyncConfiguration }, - nil?: true + # @return [Orb::Customer::AccountingSyncConfiguration, nil] + optional :accounting_sync_configuration, -> { Orb::Customer::AccountingSyncConfiguration }, nil?: true # @!attribute reporting_configuration # - # @return [Orb::Models::Customer::ReportingConfiguration, nil] - optional :reporting_configuration, -> { Orb::Models::Customer::ReportingConfiguration }, nil?: true + # @return [Orb::Customer::ReportingConfiguration, nil] + optional :reporting_configuration, -> { Orb::Customer::ReportingConfiguration }, nil?: true # @!method initialize(id:, additional_emails:, auto_collection:, balance:, billing_address:, created_at:, currency:, email:, email_delivery:, exempt_from_automated_tax:, external_customer_id:, hierarchy:, metadata:, name:, payment_provider:, payment_provider_id:, portal_url:, shipping_address:, tax_id:, timezone:, accounting_sync_configuration: nil, reporting_configuration: nil) - # Some parameter documentations has been truncated, see {Orb::Models::Customer} - # for more details. + # Some parameter documentations has been truncated, see {Orb::Customer} for more + # details. # # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -273,50 +271,43 @@ class Customer < Orb::Internal::Type::BaseModel # # @param balance [String] The customer's current balance in their currency. # - # @param billing_address [Orb::Models::Customer::BillingAddress, nil] + # @param billing_address [Orb::Customer::BillingAddress, nil] # # @param created_at [Time] # # @param currency [String, nil] # # @param email [String] A valid customer email, to be used for notifications. When Orb triggers payment - # ... # # @param email_delivery [Boolean] # # @param exempt_from_automated_tax [Boolean, nil] # # @param external_customer_id [String, nil] An optional user-defined ID for this customer resource, used throughout the syst - # ... # - # @param hierarchy [Orb::Models::Customer::Hierarchy] The hierarchical relationships for this customer. + # @param hierarchy [Orb::Customer::Hierarchy] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param name [String] The full name of the customer # - # @param payment_provider [Symbol, Orb::Models::Customer::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::Customer::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # # @param portal_url [String, nil] # - # @param shipping_address [Orb::Models::Customer::ShippingAddress, nil] + # @param shipping_address [Orb::Customer::ShippingAddress, nil] # - # @param tax_id [Orb::Models::Customer::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::Customer::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param timezone [String] A timezone identifier from the IANA timezone database, such as "America/Los_Ange - # ... # - # @param accounting_sync_configuration [Orb::Models::Customer::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::Customer::AccountingSyncConfiguration, nil] # - # @param reporting_configuration [Orb::Models::Customer::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::Customer::ReportingConfiguration, nil] - # @see Orb::Models::Customer#billing_address + # @see Orb::Customer#billing_address class BillingAddress < Orb::Internal::Type::BaseModel # @!attribute city # @@ -357,23 +348,23 @@ class BillingAddress < Orb::Internal::Type::BaseModel # @param state [String, nil] end - # @see Orb::Models::Customer#hierarchy + # @see Orb::Customer#hierarchy class Hierarchy < Orb::Internal::Type::BaseModel # @!attribute children # - # @return [Array] - required :children, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Customer::Hierarchy::Child] } + # @return [Array] + required :children, -> { Orb::Internal::Type::ArrayOf[Orb::Customer::Hierarchy::Child] } # @!attribute parent # - # @return [Orb::Models::Customer::Hierarchy::Parent, nil] - required :parent, -> { Orb::Models::Customer::Hierarchy::Parent }, nil?: true + # @return [Orb::Customer::Hierarchy::Parent, nil] + required :parent, -> { Orb::Customer::Hierarchy::Parent }, nil?: true # @!method initialize(children:, parent:) # The hierarchical relationships for this customer. # - # @param children [Array] - # @param parent [Orb::Models::Customer::Hierarchy::Parent, nil] + # @param children [Array] + # @param parent [Orb::Customer::Hierarchy::Parent, nil] class Child < Orb::Internal::Type::BaseModel # @!attribute id @@ -391,7 +382,7 @@ class Child < Orb::Internal::Type::BaseModel # @param external_customer_id [String, nil] end - # @see Orb::Models::Customer::Hierarchy#parent + # @see Orb::Customer::Hierarchy#parent class Parent < Orb::Internal::Type::BaseModel # @!attribute id # @@ -413,7 +404,7 @@ class Parent < Orb::Internal::Type::BaseModel # When not in test mode, the connection must first be configured in the Orb # webapp. # - # @see Orb::Models::Customer#payment_provider + # @see Orb::Customer#payment_provider module PaymentProvider extend Orb::Internal::Type::Enum @@ -427,7 +418,7 @@ module PaymentProvider # @return [Array] end - # @see Orb::Models::Customer#shipping_address + # @see Orb::Customer#shipping_address class ShippingAddress < Orb::Internal::Type::BaseModel # @!attribute city # @@ -468,17 +459,17 @@ class ShippingAddress < Orb::Internal::Type::BaseModel # @param state [String, nil] end - # @see Orb::Models::Customer#tax_id + # @see Orb::Customer#tax_id class TaxID < Orb::Internal::Type::BaseModel # @!attribute country # - # @return [Symbol, Orb::Models::Customer::TaxID::Country] - required :country, enum: -> { Orb::Models::Customer::TaxID::Country } + # @return [Symbol, Orb::Customer::TaxID::Country] + required :country, enum: -> { Orb::Customer::TaxID::Country } # @!attribute type # - # @return [Symbol, Orb::Models::Customer::TaxID::Type] - required :type, enum: -> { Orb::Models::Customer::TaxID::Type } + # @return [Symbol, Orb::Customer::TaxID::Type] + required :type, enum: -> { Orb::Customer::TaxID::Type } # @!attribute value # @@ -592,11 +583,11 @@ class TaxID < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @param country [Symbol, Orb::Models::Customer::TaxID::Country] - # @param type [Symbol, Orb::Models::Customer::TaxID::Type] + # @param country [Symbol, Orb::Customer::TaxID::Country] + # @param type [Symbol, Orb::Customer::TaxID::Type] # @param value [String] - # @see Orb::Models::Customer::TaxID#country + # @see Orb::Customer::TaxID#country module Country extend Orb::Internal::Type::Enum @@ -683,7 +674,7 @@ module Country # @return [Array] end - # @see Orb::Models::Customer::TaxID#type + # @see Orb::Customer::TaxID#type module Type extend Orb::Internal::Type::Enum @@ -764,13 +755,15 @@ module Type end end - # @see Orb::Models::Customer#accounting_sync_configuration + # @see Orb::Customer#accounting_sync_configuration class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute accounting_providers # - # @return [Array] + # @return [Array] required :accounting_providers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider] } + -> { + Orb::Internal::Type::ArrayOf[Orb::Customer::AccountingSyncConfiguration::AccountingProvider] + } # @!attribute excluded # @@ -778,7 +771,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel required :excluded, Orb::Internal::Type::Boolean # @!method initialize(accounting_providers:, excluded:) - # @param accounting_providers [Array] + # @param accounting_providers [Array] # @param excluded [Boolean] class AccountingProvider < Orb::Internal::Type::BaseModel @@ -789,15 +782,15 @@ class AccountingProvider < Orb::Internal::Type::BaseModel # @!attribute provider_type # - # @return [Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] + # @return [Symbol, Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] required :provider_type, - enum: -> { Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType } + enum: -> { Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType } # @!method initialize(external_provider_id:, provider_type:) # @param external_provider_id [String, nil] - # @param provider_type [Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] + # @param provider_type [Symbol, Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] - # @see Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider#provider_type + # @see Orb::Customer::AccountingSyncConfiguration::AccountingProvider#provider_type module ProviderType extend Orb::Internal::Type::Enum @@ -810,7 +803,7 @@ module ProviderType end end - # @see Orb::Models::Customer#reporting_configuration + # @see Orb::Customer#reporting_configuration class ReportingConfiguration < Orb::Internal::Type::BaseModel # @!attribute exempt # diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index ff42d1ad..4de10b45 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -23,9 +23,9 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute accounting_sync_configuration # - # @return [Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, nil] + # @return [Orb::CustomerCreateParams::AccountingSyncConfiguration, nil] optional :accounting_sync_configuration, - -> { Orb::Models::CustomerCreateParams::AccountingSyncConfiguration }, + -> { Orb::CustomerCreateParams::AccountingSyncConfiguration }, nil?: true # @!attribute additional_emails @@ -45,8 +45,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute billing_address # - # @return [Orb::Models::CustomerCreateParams::BillingAddress, nil] - optional :billing_address, -> { Orb::Models::CustomerCreateParams::BillingAddress }, nil?: true + # @return [Orb::CustomerCreateParams::BillingAddress, nil] + optional :billing_address, -> { Orb::CustomerCreateParams::BillingAddress }, nil?: true # @!attribute currency # An ISO 4217 currency string used for the customer's invoices and balance. If not @@ -71,8 +71,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute hierarchy # The hierarchical relationships for this customer. # - # @return [Orb::Models::CustomerCreateParams::Hierarchy, nil] - optional :hierarchy, -> { Orb::Models::CustomerCreateParams::Hierarchy }, nil?: true + # @return [Orb::CustomerCreateParams::Hierarchy, nil] + optional :hierarchy, -> { Orb::CustomerCreateParams::Hierarchy }, nil?: true # @!attribute metadata # User-specified key/value pairs for the resource. Individual keys can be removed @@ -87,8 +87,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # When not in test mode, the connection must first be configured in the Orb # webapp. # - # @return [Symbol, Orb::Models::CustomerCreateParams::PaymentProvider, nil] - optional :payment_provider, enum: -> { Orb::Models::CustomerCreateParams::PaymentProvider }, nil?: true + # @return [Symbol, Orb::CustomerCreateParams::PaymentProvider, nil] + optional :payment_provider, enum: -> { Orb::CustomerCreateParams::PaymentProvider }, nil?: true # @!attribute payment_provider_id # The ID of this customer in an external payments solution, such as Stripe. This @@ -99,20 +99,18 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute reporting_configuration # - # @return [Orb::Models::CustomerCreateParams::ReportingConfiguration, nil] - optional :reporting_configuration, - -> { Orb::Models::CustomerCreateParams::ReportingConfiguration }, - nil?: true + # @return [Orb::CustomerCreateParams::ReportingConfiguration, nil] + optional :reporting_configuration, -> { Orb::CustomerCreateParams::ReportingConfiguration }, nil?: true # @!attribute shipping_address # - # @return [Orb::Models::CustomerCreateParams::ShippingAddress, nil] - optional :shipping_address, -> { Orb::Models::CustomerCreateParams::ShippingAddress }, nil?: true + # @return [Orb::CustomerCreateParams::ShippingAddress, nil] + optional :shipping_address, -> { Orb::CustomerCreateParams::ShippingAddress }, nil?: true # @!attribute tax_configuration # - # @return [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil] - optional :tax_configuration, union: -> { Orb::Models::CustomerCreateParams::TaxConfiguration }, nil?: true + # @return [Orb::CustomerCreateParams::TaxConfiguration::Avalara, Orb::CustomerCreateParams::TaxConfiguration::Taxjar, nil] + optional :tax_configuration, union: -> { Orb::CustomerCreateParams::TaxConfiguration }, nil?: true # @!attribute tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -221,8 +219,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @return [Orb::Models::CustomerCreateParams::TaxID, nil] - optional :tax_id, -> { Orb::Models::CustomerCreateParams::TaxID }, nil?: true + # @return [Orb::CustomerCreateParams::TaxID, nil] + optional :tax_id, -> { Orb::CustomerCreateParams::TaxID }, nil?: true # @!attribute timezone # A timezone identifier from the IANA timezone database, such as @@ -237,59 +235,51 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # {Orb::Models::CustomerCreateParams} for more details. # # @param email [String] A valid customer email, to be used for notifications. When Orb triggers payment - # ... # # @param name [String] The full name of the customer # - # @param accounting_sync_configuration [Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerCreateParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerCreateParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerCreateParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] An optional user-defined ID for this customer resource, used throughout the syst - # ... # - # @param hierarchy [Orb::Models::CustomerCreateParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerCreateParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # - # @param payment_provider [Symbol, Orb::Models::CustomerCreateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerCreateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerCreateParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerCreateParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerCreateParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerCreateParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerCreateParams::TaxConfiguration::Avalara, Orb::CustomerCreateParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param timezone [String, nil] A timezone identifier from the IANA timezone database, such as `"America/Los_Ang - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute accounting_providers # - # @return [Array, nil] + # @return [Array, nil] optional :accounting_providers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider] + }, nil?: true # @!attribute excluded @@ -298,7 +288,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!method initialize(accounting_providers: nil, excluded: nil) - # @param accounting_providers [Array, nil] + # @param accounting_providers [Array, nil] # @param excluded [Boolean, nil] class AccountingProvider < Orb::Internal::Type::BaseModel @@ -375,15 +365,13 @@ class Hierarchy < Orb::Internal::Type::BaseModel # @!method initialize(child_customer_ids: nil, parent_customer_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::CustomerCreateParams::Hierarchy} for more details. + # {Orb::CustomerCreateParams::Hierarchy} for more details. # # The hierarchical relationships for this customer. # # @param child_customer_ids [Array] A list of child customer IDs to add to the hierarchy. The desired child customer - # ... # # @param parent_customer_id [String, nil] The ID of the parent customer in the hierarchy. The desired parent customer must - # ... end # This is used for creating charges or invoices in an external system via Orb. @@ -457,9 +445,9 @@ module TaxConfiguration discriminator :tax_provider - variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara } + variant :avalara, -> { Orb::CustomerCreateParams::TaxConfiguration::Avalara } - variant :taxjar, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar } + variant :taxjar, -> { Orb::CustomerCreateParams::TaxConfiguration::Taxjar } class Avalara < Orb::Internal::Type::BaseModel # @!attribute tax_exempt @@ -500,19 +488,19 @@ class Taxjar < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar)] + # @return [Array(Orb::CustomerCreateParams::TaxConfiguration::Avalara, Orb::CustomerCreateParams::TaxConfiguration::Taxjar)] end class TaxID < Orb::Internal::Type::BaseModel # @!attribute country # - # @return [Symbol, Orb::Models::CustomerCreateParams::TaxID::Country] - required :country, enum: -> { Orb::Models::CustomerCreateParams::TaxID::Country } + # @return [Symbol, Orb::CustomerCreateParams::TaxID::Country] + required :country, enum: -> { Orb::CustomerCreateParams::TaxID::Country } # @!attribute type # - # @return [Symbol, Orb::Models::CustomerCreateParams::TaxID::Type] - required :type, enum: -> { Orb::Models::CustomerCreateParams::TaxID::Type } + # @return [Symbol, Orb::CustomerCreateParams::TaxID::Type] + required :type, enum: -> { Orb::CustomerCreateParams::TaxID::Type } # @!attribute value # @@ -626,11 +614,11 @@ class TaxID < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @param country [Symbol, Orb::Models::CustomerCreateParams::TaxID::Country] - # @param type [Symbol, Orb::Models::CustomerCreateParams::TaxID::Type] + # @param country [Symbol, Orb::CustomerCreateParams::TaxID::Country] + # @param type [Symbol, Orb::CustomerCreateParams::TaxID::Type] # @param value [String] - # @see Orb::Models::CustomerCreateParams::TaxID#country + # @see Orb::CustomerCreateParams::TaxID#country module Country extend Orb::Internal::Type::Enum @@ -717,7 +705,7 @@ module Country # @return [Array] end - # @see Orb::Models::CustomerCreateParams::TaxID#type + # @see Orb::CustomerCreateParams::TaxID#type module Type extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/customer_list_params.rb b/lib/orb/models/customer_list_params.rb index 7b65daa6..2e6a7757 100644 --- a/lib/orb/models/customer_list_params.rb +++ b/lib/orb/models/customer_list_params.rb @@ -53,7 +53,6 @@ class CustomerListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customer_update_by_external_id_params.rb b/lib/orb/models/customer_update_by_external_id_params.rb index 5e1a0837..dbfebb7e 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -9,9 +9,9 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute accounting_sync_configuration # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] + # @return [Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] optional :accounting_sync_configuration, - -> { Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration }, + -> { Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration }, nil?: true # @!attribute additional_emails @@ -31,10 +31,8 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute billing_address # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, nil] - optional :billing_address, - -> { Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress }, - nil?: true + # @return [Orb::CustomerUpdateByExternalIDParams::BillingAddress, nil] + optional :billing_address, -> { Orb::CustomerUpdateByExternalIDParams::BillingAddress }, nil?: true # @!attribute currency # An ISO 4217 currency string used for the customer's invoices and balance. If not @@ -64,8 +62,8 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute hierarchy # The hierarchical relationships for this customer. # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, nil] - optional :hierarchy, -> { Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy }, nil?: true + # @return [Orb::CustomerUpdateByExternalIDParams::Hierarchy, nil] + optional :hierarchy, -> { Orb::CustomerUpdateByExternalIDParams::Hierarchy }, nil?: true # @!attribute metadata # User-specified key/value pairs for the resource. Individual keys can be removed @@ -90,9 +88,9 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. # - # @return [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider, nil] + # @return [Symbol, Orb::CustomerUpdateByExternalIDParams::PaymentProvider, nil] optional :payment_provider, - enum: -> { Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider }, + enum: -> { Orb::CustomerUpdateByExternalIDParams::PaymentProvider }, nil?: true # @!attribute payment_provider_id @@ -104,23 +102,21 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute reporting_configuration # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] + # @return [Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] optional :reporting_configuration, - -> { Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration }, + -> { Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration }, nil?: true # @!attribute shipping_address # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil] - optional :shipping_address, - -> { Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress }, - nil?: true + # @return [Orb::CustomerUpdateByExternalIDParams::ShippingAddress, nil] + optional :shipping_address, -> { Orb::CustomerUpdateByExternalIDParams::ShippingAddress }, nil?: true # @!attribute tax_configuration # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] + # @return [Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] optional :tax_configuration, - union: -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration }, + union: -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration }, nil?: true # @!attribute tax_id @@ -230,63 +226,57 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] - optional :tax_id, -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxID }, nil?: true + # @return [Orb::CustomerUpdateByExternalIDParams::TaxID, nil] + optional :tax_id, -> { Orb::CustomerUpdateByExternalIDParams::TaxID }, nil?: true # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::CustomerUpdateByExternalIDParams} for more details. # - # @param accounting_sync_configuration [Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerUpdateByExternalIDParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email [String, nil] A valid customer email, to be used for invoicing and notifications. # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no - # ... # - # @param hierarchy [Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerUpdateByExternalIDParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param name [String, nil] The full name of the customer # - # @param payment_provider [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerUpdateByExternalIDParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerUpdateByExternalIDParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute accounting_providers # - # @return [Array, nil] + # @return [Array, nil] optional :accounting_providers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + }, nil?: true # @!attribute excluded @@ -295,7 +285,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!method initialize(accounting_providers: nil, excluded: nil) - # @param accounting_providers [Array, nil] + # @param accounting_providers [Array, nil] # @param excluded [Boolean, nil] class AccountingProvider < Orb::Internal::Type::BaseModel @@ -372,15 +362,13 @@ class Hierarchy < Orb::Internal::Type::BaseModel # @!method initialize(child_customer_ids: nil, parent_customer_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy} for more details. + # {Orb::CustomerUpdateByExternalIDParams::Hierarchy} for more details. # # The hierarchical relationships for this customer. # # @param child_customer_ids [Array] A list of child customer IDs to add to the hierarchy. The desired child customer - # ... # # @param parent_customer_id [String, nil] The ID of the parent customer in the hierarchy. The desired parent customer must - # ... end # This is used for creating charges or invoices in an external system via Orb. @@ -458,9 +446,9 @@ module TaxConfiguration discriminator :tax_provider - variant :avalara, -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara } + variant :avalara, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara } - variant :taxjar, -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar } + variant :taxjar, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar } class Avalara < Orb::Internal::Type::BaseModel # @!attribute tax_exempt @@ -501,19 +489,19 @@ class Taxjar < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar)] + # @return [Array(Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar)] end class TaxID < Orb::Internal::Type::BaseModel # @!attribute country # - # @return [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country] - required :country, enum: -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country } + # @return [Symbol, Orb::CustomerUpdateByExternalIDParams::TaxID::Country] + required :country, enum: -> { Orb::CustomerUpdateByExternalIDParams::TaxID::Country } # @!attribute type # - # @return [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type] - required :type, enum: -> { Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type } + # @return [Symbol, Orb::CustomerUpdateByExternalIDParams::TaxID::Type] + required :type, enum: -> { Orb::CustomerUpdateByExternalIDParams::TaxID::Type } # @!attribute value # @@ -627,11 +615,11 @@ class TaxID < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @param country [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country] - # @param type [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type] + # @param country [Symbol, Orb::CustomerUpdateByExternalIDParams::TaxID::Country] + # @param type [Symbol, Orb::CustomerUpdateByExternalIDParams::TaxID::Type] # @param value [String] - # @see Orb::Models::CustomerUpdateByExternalIDParams::TaxID#country + # @see Orb::CustomerUpdateByExternalIDParams::TaxID#country module Country extend Orb::Internal::Type::Enum @@ -718,7 +706,7 @@ module Country # @return [Array] end - # @see Orb::Models::CustomerUpdateByExternalIDParams::TaxID#type + # @see Orb::CustomerUpdateByExternalIDParams::TaxID#type module Type extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index 5a2dbd7b..493b96f4 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -9,9 +9,9 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute accounting_sync_configuration # - # @return [Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, nil] + # @return [Orb::CustomerUpdateParams::AccountingSyncConfiguration, nil] optional :accounting_sync_configuration, - -> { Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration }, + -> { Orb::CustomerUpdateParams::AccountingSyncConfiguration }, nil?: true # @!attribute additional_emails @@ -31,8 +31,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute billing_address # - # @return [Orb::Models::CustomerUpdateParams::BillingAddress, nil] - optional :billing_address, -> { Orb::Models::CustomerUpdateParams::BillingAddress }, nil?: true + # @return [Orb::CustomerUpdateParams::BillingAddress, nil] + optional :billing_address, -> { Orb::CustomerUpdateParams::BillingAddress }, nil?: true # @!attribute currency # An ISO 4217 currency string used for the customer's invoices and balance. If not @@ -62,8 +62,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute hierarchy # The hierarchical relationships for this customer. # - # @return [Orb::Models::CustomerUpdateParams::Hierarchy, nil] - optional :hierarchy, -> { Orb::Models::CustomerUpdateParams::Hierarchy }, nil?: true + # @return [Orb::CustomerUpdateParams::Hierarchy, nil] + optional :hierarchy, -> { Orb::CustomerUpdateParams::Hierarchy }, nil?: true # @!attribute metadata # User-specified key/value pairs for the resource. Individual keys can be removed @@ -88,8 +88,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. # - # @return [Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider, nil] - optional :payment_provider, enum: -> { Orb::Models::CustomerUpdateParams::PaymentProvider }, nil?: true + # @return [Symbol, Orb::CustomerUpdateParams::PaymentProvider, nil] + optional :payment_provider, enum: -> { Orb::CustomerUpdateParams::PaymentProvider }, nil?: true # @!attribute payment_provider_id # The ID of this customer in an external payments solution, such as Stripe. This @@ -100,20 +100,18 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute reporting_configuration # - # @return [Orb::Models::CustomerUpdateParams::ReportingConfiguration, nil] - optional :reporting_configuration, - -> { Orb::Models::CustomerUpdateParams::ReportingConfiguration }, - nil?: true + # @return [Orb::CustomerUpdateParams::ReportingConfiguration, nil] + optional :reporting_configuration, -> { Orb::CustomerUpdateParams::ReportingConfiguration }, nil?: true # @!attribute shipping_address # - # @return [Orb::Models::CustomerUpdateParams::ShippingAddress, nil] - optional :shipping_address, -> { Orb::Models::CustomerUpdateParams::ShippingAddress }, nil?: true + # @return [Orb::CustomerUpdateParams::ShippingAddress, nil] + optional :shipping_address, -> { Orb::CustomerUpdateParams::ShippingAddress }, nil?: true # @!attribute tax_configuration # - # @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] - optional :tax_configuration, union: -> { Orb::Models::CustomerUpdateParams::TaxConfiguration }, nil?: true + # @return [Orb::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] + optional :tax_configuration, union: -> { Orb::CustomerUpdateParams::TaxConfiguration }, nil?: true # @!attribute tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -222,63 +220,57 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @return [Orb::Models::CustomerUpdateParams::TaxID, nil] - optional :tax_id, -> { Orb::Models::CustomerUpdateParams::TaxID }, nil?: true + # @return [Orb::CustomerUpdateParams::TaxID, nil] + optional :tax_id, -> { Orb::CustomerUpdateParams::TaxID }, nil?: true # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::CustomerUpdateParams} for more details. # - # @param accounting_sync_configuration [Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerUpdateParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerUpdateParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerUpdateParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email [String, nil] A valid customer email, to be used for invoicing and notifications. # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no - # ... # - # @param hierarchy [Orb::Models::CustomerUpdateParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerUpdateParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param name [String, nil] The full name of the customer # - # @param payment_provider [Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerUpdateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerUpdateParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerUpdateParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerUpdateParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerUpdateParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel # @!attribute accounting_providers # - # @return [Array, nil] + # @return [Array, nil] optional :accounting_providers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider] + }, nil?: true # @!attribute excluded @@ -287,7 +279,7 @@ class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel optional :excluded, Orb::Internal::Type::Boolean, nil?: true # @!method initialize(accounting_providers: nil, excluded: nil) - # @param accounting_providers [Array, nil] + # @param accounting_providers [Array, nil] # @param excluded [Boolean, nil] class AccountingProvider < Orb::Internal::Type::BaseModel @@ -364,15 +356,13 @@ class Hierarchy < Orb::Internal::Type::BaseModel # @!method initialize(child_customer_ids: nil, parent_customer_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::CustomerUpdateParams::Hierarchy} for more details. + # {Orb::CustomerUpdateParams::Hierarchy} for more details. # # The hierarchical relationships for this customer. # # @param child_customer_ids [Array] A list of child customer IDs to add to the hierarchy. The desired child customer - # ... # # @param parent_customer_id [String, nil] The ID of the parent customer in the hierarchy. The desired parent customer must - # ... end # This is used for creating charges or invoices in an external system via Orb. @@ -450,9 +440,9 @@ module TaxConfiguration discriminator :tax_provider - variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara } + variant :avalara, -> { Orb::CustomerUpdateParams::TaxConfiguration::Avalara } - variant :taxjar, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar } + variant :taxjar, -> { Orb::CustomerUpdateParams::TaxConfiguration::Taxjar } class Avalara < Orb::Internal::Type::BaseModel # @!attribute tax_exempt @@ -493,19 +483,19 @@ class Taxjar < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar)] + # @return [Array(Orb::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::CustomerUpdateParams::TaxConfiguration::Taxjar)] end class TaxID < Orb::Internal::Type::BaseModel # @!attribute country # - # @return [Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country] - required :country, enum: -> { Orb::Models::CustomerUpdateParams::TaxID::Country } + # @return [Symbol, Orb::CustomerUpdateParams::TaxID::Country] + required :country, enum: -> { Orb::CustomerUpdateParams::TaxID::Country } # @!attribute type # - # @return [Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type] - required :type, enum: -> { Orb::Models::CustomerUpdateParams::TaxID::Type } + # @return [Symbol, Orb::CustomerUpdateParams::TaxID::Type] + required :type, enum: -> { Orb::CustomerUpdateParams::TaxID::Type } # @!attribute value # @@ -619,11 +609,11 @@ class TaxID < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @param country [Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country] - # @param type [Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type] + # @param country [Symbol, Orb::CustomerUpdateParams::TaxID::Country] + # @param type [Symbol, Orb::CustomerUpdateParams::TaxID::Type] # @param value [String] - # @see Orb::Models::CustomerUpdateParams::TaxID#country + # @see Orb::CustomerUpdateParams::TaxID#country module Country extend Orb::Internal::Type::Enum @@ -710,7 +700,7 @@ module Country # @return [Array] end - # @see Orb::Models::CustomerUpdateParams::TaxID#type + # @see Orb::CustomerUpdateParams::TaxID#type module Type extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/customers/balance_transaction_create_params.rb b/lib/orb/models/customers/balance_transaction_create_params.rb index d7b54341..593b8369 100644 --- a/lib/orb/models/customers/balance_transaction_create_params.rb +++ b/lib/orb/models/customers/balance_transaction_create_params.rb @@ -15,8 +15,8 @@ class BalanceTransactionCreateParams < Orb::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type] - required :type, enum: -> { Orb::Models::Customers::BalanceTransactionCreateParams::Type } + # @return [Symbol, Orb::Customers::BalanceTransactionCreateParams::Type] + required :type, enum: -> { Orb::Customers::BalanceTransactionCreateParams::Type } # @!attribute description # An optional description that can be specified around this entry. @@ -27,7 +27,7 @@ class BalanceTransactionCreateParams < Orb::Internal::Type::BaseModel # @!method initialize(amount:, type:, description: nil, request_options: {}) # @param amount [String] # - # @param type [Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type] + # @param type [Symbol, Orb::Customers::BalanceTransactionCreateParams::Type] # # @param description [String, nil] An optional description that can be specified around this entry. # diff --git a/lib/orb/models/customers/balance_transaction_create_response.rb b/lib/orb/models/customers/balance_transaction_create_response.rb index dac883ca..cef64f93 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -82,12 +82,10 @@ class BalanceTransactionCreateResponse < Orb::Internal::Type::BaseModel # @param description [String, nil] An optional description provided for manual customer balance adjustments. # # @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome - # ... # # @param invoice [Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, nil] # # @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu - # ... # # @param type [Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type] diff --git a/lib/orb/models/customers/balance_transaction_list_params.rb b/lib/orb/models/customers/balance_transaction_list_params.rb index 2296ea6c..19616199 100644 --- a/lib/orb/models/customers/balance_transaction_list_params.rb +++ b/lib/orb/models/customers/balance_transaction_list_params.rb @@ -46,7 +46,6 @@ class BalanceTransactionListParams < Orb::Internal::Type::BaseModel # {Orb::Models::Customers::BalanceTransactionListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index 4068d951..6a81d47d 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -82,12 +82,10 @@ class BalanceTransactionListResponse < Orb::Internal::Type::BaseModel # @param description [String, nil] An optional description provided for manual customer balance adjustments. # # @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome - # ... # # @param invoice [Orb::Models::Customers::BalanceTransactionListResponse::Invoice, nil] # # @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu - # ... # # @param type [Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type] diff --git a/lib/orb/models/customers/cost_list_by_external_id_params.rb b/lib/orb/models/customers/cost_list_by_external_id_params.rb index 4cf5c197..d4b4ce0c 100644 --- a/lib/orb/models/customers/cost_list_by_external_id_params.rb +++ b/lib/orb/models/customers/cost_list_by_external_id_params.rb @@ -32,8 +32,8 @@ class CostListByExternalIDParams < Orb::Internal::Type::BaseModel # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @return [Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode, nil] - optional :view_mode, enum: -> { Orb::Models::Customers::CostListByExternalIDParams::ViewMode }, nil?: true + # @return [Symbol, Orb::Customers::CostListByExternalIDParams::ViewMode, nil] + optional :view_mode, enum: -> { Orb::Customers::CostListByExternalIDParams::ViewMode }, nil?: true # @!method initialize(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) # Some parameter documentations has been truncated, see @@ -45,8 +45,7 @@ class CostListByExternalIDParams < Orb::Internal::Type::BaseModel # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::Customers::CostListByExternalIDParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/customers/cost_list_by_external_id_response.rb b/lib/orb/models/customers/cost_list_by_external_id_response.rb index 80f91c87..cf5f27cd 100644 --- a/lib/orb/models/customers/cost_list_by_external_id_response.rb +++ b/lib/orb/models/customers/cost_list_by_external_id_response.rb @@ -58,8 +58,8 @@ class PerPriceCost < Orb::Internal::Type::BaseModel # @!attribute price # The price object # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute price_id # The price the cost is associated with @@ -86,7 +86,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel optional :quantity, Float, nil?: true # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil) - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The price object + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The price object # # @param price_id [String] The price the cost is associated with # diff --git a/lib/orb/models/customers/cost_list_params.rb b/lib/orb/models/customers/cost_list_params.rb index c5c3c2b4..2b841f2e 100644 --- a/lib/orb/models/customers/cost_list_params.rb +++ b/lib/orb/models/customers/cost_list_params.rb @@ -32,8 +32,8 @@ class CostListParams < Orb::Internal::Type::BaseModel # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @return [Symbol, Orb::Models::Customers::CostListParams::ViewMode, nil] - optional :view_mode, enum: -> { Orb::Models::Customers::CostListParams::ViewMode }, nil?: true + # @return [Symbol, Orb::Customers::CostListParams::ViewMode, nil] + optional :view_mode, enum: -> { Orb::Customers::CostListParams::ViewMode }, nil?: true # @!method initialize(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) # Some parameter documentations has been truncated, see @@ -45,8 +45,7 @@ class CostListParams < Orb::Internal::Type::BaseModel # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::Customers::CostListParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::Customers::CostListParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/customers/cost_list_response.rb b/lib/orb/models/customers/cost_list_response.rb index c0dfada8..ccf3f8e5 100644 --- a/lib/orb/models/customers/cost_list_response.rb +++ b/lib/orb/models/customers/cost_list_response.rb @@ -57,8 +57,8 @@ class PerPriceCost < Orb::Internal::Type::BaseModel # @!attribute price # The price object # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute price_id # The price the cost is associated with @@ -85,7 +85,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel optional :quantity, Float, nil?: true # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil) - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The price object + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The price object # # @param price_id [String] The price the cost is associated with # diff --git a/lib/orb/models/customers/credit_list_by_external_id_params.rb b/lib/orb/models/customers/credit_list_by_external_id_params.rb index d70e00e4..210d8997 100644 --- a/lib/orb/models/customers/credit_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credit_list_by_external_id_params.rb @@ -41,10 +41,8 @@ class CreditListByExternalIDParams < Orb::Internal::Type::BaseModel # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param include_all_blocks [Boolean] If set to True, all expired and depleted blocks, as well as active block will be - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credit_list_params.rb b/lib/orb/models/customers/credit_list_params.rb index 0455866a..8619e6d6 100644 --- a/lib/orb/models/customers/credit_list_params.rb +++ b/lib/orb/models/customers/credit_list_params.rb @@ -41,10 +41,8 @@ class CreditListParams < Orb::Internal::Type::BaseModel # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param include_all_blocks [Boolean] If set to True, all expired and depleted blocks, as well as active block will be - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb index 7b7e3b1c..1efe426b 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb @@ -18,9 +18,11 @@ class LedgerCreateEntryByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute entry_type # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] + # @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] required :entry_type, - enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType } + enum: -> { + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType + } # @!attribute currency # The currency or custom pricing unit to use for this ledger entry. If this is a @@ -56,9 +58,9 @@ class LedgerCreateEntryByExternalIDParams < Orb::Internal::Type::BaseModel # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. # - # @return [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] + # @return [Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] optional :invoice_settings, - -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings }, + -> { Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings }, nil?: true # @!attribute metadata @@ -93,9 +95,9 @@ class LedgerCreateEntryByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute void_reason # Can only be specified when `entry_type=void`. The reason for the void. # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] + # @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] optional :void_reason, - enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason }, + enum: -> { Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason }, nil?: true # @!method initialize(amount:, entry_type:, expiry_date:, target_expiry_date:, block_id:, currency: nil, description: nil, effective_date: nil, invoice_settings: nil, metadata: nil, per_unit_cost_basis: nil, void_reason: nil, request_options: {}) @@ -104,36 +106,28 @@ class LedgerCreateEntryByExternalIDParams < Orb::Internal::Type::BaseModel # details. # # @param amount [Float] The number of credits to effect. Note that this is required for increment, decre - # ... # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] # # @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire # # @param target_expiry_date [Date] A future date (specified in YYYY-MM-DD format) used for expiration change, denot - # ... # # @param block_id [String] The ID of the block to reverse a decrement from. # # @param currency [String, nil] The currency or custom pricing unit to use for this ledger entry. If this is a r - # ... # # @param description [String, nil] Optional metadata that can be specified when adding ledger results via the API. - # ... # # @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde - # ... + # @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur - # ... # - # @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. + # @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -177,7 +171,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings} + # {Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings} # for more details. # # Passing `invoice_settings` automatically generates an invoice for the newly @@ -186,15 +180,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # basis. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai - # ... end # Can only be specified when `entry_type=void`. The reason for the void. diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb index 01e576eb..e6ecde7e 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb @@ -132,7 +132,6 @@ class Increment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -304,7 +303,6 @@ class Decrement < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -472,7 +470,6 @@ class ExpirationChange < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time, nil] # @@ -631,7 +628,6 @@ class CreditBlockExpiry < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -798,7 +794,6 @@ class Void < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -974,7 +969,6 @@ class VoidInitiated < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time] # @@ -1137,7 +1131,6 @@ class Amendment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # diff --git a/lib/orb/models/customers/credits/ledger_create_entry_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_params.rb index 0e221e96..ded171f3 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -18,8 +18,8 @@ class LedgerCreateEntryParams < Orb::Internal::Type::BaseModel # @!attribute entry_type # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType] - required :entry_type, enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType } + # @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::EntryType] + required :entry_type, enum: -> { Orb::Customers::Credits::LedgerCreateEntryParams::EntryType } # @!attribute currency # The currency or custom pricing unit to use for this ledger entry. If this is a @@ -55,9 +55,9 @@ class LedgerCreateEntryParams < Orb::Internal::Type::BaseModel # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. # - # @return [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] + # @return [Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] optional :invoice_settings, - -> { Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings }, + -> { Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings }, nil?: true # @!attribute metadata @@ -92,9 +92,9 @@ class LedgerCreateEntryParams < Orb::Internal::Type::BaseModel # @!attribute void_reason # Can only be specified when `entry_type=void`. The reason for the void. # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] + # @return [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] optional :void_reason, - enum: -> { Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason }, + enum: -> { Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason }, nil?: true # @!method initialize(amount:, entry_type:, expiry_date:, target_expiry_date:, block_id:, currency: nil, description: nil, effective_date: nil, invoice_settings: nil, metadata: nil, per_unit_cost_basis: nil, void_reason: nil, request_options: {}) @@ -102,36 +102,28 @@ class LedgerCreateEntryParams < Orb::Internal::Type::BaseModel # {Orb::Models::Customers::Credits::LedgerCreateEntryParams} for more details. # # @param amount [Float] The number of credits to effect. Note that this is required for increment, decre - # ... # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::EntryType] # # @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire # # @param target_expiry_date [Date] A future date (specified in YYYY-MM-DD format) used for expiration change, denot - # ... # # @param block_id [String] The ID of the block to reverse a decrement from. # # @param currency [String, nil] The currency or custom pricing unit to use for this ledger entry. If this is a r - # ... # # @param description [String, nil] Optional metadata that can be specified when adding ledger results via the API. - # ... # # @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde - # ... + # @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur - # ... # - # @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. + # @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -175,8 +167,8 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for - # more details. + # {Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for more + # details. # # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify @@ -184,15 +176,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # basis. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai - # ... end # Can only be specified when `entry_type=void`. The reason for the void. diff --git a/lib/orb/models/customers/credits/ledger_create_entry_response.rb b/lib/orb/models/customers/credits/ledger_create_entry_response.rb index ebc19605..1bc5bb8b 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -127,7 +127,6 @@ class Increment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -298,7 +297,6 @@ class Decrement < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -466,7 +464,6 @@ class ExpirationChange < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time, nil] # @@ -625,7 +622,6 @@ class CreditBlockExpiry < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -791,7 +787,6 @@ class Void < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -967,7 +962,6 @@ class VoidInitiated < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time] # @@ -1129,7 +1123,6 @@ class Amendment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb index 5c363b2a..5b8518f9 100644 --- a/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb @@ -44,16 +44,16 @@ class LedgerListByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute entry_status # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] + # @return [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] optional :entry_status, - enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus }, + enum: -> { Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus }, nil?: true # @!attribute entry_type # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] + # @return [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] optional :entry_type, - enum: -> { Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType }, + enum: -> { Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType }, nil?: true # @!attribute limit @@ -83,11 +83,10 @@ class LedgerListByExternalIDParams < Orb::Internal::Type::BaseModel # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # - # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] + # @param entry_status [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb index 96e8e446..ed0309c7 100644 --- a/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb @@ -129,7 +129,6 @@ class Increment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -301,7 +300,6 @@ class Decrement < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -469,7 +467,6 @@ class ExpirationChange < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time, nil] # @@ -628,7 +625,6 @@ class CreditBlockExpiry < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -794,7 +790,6 @@ class Void < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -970,7 +965,6 @@ class VoidInitiated < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time] # @@ -1133,7 +1127,6 @@ class Amendment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # diff --git a/lib/orb/models/customers/credits/ledger_list_params.rb b/lib/orb/models/customers/credits/ledger_list_params.rb index 9ddb7839..49803195 100644 --- a/lib/orb/models/customers/credits/ledger_list_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_params.rb @@ -44,17 +44,17 @@ class LedgerListParams < Orb::Internal::Type::BaseModel # @!attribute entry_status # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus, nil] + # @return [Symbol, Orb::Customers::Credits::LedgerListParams::EntryStatus, nil] optional :entry_status, - enum: -> { Orb::Models::Customers::Credits::LedgerListParams::EntryStatus }, + enum: -> { + Orb::Customers::Credits::LedgerListParams::EntryStatus + }, nil?: true # @!attribute entry_type # - # @return [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType, nil] - optional :entry_type, - enum: -> { Orb::Models::Customers::Credits::LedgerListParams::EntryType }, - nil?: true + # @return [Symbol, Orb::Customers::Credits::LedgerListParams::EntryType, nil] + optional :entry_type, enum: -> { Orb::Customers::Credits::LedgerListParams::EntryType }, nil?: true # @!attribute limit # The number of items to fetch. Defaults to 20. @@ -82,11 +82,10 @@ class LedgerListParams < Orb::Internal::Type::BaseModel # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # - # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus, nil] + # @param entry_status [Symbol, Orb::Customers::Credits::LedgerListParams::EntryStatus, nil] # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType, nil] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerListParams::EntryType, nil] # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credits/ledger_list_response.rb b/lib/orb/models/customers/credits/ledger_list_response.rb index 4026e4d4..bae56ead 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -125,7 +125,6 @@ class Increment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -295,7 +294,6 @@ class Decrement < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -462,7 +460,6 @@ class ExpirationChange < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time, nil] # @@ -621,7 +618,6 @@ class CreditBlockExpiry < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -785,7 +781,6 @@ class Void < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # @@ -960,7 +955,6 @@ class VoidInitiated < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param new_block_expiry_date [Time] # @@ -1121,7 +1115,6 @@ class Amendment < Orb::Internal::Type::BaseModel # @param ledger_sequence_number [Integer] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param starting_balance [Float] # diff --git a/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb index 79214b51..05513c21 100644 --- a/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb @@ -25,9 +25,11 @@ class TopUpCreateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute invoice_settings # Settings for invoices generated by triggered top-ups. # - # @return [Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] + # @return [Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] required :invoice_settings, - -> { Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings } + -> { + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings + } # @!attribute per_unit_cost_basis # How much, in the customer's currency, to charge for each unit. @@ -59,9 +61,9 @@ class TopUpCreateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute expires_after_unit # The unit of expires_after. # - # @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] + # @return [Symbol, Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] optional :expires_after_unit, - enum: -> { Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit }, + enum: -> { Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit }, nil?: true # @!method initialize(amount:, currency:, invoice_settings:, per_unit_cost_basis:, threshold:, active_from: nil, expires_after: nil, expires_after_unit: nil, request_options: {}) @@ -72,22 +74,18 @@ class TopUpCreateByExternalIDParams < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. + # @param invoice_settings [Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param active_from [Time, nil] The date from which the top-up is active. If unspecified, the top-up is active i - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # - # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after. + # @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -122,21 +120,18 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings} - # for more details. + # {Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings} for + # more details. # # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb b/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb index da0d1b9d..5fbcee8a 100644 --- a/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb @@ -69,17 +69,14 @@ class TopUpCreateByExternalIDResponse < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit, nil] The unit of expires_after. @@ -121,15 +118,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/customers/credits/top_up_create_params.rb b/lib/orb/models/customers/credits/top_up_create_params.rb index 700de6b6..70366efb 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -25,8 +25,8 @@ class TopUpCreateParams < Orb::Internal::Type::BaseModel # @!attribute invoice_settings # Settings for invoices generated by triggered top-ups. # - # @return [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings] - required :invoice_settings, -> { Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings } + # @return [Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings] + required :invoice_settings, -> { Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings } # @!attribute per_unit_cost_basis # How much, in the customer's currency, to charge for each unit. @@ -58,9 +58,9 @@ class TopUpCreateParams < Orb::Internal::Type::BaseModel # @!attribute expires_after_unit # The unit of expires_after. # - # @return [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] + # @return [Symbol, Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] optional :expires_after_unit, - enum: -> { Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit }, + enum: -> { Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit }, nil?: true # @!method initialize(amount:, currency:, invoice_settings:, per_unit_cost_basis:, threshold:, active_from: nil, expires_after: nil, expires_after_unit: nil, request_options: {}) @@ -70,22 +70,18 @@ class TopUpCreateParams < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. + # @param invoice_settings [Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param active_from [Time, nil] The date from which the top-up is active. If unspecified, the top-up is active i - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # - # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after. + # @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -120,21 +116,17 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @!method initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings} for more - # details. + # {Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings} for more details. # # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/customers/credits/top_up_create_response.rb b/lib/orb/models/customers/credits/top_up_create_response.rb index dd00ada3..c22eee14 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -67,17 +67,14 @@ class TopUpCreateResponse < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit, nil] The unit of expires_after. @@ -119,15 +116,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb b/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb index d376fc24..e1dce3ca 100644 --- a/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb @@ -27,7 +27,6 @@ class TopUpListByExternalIDParams < Orb::Internal::Type::BaseModel # {Orb::Models::Customers::Credits::TopUpListByExternalIDParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb b/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb index 8b57c2e9..e48ec058 100644 --- a/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb @@ -69,17 +69,14 @@ class TopUpListByExternalIDResponse < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # # @param invoice_settings [Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit, nil] The unit of expires_after. @@ -121,15 +118,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/customers/credits/top_up_list_params.rb b/lib/orb/models/customers/credits/top_up_list_params.rb index 49f5e7a0..179c52eb 100644 --- a/lib/orb/models/customers/credits/top_up_list_params.rb +++ b/lib/orb/models/customers/credits/top_up_list_params.rb @@ -27,7 +27,6 @@ class TopUpListParams < Orb::Internal::Type::BaseModel # {Orb::Models::Customers::Credits::TopUpListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/customers/credits/top_up_list_response.rb b/lib/orb/models/customers/credits/top_up_list_response.rb index 2e92ca99..1f91864f 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -67,17 +67,14 @@ class TopUpListResponse < Orb::Internal::Type::BaseModel # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # # @param invoice_settings [Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit, nil] The unit of expires_after. @@ -119,15 +116,12 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # Settings for invoices generated by triggered top-ups. # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav - # ... # # @param net_terms [Integer] The net terms determines the difference between the invoice date and the issue d - # ... # # @param memo [String, nil] An optional memo to display on the invoice. # # @param require_successful_payment [Boolean] If true, new credit blocks created by this top-up will require that the correspo - # ... end # The unit of expires_after. diff --git a/lib/orb/models/dimensional_price_group.rb b/lib/orb/models/dimensional_price_group.rb index e149c7b2..6ca4f141 100644 --- a/lib/orb/models/dimensional_price_group.rb +++ b/lib/orb/models/dimensional_price_group.rb @@ -46,7 +46,7 @@ class DimensionalPriceGroup < Orb::Internal::Type::BaseModel # @!method initialize(id:, billable_metric_id:, dimensions:, external_dimensional_price_group_id:, metadata:, name:) # Some parameter documentations has been truncated, see - # {Orb::Models::DimensionalPriceGroup} for more details. + # {Orb::DimensionalPriceGroup} for more details. # # A dimensional price group is used to partition the result of a billable metric # by a set of dimensions. Prices in a price group must specify the parition used @@ -55,14 +55,12 @@ class DimensionalPriceGroup < Orb::Internal::Type::BaseModel # @param id [String] # # @param billable_metric_id [String] The billable metric associated with this dimensional price group. All prices ass - # ... # # @param dimensions [Array] The dimensions that this dimensional price group is defined over # # @param external_dimensional_price_group_id [String, nil] An alias for the dimensional price group # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param name [String] The name of the dimensional price group end diff --git a/lib/orb/models/dimensional_price_group_create_params.rb b/lib/orb/models/dimensional_price_group_create_params.rb index b909b168..1d039c38 100644 --- a/lib/orb/models/dimensional_price_group_create_params.rb +++ b/lib/orb/models/dimensional_price_group_create_params.rb @@ -49,7 +49,6 @@ class DimensionalPriceGroupCreateParams < Orb::Internal::Type::BaseModel # @param external_dimensional_price_group_id [String, nil] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/dimensional_price_group_list_params.rb b/lib/orb/models/dimensional_price_group_list_params.rb index 47aeafe8..089a454d 100644 --- a/lib/orb/models/dimensional_price_group_list_params.rb +++ b/lib/orb/models/dimensional_price_group_list_params.rb @@ -25,7 +25,6 @@ class DimensionalPriceGroupListParams < Orb::Internal::Type::BaseModel # {Orb::Models::DimensionalPriceGroupListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/dimensional_price_groups.rb b/lib/orb/models/dimensional_price_groups.rb index 2b61caa0..a54daedd 100644 --- a/lib/orb/models/dimensional_price_groups.rb +++ b/lib/orb/models/dimensional_price_groups.rb @@ -5,17 +5,17 @@ module Models class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] - required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Models::DimensionalPriceGroup] } + # @return [Array] + required :data, -> { Orb::Internal::Type::ArrayOf[Orb::DimensionalPriceGroup] } # @!attribute pagination_metadata # - # @return [Orb::Models::PaginationMetadata] - required :pagination_metadata, -> { Orb::Models::PaginationMetadata } + # @return [Orb::PaginationMetadata] + required :pagination_metadata, -> { Orb::PaginationMetadata } # @!method initialize(data:, pagination_metadata:) - # @param data [Array] - # @param pagination_metadata [Orb::Models::PaginationMetadata] + # @param data [Array] + # @param pagination_metadata [Orb::PaginationMetadata] end end end diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index c3e38def..cd892ae2 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -7,16 +7,16 @@ module Discount discriminator :discount_type - variant :percentage, -> { Orb::Models::PercentageDiscount } + variant :percentage, -> { Orb::PercentageDiscount } - variant :trial, -> { Orb::Models::TrialDiscount } + variant :trial, -> { Orb::TrialDiscount } - variant :usage, -> { Orb::Models::UsageDiscount } + variant :usage, -> { Orb::UsageDiscount } - variant :amount, -> { Orb::Models::AmountDiscount } + variant :amount, -> { Orb::AmountDiscount } # @!method self.variants - # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount)] + # @return [Array(Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount)] end end end diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 7f12595f..0757bc5d 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -14,7 +14,7 @@ class EvaluatePriceGroup < Orb::Internal::Type::BaseModel # # @return [Array] required :grouping_values, - -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::EvaluatePriceGroup::GroupingValue] } + -> { Orb::Internal::Type::ArrayOf[union: Orb::EvaluatePriceGroup::GroupingValue] } # @!attribute quantity # The price's usage quantity for the group diff --git a/lib/orb/models/event_ingest_params.rb b/lib/orb/models/event_ingest_params.rb index 0837970b..1065aa60 100644 --- a/lib/orb/models/event_ingest_params.rb +++ b/lib/orb/models/event_ingest_params.rb @@ -9,8 +9,8 @@ class EventIngestParams < Orb::Internal::Type::BaseModel # @!attribute events # - # @return [Array] - required :events, -> { Orb::Internal::Type::ArrayOf[Orb::Models::EventIngestParams::Event] } + # @return [Array] + required :events, -> { Orb::Internal::Type::ArrayOf[Orb::EventIngestParams::Event] } # @!attribute backfill_id # If this ingestion request is part of a backfill, this parameter ties the @@ -29,10 +29,9 @@ class EventIngestParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::EventIngestParams} for more details. # - # @param events [Array] + # @param events [Array] # # @param backfill_id [String, nil] If this ingestion request is part of a backfill, this parameter ties the ingeste - # ... # # @param debug [Boolean] Flag to enable additional debug information in the endpoint response # @@ -83,23 +82,19 @@ class Event < Orb::Internal::Type::BaseModel # @!method initialize(event_name:, idempotency_key:, properties:, timestamp:, customer_id: nil, external_customer_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::EventIngestParams::Event} for more details. + # {Orb::EventIngestParams::Event} for more details. # # @param event_name [String] A name to meaningfully identify the action or event type. # # @param idempotency_key [String] A unique value, generated by the client, that is used to de-duplicate events. Ex - # ... # # @param properties [Object] A dictionary of custom properties. Values in this dictionary must be numeric, bo - # ... # # @param timestamp [Time] An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen - # ... # # @param customer_id [String, nil] The Orb Customer identifier # # @param external_customer_id [String, nil] An alias for the Orb customer, whose mapping is specified when creating the cust - # ... end end end diff --git a/lib/orb/models/event_ingest_response.rb b/lib/orb/models/event_ingest_response.rb index a1dfd8da..6532a818 100644 --- a/lib/orb/models/event_ingest_response.rb +++ b/lib/orb/models/event_ingest_response.rb @@ -24,10 +24,8 @@ class EventIngestResponse < Orb::Internal::Type::BaseModel # {Orb::Models::EventIngestResponse} for more details. # # @param validation_failed [Array] Contains all failing validation events. In the case of a 200, this array will al - # ... # # @param debug [Orb::Models::EventIngestResponse::Debug, nil] Optional debug information (only present when debug=true is passed to the endpoi - # ... class ValidationFailed < Orb::Internal::Type::BaseModel # @!attribute idempotency_key @@ -50,7 +48,6 @@ class ValidationFailed < Orb::Internal::Type::BaseModel # @param idempotency_key [String] The passed idempotency_key corresponding to the validation_errors # # @param validation_errors [Array] An array of strings corresponding to validation failures for this idempotency_ke - # ... end # @see Orb::Models::EventIngestResponse#debug diff --git a/lib/orb/models/event_search_params.rb b/lib/orb/models/event_search_params.rb index 272d828a..c60b55e5 100644 --- a/lib/orb/models/event_search_params.rb +++ b/lib/orb/models/event_search_params.rb @@ -35,13 +35,10 @@ class EventSearchParams < Orb::Internal::Type::BaseModel # {Orb::Models::EventSearchParams} for more details. # # @param event_ids [Array] This is an explicit array of IDs to filter by. Note that an event's ID is the id - # ... # # @param timeframe_end [Time, nil] The end of the timeframe, exclusive, in which to search events. If not specified - # ... # # @param timeframe_start [Time, nil] The start of the timeframe, inclusive, in which to search events. If not specifi - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/event_search_response.rb b/lib/orb/models/event_search_response.rb index aaf250db..38e5f6ed 100644 --- a/lib/orb/models/event_search_response.rb +++ b/lib/orb/models/event_search_response.rb @@ -70,7 +70,6 @@ class Data < Orb::Internal::Type::BaseModel # model, and are used to calculate the usage charges for a given billing period. # # @param id [String] A unique value, generated by the client, that is used to de-duplicate events. Ex - # ... # # @param customer_id [String, nil] The Orb Customer identifier # @@ -79,13 +78,10 @@ class Data < Orb::Internal::Type::BaseModel # @param event_name [String] A name to meaningfully identify the action or event type. # # @param external_customer_id [String, nil] An alias for the Orb customer, whose mapping is specified when creating the cust - # ... # # @param properties [Object] A dictionary of custom properties. Values in this dictionary must be numeric, bo - # ... # # @param timestamp [Time] An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen - # ... end end end diff --git a/lib/orb/models/event_update_params.rb b/lib/orb/models/event_update_params.rb index 06549031..9544e476 100644 --- a/lib/orb/models/event_update_params.rb +++ b/lib/orb/models/event_update_params.rb @@ -48,15 +48,12 @@ class EventUpdateParams < Orb::Internal::Type::BaseModel # @param event_name [String] A name to meaningfully identify the action or event type. # # @param properties [Object] A dictionary of custom properties. Values in this dictionary must be numeric, bo - # ... # # @param timestamp [Time] An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen - # ... # # @param customer_id [String, nil] The Orb Customer identifier # # @param external_customer_id [String, nil] An alias for the Orb customer, whose mapping is specified when creating the cust - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index 43dc81fd..c7895c31 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -83,17 +83,14 @@ class BackfillCloseResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in - # ... # # @param created_at [Time] # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null` - # ... # # @param events_ingested [Integer] The number of events ingested in this backfill. # # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the - # ... # # @param reverted_at [Time, nil] The time at which this backfill was reverted. # @@ -104,7 +101,6 @@ class BackfillCloseResponse < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # The status of the backfill. # diff --git a/lib/orb/models/events/backfill_create_params.rb b/lib/orb/models/events/backfill_create_params.rb index baa8fecd..91158580 100644 --- a/lib/orb/models/events/backfill_create_params.rb +++ b/lib/orb/models/events/backfill_create_params.rb @@ -66,25 +66,18 @@ class BackfillCreateParams < Orb::Internal::Type::BaseModel # {Orb::Models::Events::BackfillCreateParams} for more details. # # @param timeframe_end [Time] The (exclusive) end of the usage timeframe affected by this backfill. By default - # ... # # @param timeframe_start [Time] The (inclusive) start of the usage timeframe affected by this backfill. By defau - # ... # # @param close_time [Time, nil] The time at which no more events will be accepted for this backfill. The backfil - # ... # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. Omitting - # ... # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # # @param external_customer_id [String, nil] The external customer ID of the customer to which this backfill is scoped. Omitt - # ... # # @param replace_existing_events [Boolean] If true, replaces all existing events in the timeframe with the newly ingested e - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 61f1551b..e015eec8 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -83,17 +83,14 @@ class BackfillCreateResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in - # ... # # @param created_at [Time] # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null` - # ... # # @param events_ingested [Integer] The number of events ingested in this backfill. # # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the - # ... # # @param reverted_at [Time, nil] The time at which this backfill was reverted. # @@ -104,7 +101,6 @@ class BackfillCreateResponse < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # The status of the backfill. # diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index 2ae33188..d84b3159 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -83,17 +83,14 @@ class BackfillFetchResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in - # ... # # @param created_at [Time] # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null` - # ... # # @param events_ingested [Integer] The number of events ingested in this backfill. # # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the - # ... # # @param reverted_at [Time, nil] The time at which this backfill was reverted. # @@ -104,7 +101,6 @@ class BackfillFetchResponse < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # The status of the backfill. # diff --git a/lib/orb/models/events/backfill_list_params.rb b/lib/orb/models/events/backfill_list_params.rb index b70877c2..f3f2eace 100644 --- a/lib/orb/models/events/backfill_list_params.rb +++ b/lib/orb/models/events/backfill_list_params.rb @@ -26,7 +26,6 @@ class BackfillListParams < Orb::Internal::Type::BaseModel # {Orb::Models::Events::BackfillListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index 833d05e7..b2ee383f 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -83,17 +83,14 @@ class BackfillListResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in - # ... # # @param created_at [Time] # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null` - # ... # # @param events_ingested [Integer] The number of events ingested in this backfill. # # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the - # ... # # @param reverted_at [Time, nil] The time at which this backfill was reverted. # @@ -104,7 +101,6 @@ class BackfillListResponse < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # The status of the backfill. # diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index 7a42db9f..6fec258a 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -83,17 +83,14 @@ class BackfillRevertResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in - # ... # # @param created_at [Time] # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null` - # ... # # @param events_ingested [Integer] The number of events ingested in this backfill. # # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the - # ... # # @param reverted_at [Time, nil] The time at which this backfill was reverted. # @@ -104,7 +101,6 @@ class BackfillRevertResponse < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # The status of the backfill. # diff --git a/lib/orb/models/events/event_volumes.rb b/lib/orb/models/events/event_volumes.rb index 5eb16a39..341c181d 100644 --- a/lib/orb/models/events/event_volumes.rb +++ b/lib/orb/models/events/event_volumes.rb @@ -7,11 +7,11 @@ module Events class EventVolumes < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] - required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Events::EventVolumes::Data] } + # @return [Array] + required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Events::EventVolumes::Data] } # @!method initialize(data:) - # @param data [Array] + # @param data [Array] class Data < Orb::Internal::Type::BaseModel # @!attribute count diff --git a/lib/orb/models/events/volume_list_params.rb b/lib/orb/models/events/volume_list_params.rb index 39dcd0c3..31a52721 100644 --- a/lib/orb/models/events/volume_list_params.rb +++ b/lib/orb/models/events/volume_list_params.rb @@ -44,15 +44,12 @@ class VolumeListParams < Orb::Internal::Type::BaseModel # {Orb::Models::Events::VolumeListParams} for more details. # # @param timeframe_start [Time] The start of the timeframe, inclusive, in which to return event volume. All date - # ... # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param timeframe_end [Time] The end of the timeframe, exclusive, in which to return event volume. If not spe - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 559422f9..270d59f9 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -18,13 +18,13 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute auto_collection # - # @return [Orb::Models::Invoice::AutoCollection] - required :auto_collection, -> { Orb::Models::Invoice::AutoCollection } + # @return [Orb::Invoice::AutoCollection] + required :auto_collection, -> { Orb::Invoice::AutoCollection } # @!attribute billing_address # - # @return [Orb::Models::Invoice::BillingAddress, nil] - required :billing_address, -> { Orb::Models::Invoice::BillingAddress }, nil?: true + # @return [Orb::Invoice::BillingAddress, nil] + required :billing_address, -> { Orb::Invoice::BillingAddress }, nil?: true # @!attribute created_at # The creation time of the resource in Orb. @@ -35,8 +35,8 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute credit_notes # A list of credit notes associated with the invoice # - # @return [Array] - required :credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote] } + # @return [Array] + required :credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote] } # @!attribute currency # An ISO 4217 currency string or `credits` @@ -46,14 +46,14 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute customer # - # @return [Orb::Models::Invoice::Customer] - required :customer, -> { Orb::Models::Invoice::Customer } + # @return [Orb::Invoice::Customer] + required :customer, -> { Orb::Invoice::Customer } # @!attribute customer_balance_transactions # - # @return [Array] + # @return [Array] required :customer_balance_transactions, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction] } + -> { Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction] } # @!attribute customer_tax_id # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -162,8 +162,8 @@ class Invoice < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @return [Orb::Models::Invoice::CustomerTaxID, nil] - required :customer_tax_id, -> { Orb::Models::Invoice::CustomerTaxID }, nil?: true + # @return [Orb::Invoice::CustomerTaxID, nil] + required :customer_tax_id, -> { Orb::Invoice::CustomerTaxID }, nil?: true # @!attribute discount # @deprecated @@ -177,8 +177,8 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute discounts # - # @return [Array] - required :discounts, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount] } + # @return [Array] + required :discounts, -> { Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount] } # @!attribute due_date # When the invoice payment is due. The due date is null if the invoice is not yet @@ -224,8 +224,8 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute invoice_source # - # @return [Symbol, Orb::Models::Invoice::InvoiceSource] - required :invoice_source, enum: -> { Orb::Models::Invoice::InvoiceSource } + # @return [Symbol, Orb::Invoice::InvoiceSource] + required :invoice_source, enum: -> { Orb::Invoice::InvoiceSource } # @!attribute issue_failed_at # If the invoice failed to issue, this will be the last time it failed to issue @@ -244,13 +244,13 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute line_items # The breakdown of prices in this invoice. # - # @return [Array] - required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem] } + # @return [Array] + required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem] } # @!attribute maximum # - # @return [Orb::Models::Invoice::Maximum, nil] - required :maximum, -> { Orb::Models::Invoice::Maximum }, nil?: true + # @return [Orb::Invoice::Maximum, nil] + required :maximum, -> { Orb::Invoice::Maximum }, nil?: true # @!attribute maximum_amount # @@ -274,8 +274,8 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Invoice::Minimum, nil] - required :minimum, -> { Orb::Models::Invoice::Minimum }, nil?: true + # @return [Orb::Invoice::Minimum, nil] + required :minimum, -> { Orb::Invoice::Minimum }, nil?: true # @!attribute minimum_amount # @@ -292,8 +292,8 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute payment_attempts # A list of payment attempts associated with the invoice # - # @return [Array] - required :payment_attempts, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt] } + # @return [Array] + required :payment_attempts, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt] } # @!attribute payment_failed_at # If payment was attempted on this invoice but failed, this will be the time of @@ -319,18 +319,18 @@ class Invoice < Orb::Internal::Type::BaseModel # @!attribute shipping_address # - # @return [Orb::Models::Invoice::ShippingAddress, nil] - required :shipping_address, -> { Orb::Models::Invoice::ShippingAddress }, nil?: true + # @return [Orb::Invoice::ShippingAddress, nil] + required :shipping_address, -> { Orb::Invoice::ShippingAddress }, nil?: true # @!attribute status # - # @return [Symbol, Orb::Models::Invoice::Status] - required :status, enum: -> { Orb::Models::Invoice::Status } + # @return [Symbol, Orb::Invoice::Status] + required :status, enum: -> { Orb::Invoice::Status } # @!attribute subscription # - # @return [Orb::Models::Invoice::Subscription, nil] - required :subscription, -> { Orb::Models::Invoice::Subscription }, nil?: true + # @return [Orb::Invoice::Subscription, nil] + required :subscription, -> { Orb::Invoice::Subscription }, nil?: true # @!attribute subtotal # The total before any discounts and minimums are applied. @@ -367,8 +367,8 @@ class Invoice < Orb::Internal::Type::BaseModel required :will_auto_issue, Orb::Internal::Type::Boolean # @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:) - # Some parameter documentations has been truncated, see {Orb::Models::Invoice} for - # more details. + # Some parameter documentations has been truncated, see {Orb::Invoice} for more + # details. # # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, # representing the request for payment for a single subscription. This includes a @@ -379,104 +379,86 @@ class Invoice < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_due [String] This is the final amount required to be charged to the customer and reflects the - # ... # - # @param auto_collection [Orb::Models::Invoice::AutoCollection] + # @param auto_collection [Orb::Invoice::AutoCollection] # - # @param billing_address [Orb::Models::Invoice::BillingAddress, nil] + # @param billing_address [Orb::Invoice::BillingAddress, nil] # # @param created_at [Time] The creation time of the resource in Orb. # - # @param credit_notes [Array] A list of credit notes associated with the invoice + # @param credit_notes [Array] A list of credit notes associated with the invoice # # @param currency [String] An ISO 4217 currency string or `credits` # - # @param customer [Orb::Models::Invoice::Customer] + # @param customer [Orb::Invoice::Customer] # - # @param customer_balance_transactions [Array] + # @param customer_balance_transactions [Array] # - # @param customer_tax_id [Orb::Models::Invoice::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param customer_tax_id [Orb::Invoice::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param discount [Object] This field is deprecated in favor of `discounts`. If a `discounts` list is provi - # ... # - # @param discounts [Array] + # @param discounts [Array] # # @param due_date [Time, nil] When the invoice payment is due. The due date is null if the invoice is not yet - # ... # # @param eligible_to_issue_at [Time, nil] If the invoice has a status of `draft`, this will be the time that the invoice w - # ... # # @param hosted_invoice_url [String, nil] A URL for the customer-facing invoice portal. This URL expires 30 days after the - # ... # # @param invoice_date [Time] The scheduled date of the invoice # # @param invoice_number [String] Automatically generated invoice number to help track and reconcile invoices. Inv - # ... # # @param invoice_pdf [String, nil] The link to download the PDF representation of the `Invoice`. # - # @param invoice_source [Symbol, Orb::Models::Invoice::InvoiceSource] + # @param invoice_source [Symbol, Orb::Invoice::InvoiceSource] # # @param issue_failed_at [Time, nil] If the invoice failed to issue, this will be the last time it failed to issue (e - # ... # # @param issued_at [Time, nil] If the invoice has been issued, this will be the time it transitioned to `issued - # ... # - # @param line_items [Array] The breakdown of prices in this invoice. + # @param line_items [Array] The breakdown of prices in this invoice. # - # @param maximum [Orb::Models::Invoice::Maximum, nil] + # @param maximum [Orb::Invoice::Maximum, nil] # # @param maximum_amount [String, nil] # # @param memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal. - # ... # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Invoice::Minimum, nil] + # @param minimum [Orb::Invoice::Minimum, nil] # # @param minimum_amount [String, nil] # # @param paid_at [Time, nil] If the invoice has a status of `paid`, this gives a timestamp when the invoice w - # ... # - # @param payment_attempts [Array] A list of payment attempts associated with the invoice + # @param payment_attempts [Array] A list of payment attempts associated with the invoice # # @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th - # ... # # @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos - # ... # # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche - # ... # - # @param shipping_address [Orb::Models::Invoice::ShippingAddress, nil] + # @param shipping_address [Orb::Invoice::ShippingAddress, nil] # - # @param status [Symbol, Orb::Models::Invoice::Status] + # @param status [Symbol, Orb::Invoice::Status] # - # @param subscription [Orb::Models::Invoice::Subscription, nil] + # @param subscription [Orb::Invoice::Subscription, nil] # # @param subtotal [String] The total before any discounts and minimums are applied. # # @param sync_failed_at [Time, nil] If the invoice failed to sync, this will be the last time an external invoicing - # ... # # @param total [String] The total after any minimums and discounts have been applied. # # @param voided_at [Time, nil] If the invoice has a status of `void`, this gives a timestamp when the invoice w - # ... # # @param will_auto_issue [Boolean] This is true if the invoice will be automatically issued in the future, and fals - # ... - # @see Orb::Models::Invoice#auto_collection + # @see Orb::Invoice#auto_collection class AutoCollection < Orb::Internal::Type::BaseModel # @!attribute enabled # True only if auto-collection is enabled for this invoice. @@ -511,20 +493,18 @@ class AutoCollection < Orb::Internal::Type::BaseModel # @!method initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::AutoCollection} for more details. + # {Orb::Invoice::AutoCollection} for more details. # # @param enabled [Boolean, nil] True only if auto-collection is enabled for this invoice. # # @param next_attempt_at [Time, nil] If the invoice is scheduled for auto-collection, this field will reflect when th - # ... # # @param num_attempts [Integer, nil] Number of auto-collection payment attempts. # # @param previously_attempted_at [Time, nil] If Orb has ever attempted payment auto-collection for this invoice, this field w - # ... end - # @see Orb::Models::Invoice#billing_address + # @see Orb::Invoice#billing_address class BillingAddress < Orb::Internal::Type::BaseModel # @!attribute city # @@ -605,8 +585,8 @@ class CreditNote < Orb::Internal::Type::BaseModel required :voided_at, Time, nil?: true # @!method initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::CreditNote} for more details. + # Some parameter documentations has been truncated, see {Orb::Invoice::CreditNote} + # for more details. # # @param id [String] # @@ -621,10 +601,9 @@ class CreditNote < Orb::Internal::Type::BaseModel # @param type [String] # # @param voided_at [Time, nil] If the credit note has a status of `void`, this gives a timestamp when the credi - # ... end - # @see Orb::Models::Invoice#customer + # @see Orb::Invoice#customer class Customer < Orb::Internal::Type::BaseModel # @!attribute id # @@ -650,8 +629,8 @@ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel # @!attribute action # - # @return [Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action] - required :action, enum: -> { Orb::Models::Invoice::CustomerBalanceTransaction::Action } + # @return [Symbol, Orb::Invoice::CustomerBalanceTransaction::Action] + required :action, enum: -> { Orb::Invoice::CustomerBalanceTransaction::Action } # @!attribute amount # The value of the amount changed in the transaction. @@ -667,8 +646,8 @@ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel # @!attribute credit_note # - # @return [Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, nil] - required :credit_note, -> { Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote }, nil?: true + # @return [Orb::Invoice::CustomerBalanceTransaction::CreditNote, nil] + required :credit_note, -> { Orb::Invoice::CustomerBalanceTransaction::CreditNote }, nil?: true # @!attribute description # An optional description provided for manual customer balance adjustments. @@ -685,8 +664,8 @@ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel # @!attribute invoice # - # @return [Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, nil] - required :invoice, -> { Orb::Models::Invoice::CustomerBalanceTransaction::Invoice }, nil?: true + # @return [Orb::Invoice::CustomerBalanceTransaction::Invoice, nil] + required :invoice, -> { Orb::Invoice::CustomerBalanceTransaction::Invoice }, nil?: true # @!attribute starting_balance # The original value of the customer's balance prior to the transaction, in the @@ -697,36 +676,34 @@ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel # @!attribute type # - # @return [Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type] - required :type, enum: -> { Orb::Models::Invoice::CustomerBalanceTransaction::Type } + # @return [Symbol, Orb::Invoice::CustomerBalanceTransaction::Type] + required :type, enum: -> { Orb::Invoice::CustomerBalanceTransaction::Type } # @!method initialize(id:, action:, amount:, created_at:, credit_note:, description:, ending_balance:, invoice:, starting_balance:, type:) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::CustomerBalanceTransaction} for more details. + # {Orb::Invoice::CustomerBalanceTransaction} for more details. # # @param id [String] A unique id for this transaction. # - # @param action [Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action] + # @param action [Symbol, Orb::Invoice::CustomerBalanceTransaction::Action] # # @param amount [String] The value of the amount changed in the transaction. # # @param created_at [Time] The creation time of this transaction. # - # @param credit_note [Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, nil] + # @param credit_note [Orb::Invoice::CustomerBalanceTransaction::CreditNote, nil] # # @param description [String, nil] An optional description provided for manual customer balance adjustments. # # @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome - # ... # - # @param invoice [Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, nil] + # @param invoice [Orb::Invoice::CustomerBalanceTransaction::Invoice, nil] # # @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu - # ... # - # @param type [Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type] + # @param type [Symbol, Orb::Invoice::CustomerBalanceTransaction::Type] - # @see Orb::Models::Invoice::CustomerBalanceTransaction#action + # @see Orb::Invoice::CustomerBalanceTransaction#action module Action extend Orb::Internal::Type::Enum @@ -744,7 +721,7 @@ module Action # @return [Array] end - # @see Orb::Models::Invoice::CustomerBalanceTransaction#credit_note + # @see Orb::Invoice::CustomerBalanceTransaction#credit_note class CreditNote < Orb::Internal::Type::BaseModel # @!attribute id # The id of the Credit note @@ -756,7 +733,7 @@ class CreditNote < Orb::Internal::Type::BaseModel # @param id [String] The id of the Credit note end - # @see Orb::Models::Invoice::CustomerBalanceTransaction#invoice + # @see Orb::Invoice::CustomerBalanceTransaction#invoice class Invoice < Orb::Internal::Type::BaseModel # @!attribute id # The Invoice id @@ -768,7 +745,7 @@ class Invoice < Orb::Internal::Type::BaseModel # @param id [String] The Invoice id end - # @see Orb::Models::Invoice::CustomerBalanceTransaction#type + # @see Orb::Invoice::CustomerBalanceTransaction#type module Type extend Orb::Internal::Type::Enum @@ -780,17 +757,17 @@ module Type end end - # @see Orb::Models::Invoice#customer_tax_id + # @see Orb::Invoice#customer_tax_id class CustomerTaxID < Orb::Internal::Type::BaseModel # @!attribute country # - # @return [Symbol, Orb::Models::Invoice::CustomerTaxID::Country] - required :country, enum: -> { Orb::Models::Invoice::CustomerTaxID::Country } + # @return [Symbol, Orb::Invoice::CustomerTaxID::Country] + required :country, enum: -> { Orb::Invoice::CustomerTaxID::Country } # @!attribute type # - # @return [Symbol, Orb::Models::Invoice::CustomerTaxID::Type] - required :type, enum: -> { Orb::Models::Invoice::CustomerTaxID::Type } + # @return [Symbol, Orb::Invoice::CustomerTaxID::Type] + required :type, enum: -> { Orb::Invoice::CustomerTaxID::Type } # @!attribute value # @@ -904,11 +881,11 @@ class CustomerTaxID < Orb::Internal::Type::BaseModel # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @param country [Symbol, Orb::Models::Invoice::CustomerTaxID::Country] - # @param type [Symbol, Orb::Models::Invoice::CustomerTaxID::Type] + # @param country [Symbol, Orb::Invoice::CustomerTaxID::Country] + # @param type [Symbol, Orb::Invoice::CustomerTaxID::Type] # @param value [String] - # @see Orb::Models::Invoice::CustomerTaxID#country + # @see Orb::Invoice::CustomerTaxID#country module Country extend Orb::Internal::Type::Enum @@ -995,7 +972,7 @@ module Country # @return [Array] end - # @see Orb::Models::Invoice::CustomerTaxID#type + # @see Orb::Invoice::CustomerTaxID#type module Type extend Orb::Internal::Type::Enum @@ -1076,7 +1053,7 @@ module Type end end - # @see Orb::Models::Invoice#invoice_source + # @see Orb::Invoice#invoice_source module InvoiceSource extend Orb::Internal::Type::Enum @@ -1107,9 +1084,8 @@ class LineItem < Orb::Internal::Type::BaseModel # invoice calculations (ie. usage discounts -> amount discounts -> percentage # discounts -> minimums -> maximums). # - # @return [Array] - required :adjustments, - -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::Invoice::LineItem::Adjustment] } + # @return [Array] + required :adjustments, -> { Orb::Internal::Type::ArrayOf[union: Orb::Invoice::LineItem::Adjustment] } # @!attribute amount # The final amount for a line item after all adjustments and pre paid credits have @@ -1126,8 +1102,8 @@ class LineItem < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute end_date # The end date of the range of time applied for this line item's price. @@ -1154,8 +1130,8 @@ class LineItem < Orb::Internal::Type::BaseModel # # This field is deprecated in favor of `adjustments`. # - # @return [Orb::Models::Invoice::LineItem::Maximum, nil] - required :maximum, -> { Orb::Models::Invoice::LineItem::Maximum }, nil?: true + # @return [Orb::Invoice::LineItem::Maximum, nil] + required :maximum, -> { Orb::Invoice::LineItem::Maximum }, nil?: true # @!attribute maximum_amount # @deprecated @@ -1170,8 +1146,8 @@ class LineItem < Orb::Internal::Type::BaseModel # # This field is deprecated in favor of `adjustments`. # - # @return [Orb::Models::Invoice::LineItem::Minimum, nil] - required :minimum, -> { Orb::Models::Invoice::LineItem::Minimum }, nil?: true + # @return [Orb::Invoice::LineItem::Minimum, nil] + required :minimum, -> { Orb::Invoice::LineItem::Minimum }, nil?: true # @!attribute minimum_amount # @deprecated @@ -1205,8 +1181,8 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] - required :price, union: -> { Orb::Models::Price }, nil?: true + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] + required :price, union: -> { Orb::Price }, nil?: true # @!attribute quantity # Either the fixed fee quantity or the usage during the service period. @@ -1224,9 +1200,11 @@ class LineItem < Orb::Internal::Type::BaseModel # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. # - # @return [Array] + # @return [Array] required :sub_line_items, - -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::Invoice::LineItem::SubLineItem] } + -> { + Orb::Internal::Type::ArrayOf[union: Orb::Invoice::LineItem::SubLineItem] + } # @!attribute subtotal # The line amount before before any adjustments. @@ -1238,8 +1216,8 @@ class LineItem < Orb::Internal::Type::BaseModel # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. # - # @return [Array] - required :tax_amounts, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem::TaxAmount] } + # @return [Array] + required :tax_amounts, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem::TaxAmount] } # @!attribute usage_customer_ids # A list of customer ids that were used to calculate the usage for this line item. @@ -1248,36 +1226,32 @@ class LineItem < Orb::Internal::Type::BaseModel required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true # @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem} for more details. + # Some parameter documentations has been truncated, see {Orb::Invoice::LineItem} + # for more details. # # @param id [String] A unique ID for this line item. # # @param adjusted_subtotal [String] The line amount after any adjustments and before overage conversion, credits and - # ... # - # @param adjustments [Array] All adjustments applied to the line item in the order they were applied based on - # ... + # @param adjustments [Array] All adjustments applied to the line item in the order they were applied based on # # @param amount [String] The final amount for a line item after all adjustments and pre paid credits have - # ... # # @param credits_applied [String] The number of prepaid credits applied. # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param end_date [Time] The end date of the range of time applied for this line item's price. # # @param filter [String, nil] An additional filter that was used to calculate the usage for this line item. # # @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b - # ... # - # @param maximum [Orb::Models::Invoice::LineItem::Maximum, nil] This field is deprecated in favor of `adjustments`. + # @param maximum [Orb::Invoice::LineItem::Maximum, nil] This field is deprecated in favor of `adjustments`. # # @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`. # - # @param minimum [Orb::Models::Invoice::LineItem::Minimum, nil] This field is deprecated in favor of `adjustments`. + # @param minimum [Orb::Invoice::LineItem::Minimum, nil] This field is deprecated in favor of `adjustments`. # # @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`. # @@ -1285,38 +1259,34 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # # @param start_date [Time] The start date of the range of time applied for this line item's price. # - # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub - # ... + # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub # # @param subtotal [String] The line amount before before any adjustments. # - # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio - # ... + # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio # # @param usage_customer_ids [Array, nil] A list of customer ids that were used to calculate the usage for this line item. - # ... module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type - variant :usage_discount, -> { Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount } + variant :usage_discount, -> { Orb::Invoice::LineItem::Adjustment::UsageDiscount } - variant :amount_discount, -> { Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount } + variant :amount_discount, -> { Orb::Invoice::LineItem::Adjustment::AmountDiscount } - variant :percentage_discount, -> { Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount } + variant :percentage_discount, -> { Orb::Invoice::LineItem::Adjustment::PercentageDiscount } - variant :minimum, -> { Orb::Models::Invoice::LineItem::Adjustment::Minimum } + variant :minimum, -> { Orb::Invoice::LineItem::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::Invoice::LineItem::Adjustment::Maximum } + variant :maximum, -> { Orb::Invoice::LineItem::Adjustment::Maximum } class UsageDiscount < Orb::Internal::Type::BaseModel # @!attribute id @@ -1363,7 +1333,7 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount:, applies_to_price_ids:, is_invoice_level:, reason:, usage_discount:, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount} for more details. + # {Orb::Invoice::LineItem::Adjustment::UsageDiscount} for more details. # # @param id [String] # @@ -1372,12 +1342,10 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -1427,19 +1395,17 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount:, amount_discount:, applies_to_price_ids:, is_invoice_level:, reason:, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount} for more details. + # {Orb::Invoice::LineItem::Adjustment::AmountDiscount} for more details. # # @param id [String] # # @param amount [String] The value applied by an adjustment. # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1491,8 +1457,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, reason:, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount} for more - # details. + # {Orb::Invoice::LineItem::Adjustment::PercentageDiscount} for more details. # # @param id [String] # @@ -1501,10 +1466,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1562,7 +1525,7 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, reason:, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Adjustment::Minimum} for more details. + # {Orb::Invoice::LineItem::Adjustment::Minimum} for more details. # # @param id [String] # @@ -1571,12 +1534,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1628,7 +1589,7 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, reason:, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Adjustment::Maximum} for more details. + # {Orb::Invoice::LineItem::Adjustment::Maximum} for more details. # # @param id [String] # @@ -1637,10 +1598,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1648,12 +1607,12 @@ class Maximum < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Models::Invoice::LineItem::Adjustment::Minimum, Orb::Models::Invoice::LineItem::Adjustment::Maximum)] + # @return [Array(Orb::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Invoice::LineItem::Adjustment::Minimum, Orb::Invoice::LineItem::Adjustment::Maximum)] end # @deprecated # - # @see Orb::Models::Invoice::LineItem#maximum + # @see Orb::Invoice::LineItem#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1670,19 +1629,18 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Maximum} for more details. + # {Orb::Invoice::LineItem::Maximum} for more details. # # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end # @deprecated # - # @see Orb::Models::Invoice::LineItem#minimum + # @see Orb::Invoice::LineItem#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1699,12 +1657,11 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::LineItem::Minimum} for more details. + # {Orb::Invoice::LineItem::Minimum} for more details. # # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end @@ -1714,11 +1671,11 @@ module SubLineItem discriminator :type - variant :matrix, -> { Orb::Models::Invoice::LineItem::SubLineItem::Matrix } + variant :matrix, -> { Orb::Invoice::LineItem::SubLineItem::Matrix } - variant :tier, -> { Orb::Models::Invoice::LineItem::SubLineItem::Tier } + variant :tier, -> { Orb::Invoice::LineItem::SubLineItem::Tier } - variant :"'null'", -> { Orb::Models::Invoice::LineItem::SubLineItem::Null } + variant :"'null'", -> { Orb::Invoice::LineItem::SubLineItem::Null } class Matrix < Orb::Internal::Type::BaseModel # @!attribute amount @@ -1729,13 +1686,13 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute grouping # - # @return [Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, nil] - required :grouping, -> { Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping }, nil?: true + # @return [Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping, nil] + required :grouping, -> { Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping }, nil?: true # @!attribute matrix_config # - # @return [Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig] - required :matrix_config, -> { Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig } + # @return [Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig] + required :matrix_config, -> { Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig } # @!attribute name # @@ -1755,9 +1712,9 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) # @param amount [String] The total amount for this sub line item. # - # @param grouping [Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, nil] + # @param grouping [Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping, nil] # - # @param matrix_config [Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig] + # @param matrix_config [Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig] # # @param name [String] # @@ -1765,7 +1722,7 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param type [Symbol, :matrix] - # @see Orb::Models::Invoice::LineItem::SubLineItem::Matrix#grouping + # @see Orb::Invoice::LineItem::SubLineItem::Matrix#grouping class Grouping < Orb::Internal::Type::BaseModel # @!attribute key # @@ -1784,7 +1741,7 @@ class Grouping < Orb::Internal::Type::BaseModel # @param value [String, nil] No value indicates the default group end - # @see Orb::Models::Invoice::LineItem::SubLineItem::Matrix#matrix_config + # @see Orb::Invoice::LineItem::SubLineItem::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute dimension_values # The ordered dimension values for this line item. @@ -1806,8 +1763,8 @@ class Tier < Orb::Internal::Type::BaseModel # @!attribute grouping # - # @return [Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, nil] - required :grouping, -> { Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping }, nil?: true + # @return [Orb::Invoice::LineItem::SubLineItem::Tier::Grouping, nil] + required :grouping, -> { Orb::Invoice::LineItem::SubLineItem::Tier::Grouping }, nil?: true # @!attribute name # @@ -1821,8 +1778,8 @@ class Tier < Orb::Internal::Type::BaseModel # @!attribute tier_config # - # @return [Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig] - required :tier_config, -> { Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig } + # @return [Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig] + required :tier_config, -> { Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig } # @!attribute type # @@ -1832,17 +1789,17 @@ class Tier < Orb::Internal::Type::BaseModel # @!method initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) # @param amount [String] The total amount for this sub line item. # - # @param grouping [Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, nil] + # @param grouping [Orb::Invoice::LineItem::SubLineItem::Tier::Grouping, nil] # # @param name [String] # # @param quantity [Float] # - # @param tier_config [Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig] + # @param tier_config [Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig] # # @param type [Symbol, :tier] - # @see Orb::Models::Invoice::LineItem::SubLineItem::Tier#grouping + # @see Orb::Invoice::LineItem::SubLineItem::Tier#grouping class Grouping < Orb::Internal::Type::BaseModel # @!attribute key # @@ -1861,7 +1818,7 @@ class Grouping < Orb::Internal::Type::BaseModel # @param value [String, nil] No value indicates the default group end - # @see Orb::Models::Invoice::LineItem::SubLineItem::Tier#tier_config + # @see Orb::Invoice::LineItem::SubLineItem::Tier#tier_config class TierConfig < Orb::Internal::Type::BaseModel # @!attribute first_unit # @@ -1894,8 +1851,8 @@ class Null < Orb::Internal::Type::BaseModel # @!attribute grouping # - # @return [Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, nil] - required :grouping, -> { Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping }, nil?: true + # @return [Orb::Invoice::LineItem::SubLineItem::Null::Grouping, nil] + required :grouping, -> { Orb::Invoice::LineItem::SubLineItem::Null::Grouping }, nil?: true # @!attribute name # @@ -1915,7 +1872,7 @@ class Null < Orb::Internal::Type::BaseModel # @!method initialize(amount:, grouping:, name:, quantity:, type: :"'null'") # @param amount [String] The total amount for this sub line item. # - # @param grouping [Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, nil] + # @param grouping [Orb::Invoice::LineItem::SubLineItem::Null::Grouping, nil] # # @param name [String] # @@ -1923,7 +1880,7 @@ class Null < Orb::Internal::Type::BaseModel # # @param type [Symbol, :"'null'"] - # @see Orb::Models::Invoice::LineItem::SubLineItem::Null#grouping + # @see Orb::Invoice::LineItem::SubLineItem::Null#grouping class Grouping < Orb::Internal::Type::BaseModel # @!attribute key # @@ -1944,7 +1901,7 @@ class Grouping < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::Invoice::LineItem::SubLineItem::Matrix, Orb::Models::Invoice::LineItem::SubLineItem::Tier, Orb::Models::Invoice::LineItem::SubLineItem::Null)] + # @return [Array(Orb::Invoice::LineItem::SubLineItem::Matrix, Orb::Invoice::LineItem::SubLineItem::Tier, Orb::Invoice::LineItem::SubLineItem::Null)] end class TaxAmount < Orb::Internal::Type::BaseModel @@ -1975,7 +1932,7 @@ class TaxAmount < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Invoice#maximum + # @see Orb::Invoice#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1991,16 +1948,15 @@ class Maximum < Orb::Internal::Type::BaseModel required :maximum_amount, String # @!method initialize(applies_to_price_ids:, maximum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::Maximum} for more details. + # Some parameter documentations has been truncated, see {Orb::Invoice::Maximum} + # for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Invoice#minimum + # @see Orb::Invoice#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2016,11 +1972,10 @@ class Minimum < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!method initialize(applies_to_price_ids:, minimum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Invoice::Minimum} for more details. + # Some parameter documentations has been truncated, see {Orb::Invoice::Minimum} + # for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end @@ -2047,8 +2002,8 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # @!attribute payment_provider # The payment provider that attempted to collect the payment. # - # @return [Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider, nil] - required :payment_provider, enum: -> { Orb::Models::Invoice::PaymentAttempt::PaymentProvider }, nil?: true + # @return [Symbol, Orb::Invoice::PaymentAttempt::PaymentProvider, nil] + required :payment_provider, enum: -> { Orb::Invoice::PaymentAttempt::PaymentProvider }, nil?: true # @!attribute payment_provider_id # The ID of the payment attempt in the payment provider. @@ -2069,7 +2024,7 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # # @param created_at [Time] The time at which the payment attempt was created. # - # @param payment_provider [Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider, nil] The payment provider that attempted to collect the payment. + # @param payment_provider [Symbol, Orb::Invoice::PaymentAttempt::PaymentProvider, nil] The payment provider that attempted to collect the payment. # # @param payment_provider_id [String, nil] The ID of the payment attempt in the payment provider. # @@ -2077,7 +2032,7 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # The payment provider that attempted to collect the payment. # - # @see Orb::Models::Invoice::PaymentAttempt#payment_provider + # @see Orb::Invoice::PaymentAttempt#payment_provider module PaymentProvider extend Orb::Internal::Type::Enum @@ -2088,7 +2043,7 @@ module PaymentProvider end end - # @see Orb::Models::Invoice#shipping_address + # @see Orb::Invoice#shipping_address class ShippingAddress < Orb::Internal::Type::BaseModel # @!attribute city # @@ -2129,7 +2084,7 @@ class ShippingAddress < Orb::Internal::Type::BaseModel # @param state [String, nil] end - # @see Orb::Models::Invoice#status + # @see Orb::Invoice#status module Status extend Orb::Internal::Type::Enum @@ -2143,7 +2098,7 @@ module Status # @return [Array] end - # @see Orb::Models::Invoice#subscription + # @see Orb::Invoice#subscription class Subscription < Orb::Internal::Type::BaseModel # @!attribute id # diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index 698f27d5..206f30dc 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -23,8 +23,8 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # @!attribute line_items # - # @return [Array] - required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::Models::InvoiceCreateParams::LineItem] } + # @return [Array] + required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::InvoiceCreateParams::LineItem] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -45,8 +45,8 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # @!attribute discount # An optional discount to attach to the invoice. # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - optional :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + optional :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_customer_id # The `external_customer_id` of the `Customer` to create this invoice for. One of @@ -82,31 +82,24 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # {Orb::Models::InvoiceCreateParams} for more details. # # @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i - # ... # # @param invoice_date [Time] Optional invoice date to set. Must be in the past, if not set, `invoice_date` is - # ... # - # @param line_items [Array] + # @param line_items [Array] # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param customer_id [String, nil] The id of the `Customer` to create this invoice for. One of `customer_id` and `e - # ... # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice. + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] An optional discount to attach to the invoice. # # @param external_customer_id [String, nil] The `external_customer_id` of the `Customer` to create this invoice for. One of - # ... # # @param memo [String, nil] An optional memo to attach to the invoice. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -124,8 +117,8 @@ class LineItem < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType] - required :model_type, enum: -> { Orb::Models::InvoiceCreateParams::LineItem::ModelType } + # @return [Symbol, Orb::InvoiceCreateParams::LineItem::ModelType] + required :model_type, enum: -> { Orb::InvoiceCreateParams::LineItem::ModelType } # @!attribute name # The name of the line item. @@ -147,15 +140,15 @@ class LineItem < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::InvoiceCreateParams::LineItem::UnitConfig] - required :unit_config, -> { Orb::Models::InvoiceCreateParams::LineItem::UnitConfig } + # @return [Orb::InvoiceCreateParams::LineItem::UnitConfig] + required :unit_config, -> { Orb::InvoiceCreateParams::LineItem::UnitConfig } # @!method initialize(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:) # @param end_date [Date] A date string to specify the line item's end date in the customer's timezone. # # @param item_id [String] # - # @param model_type [Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType] + # @param model_type [Symbol, Orb::InvoiceCreateParams::LineItem::ModelType] # # @param name [String] The name of the line item. # @@ -163,9 +156,9 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param start_date [Date] A date string to specify the line item's start date in the customer's timezone. # - # @param unit_config [Orb::Models::InvoiceCreateParams::LineItem::UnitConfig] + # @param unit_config [Orb::InvoiceCreateParams::LineItem::UnitConfig] - # @see Orb::Models::InvoiceCreateParams::LineItem#model_type + # @see Orb::InvoiceCreateParams::LineItem#model_type module ModelType extend Orb::Internal::Type::Enum @@ -175,7 +168,7 @@ module ModelType # @return [Array] end - # @see Orb::Models::InvoiceCreateParams::LineItem#unit_config + # @see Orb::InvoiceCreateParams::LineItem#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index f70f1767..335d5fd0 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -178,8 +178,8 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # @!attribute discounts # - # @return [Array] - required :discounts, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount] } + # @return [Array] + required :discounts, -> { Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount] } # @!attribute due_date # When the invoice payment is due. The due date is null if the invoice is not yet @@ -376,7 +376,6 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_due [String] This is the final amount required to be charged to the customer and reflects the - # ... # # @param auto_collection [Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection] # @@ -393,34 +392,26 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # @param customer_balance_transactions [Array] # # @param customer_tax_id [Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... # # @param discount [Object] This field is deprecated in favor of `discounts`. If a `discounts` list is provi - # ... # - # @param discounts [Array] + # @param discounts [Array] # # @param due_date [Time, nil] When the invoice payment is due. The due date is null if the invoice is not yet - # ... # # @param eligible_to_issue_at [Time, nil] If the invoice has a status of `draft`, this will be the time that the invoice w - # ... # # @param hosted_invoice_url [String, nil] A URL for the customer-facing invoice portal. This URL expires 30 days after the - # ... # # @param invoice_number [String] Automatically generated invoice number to help track and reconcile invoices. Inv - # ... # # @param invoice_pdf [String, nil] The link to download the PDF representation of the `Invoice`. # # @param invoice_source [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource] # # @param issue_failed_at [Time, nil] If the invoice failed to issue, this will be the last time it failed to issue (e - # ... # # @param issued_at [Time, nil] If the invoice has been issued, this will be the time it transitioned to `issued - # ... # # @param line_items [Array] The breakdown of prices in this invoice. # @@ -429,28 +420,22 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # @param maximum_amount [String, nil] # # @param memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal. - # ... # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum [Orb::Models::InvoiceFetchUpcomingResponse::Minimum, nil] # # @param minimum_amount [String, nil] # # @param paid_at [Time, nil] If the invoice has a status of `paid`, this gives a timestamp when the invoice w - # ... # # @param payment_attempts [Array] A list of payment attempts associated with the invoice # # @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th - # ... # # @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos - # ... # # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche - # ... # # @param shipping_address [Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, nil] # @@ -461,17 +446,14 @@ class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel # @param subtotal [String] The total before any discounts and minimums are applied. # # @param sync_failed_at [Time, nil] If the invoice failed to sync, this will be the last time an external invoicing - # ... # # @param target_date [Time] The scheduled date of the invoice # # @param total [String] The total after any minimums and discounts have been applied. # # @param voided_at [Time, nil] If the invoice has a status of `void`, this gives a timestamp when the invoice w - # ... # # @param will_auto_issue [Boolean] This is true if the invoice will be automatically issued in the future, and fals - # ... # @see Orb::Models::InvoiceFetchUpcomingResponse#auto_collection class AutoCollection < Orb::Internal::Type::BaseModel @@ -513,12 +495,10 @@ class AutoCollection < Orb::Internal::Type::BaseModel # @param enabled [Boolean, nil] True only if auto-collection is enabled for this invoice. # # @param next_attempt_at [Time, nil] If the invoice is scheduled for auto-collection, this field will reflect when th - # ... # # @param num_attempts [Integer, nil] Number of auto-collection payment attempts. # # @param previously_attempted_at [Time, nil] If Orb has ever attempted payment auto-collection for this invoice, this field w - # ... end # @see Orb::Models::InvoiceFetchUpcomingResponse#billing_address @@ -618,7 +598,6 @@ class CreditNote < Orb::Internal::Type::BaseModel # @param type [String] # # @param voided_at [Time, nil] If the credit note has a status of `void`, this gives a timestamp when the credi - # ... end # @see Orb::Models::InvoiceFetchUpcomingResponse#customer @@ -720,12 +699,10 @@ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel # @param description [String, nil] An optional description provided for manual customer balance adjustments. # # @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome - # ... # # @param invoice [Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, nil] # # @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu - # ... # # @param type [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type] @@ -1129,8 +1106,8 @@ class LineItem < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute end_date # The end date of the range of time applied for this line item's price. @@ -1208,8 +1185,8 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] - required :price, union: -> { Orb::Models::Price }, nil?: true + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] + required :price, union: -> { Orb::Price }, nil?: true # @!attribute quantity # Either the fixed fee quantity or the usage during the service period. @@ -1258,24 +1235,20 @@ class LineItem < Orb::Internal::Type::BaseModel # @param id [String] A unique ID for this line item. # # @param adjusted_subtotal [String] The line amount after any adjustments and before overage conversion, credits and - # ... # # @param adjustments [Array] All adjustments applied to the line item in the order they were applied based on - # ... # # @param amount [String] The final amount for a line item after all adjustments and pre paid credits have - # ... # # @param credits_applied [String] The number of prepaid credits applied. # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param end_date [Time] The end date of the range of time applied for this line item's price. # # @param filter [String, nil] An additional filter that was used to calculate the usage for this line item. # # @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b - # ... # # @param maximum [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, nil] This field is deprecated in favor of `adjustments`. # @@ -1289,23 +1262,19 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # # @param start_date [Time] The start date of the range of time applied for this line item's price. # # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub - # ... # # @param subtotal [String] The line amount before before any adjustments. # # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio - # ... # # @param usage_customer_ids [Array, nil] A list of customer ids that were used to calculate the usage for this line item. - # ... module Adjustment extend Orb::Internal::Type::Union @@ -1380,12 +1349,10 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -1443,12 +1410,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param amount [String] The value applied by an adjustment. # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1510,10 +1475,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1581,12 +1544,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1648,10 +1609,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -1686,7 +1645,6 @@ class Maximum < Orb::Internal::Type::BaseModel # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end @@ -1715,7 +1673,6 @@ class Minimum < Orb::Internal::Type::BaseModel # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end @@ -2014,7 +1971,6 @@ class Maximum < Orb::Internal::Type::BaseModel # {Orb::Models::InvoiceFetchUpcomingResponse::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end @@ -2039,7 +1995,6 @@ class Minimum < Orb::Internal::Type::BaseModel # {Orb::Models::InvoiceFetchUpcomingResponse::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end diff --git a/lib/orb/models/invoice_issue_params.rb b/lib/orb/models/invoice_issue_params.rb index bbfa9766..80102394 100644 --- a/lib/orb/models/invoice_issue_params.rb +++ b/lib/orb/models/invoice_issue_params.rb @@ -22,7 +22,6 @@ class InvoiceIssueParams < Orb::Internal::Type::BaseModel # {Orb::Models::InvoiceIssueParams} for more details. # # @param synchronous [Boolean] If true, the invoice will be issued synchronously. If false, the invoice will be - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index 5d60f9b4..f4ce2e5c 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -7,14 +7,14 @@ module InvoiceLevelDiscount discriminator :discount_type - variant :percentage, -> { Orb::Models::PercentageDiscount } + variant :percentage, -> { Orb::PercentageDiscount } - variant :amount, -> { Orb::Models::AmountDiscount } + variant :amount, -> { Orb::AmountDiscount } - variant :trial, -> { Orb::Models::TrialDiscount } + variant :trial, -> { Orb::TrialDiscount } # @!method self.variants - # @return [Array(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + # @return [Array(Orb::PercentageDiscount, Orb::AmountDiscount, Orb::TrialDiscount)] end end end diff --git a/lib/orb/models/invoice_line_item_create_params.rb b/lib/orb/models/invoice_line_item_create_params.rb index 4e758269..d144626f 100644 --- a/lib/orb/models/invoice_line_item_create_params.rb +++ b/lib/orb/models/invoice_line_item_create_params.rb @@ -55,7 +55,6 @@ class InvoiceLineItemCreateParams < Orb::Internal::Type::BaseModel # @param invoice_id [String] The id of the Invoice to add this line item. # # @param name [String] The item name associated with this line item. If an item with the same name exis - # ... # # @param quantity [Float] The number of units on the line item # diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 8a4375c0..d62cf3c8 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -41,8 +41,8 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute end_date # The end date of the range of time applied for this line item's price. @@ -120,8 +120,8 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] - required :price, union: -> { Orb::Models::Price }, nil?: true + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] + required :price, union: -> { Orb::Price }, nil?: true # @!attribute quantity # Either the fixed fee quantity or the usage during the service period. @@ -170,24 +170,20 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # @param id [String] A unique ID for this line item. # # @param adjusted_subtotal [String] The line amount after any adjustments and before overage conversion, credits and - # ... # # @param adjustments [Array] All adjustments applied to the line item in the order they were applied based on - # ... # # @param amount [String] The final amount for a line item after all adjustments and pre paid credits have - # ... # # @param credits_applied [String] The number of prepaid credits applied. # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param end_date [Time] The end date of the range of time applied for this line item's price. # # @param filter [String, nil] An additional filter that was used to calculate the usage for this line item. # # @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b - # ... # # @param maximum [Orb::Models::InvoiceLineItemCreateResponse::Maximum, nil] This field is deprecated in favor of `adjustments`. # @@ -201,23 +197,19 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, nil] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # # @param start_date [Time] The start date of the range of time applied for this line item's price. # # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub - # ... # # @param subtotal [String] The line amount before before any adjustments. # # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio - # ... # # @param usage_customer_ids [Array, nil] A list of customer ids that were used to calculate the usage for this line item. - # ... module Adjustment extend Orb::Internal::Type::Union @@ -290,12 +282,10 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -353,12 +343,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param amount [String] The value applied by an adjustment. # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -420,10 +408,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -491,12 +477,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -558,10 +542,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param reason [String, nil] The reason for the adjustment. # @@ -596,7 +578,6 @@ class Maximum < Orb::Internal::Type::BaseModel # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end @@ -625,7 +606,6 @@ class Minimum < Orb::Internal::Type::BaseModel # This field is deprecated in favor of `adjustments`. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index 41df13e6..5ae5b687 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -36,8 +36,8 @@ class InvoiceListParams < Orb::Internal::Type::BaseModel # @!attribute date_type # - # @return [Symbol, Orb::Models::InvoiceListParams::DateType, nil] - optional :date_type, enum: -> { Orb::Models::InvoiceListParams::DateType }, nil?: true + # @return [Symbol, Orb::InvoiceListParams::DateType, nil] + optional :date_type, enum: -> { Orb::InvoiceListParams::DateType }, nil?: true # @!attribute due_date # @@ -101,10 +101,8 @@ class InvoiceListParams < Orb::Internal::Type::BaseModel # @!attribute status # - # @return [Array, nil] - optional :status, - -> { Orb::Internal::Type::ArrayOf[enum: Orb::Models::InvoiceListParams::Status] }, - nil?: true + # @return [Array, nil] + optional :status, -> { Orb::Internal::Type::ArrayOf[enum: Orb::InvoiceListParams::Status] }, nil?: true # @!attribute subscription_id # @@ -122,16 +120,14 @@ class InvoiceListParams < Orb::Internal::Type::BaseModel # @param amount_lt [String, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [String, nil] # - # @param date_type [Symbol, Orb::Models::InvoiceListParams::DateType, nil] + # @param date_type [Symbol, Orb::InvoiceListParams::DateType, nil] # # @param due_date [Date, nil] # # @param due_date_window [String, nil] Filters invoices by their due dates within a specific time range in the past. Sp - # ... # # @param due_date_gt [Date, nil] # @@ -151,7 +147,7 @@ class InvoiceListParams < Orb::Internal::Type::BaseModel # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Array, nil] + # @param status [Array, nil] # # @param subscription_id [String, nil] # diff --git a/lib/orb/models/invoice_update_params.rb b/lib/orb/models/invoice_update_params.rb index d67bc879..32300d62 100644 --- a/lib/orb/models/invoice_update_params.rb +++ b/lib/orb/models/invoice_update_params.rb @@ -20,7 +20,6 @@ class InvoiceUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::InvoiceUpdateParams} for more details. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 5683b269..5da4a11c 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -16,8 +16,8 @@ class Item < Orb::Internal::Type::BaseModel # @!attribute external_connections # - # @return [Array] - required :external_connections, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Item::ExternalConnection] } + # @return [Array] + required :external_connections, -> { Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection] } # @!attribute name # @@ -31,15 +31,14 @@ class Item < Orb::Internal::Type::BaseModel # # @param id [String] # @param created_at [Time] - # @param external_connections [Array] + # @param external_connections [Array] # @param name [String] class ExternalConnection < Orb::Internal::Type::BaseModel # @!attribute external_connection_name # - # @return [Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName] - required :external_connection_name, - enum: -> { Orb::Models::Item::ExternalConnection::ExternalConnectionName } + # @return [Symbol, Orb::Item::ExternalConnection::ExternalConnectionName] + required :external_connection_name, enum: -> { Orb::Item::ExternalConnection::ExternalConnectionName } # @!attribute external_entity_id # @@ -47,10 +46,10 @@ class ExternalConnection < Orb::Internal::Type::BaseModel required :external_entity_id, String # @!method initialize(external_connection_name:, external_entity_id:) - # @param external_connection_name [Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName] + # @param external_connection_name [Symbol, Orb::Item::ExternalConnection::ExternalConnectionName] # @param external_entity_id [String] - # @see Orb::Models::Item::ExternalConnection#external_connection_name + # @see Orb::Item::ExternalConnection#external_connection_name module ExternalConnectionName extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/item_list_params.rb b/lib/orb/models/item_list_params.rb index 644d4c8e..ab4a733a 100644 --- a/lib/orb/models/item_list_params.rb +++ b/lib/orb/models/item_list_params.rb @@ -25,7 +25,6 @@ class ItemListParams < Orb::Internal::Type::BaseModel # {Orb::Models::ItemListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index 451d014f..6739f3ad 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -9,9 +9,9 @@ class ItemUpdateParams < Orb::Internal::Type::BaseModel # @!attribute external_connections # - # @return [Array, nil] + # @return [Array, nil] optional :external_connections, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::ItemUpdateParams::ExternalConnection] }, + -> { Orb::Internal::Type::ArrayOf[Orb::ItemUpdateParams::ExternalConnection] }, nil?: true # @!attribute name @@ -20,16 +20,16 @@ class ItemUpdateParams < Orb::Internal::Type::BaseModel optional :name, String, nil?: true # @!method initialize(external_connections: nil, name: nil, request_options: {}) - # @param external_connections [Array, nil] + # @param external_connections [Array, nil] # @param name [String, nil] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] class ExternalConnection < Orb::Internal::Type::BaseModel # @!attribute external_connection_name # - # @return [Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName] + # @return [Symbol, Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName] required :external_connection_name, - enum: -> { Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName } + enum: -> { Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName } # @!attribute external_entity_id # @@ -37,10 +37,10 @@ class ExternalConnection < Orb::Internal::Type::BaseModel required :external_entity_id, String # @!method initialize(external_connection_name:, external_entity_id:) - # @param external_connection_name [Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName] + # @param external_connection_name [Symbol, Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName] # @param external_entity_id [String] - # @see Orb::Models::ItemUpdateParams::ExternalConnection#external_connection_name + # @see Orb::ItemUpdateParams::ExternalConnection#external_connection_name module ExternalConnectionName extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/metric_create_params.rb b/lib/orb/models/metric_create_params.rb index d03b7df9..1a0d9a89 100644 --- a/lib/orb/models/metric_create_params.rb +++ b/lib/orb/models/metric_create_params.rb @@ -52,7 +52,6 @@ class MetricCreateParams < Orb::Internal::Type::BaseModel # @param sql [String] A sql string defining the metric. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/metric_list_params.rb b/lib/orb/models/metric_list_params.rb index f2700334..34256974 100644 --- a/lib/orb/models/metric_list_params.rb +++ b/lib/orb/models/metric_list_params.rb @@ -53,7 +53,6 @@ class MetricListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/metric_update_params.rb b/lib/orb/models/metric_update_params.rb index 0db5e6c2..626fd504 100644 --- a/lib/orb/models/metric_update_params.rb +++ b/lib/orb/models/metric_update_params.rb @@ -20,7 +20,6 @@ class MetricUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::MetricUpdateParams} for more details. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/percentage_discount.rb b/lib/orb/models/percentage_discount.rb index 07044a49..96442b26 100644 --- a/lib/orb/models/percentage_discount.rb +++ b/lib/orb/models/percentage_discount.rb @@ -12,8 +12,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::PercentageDiscount::DiscountType] - required :discount_type, enum: -> { Orb::Models::PercentageDiscount::DiscountType } + # @return [Symbol, Orb::PercentageDiscount::DiscountType] + required :discount_type, enum: -> { Orb::PercentageDiscount::DiscountType } # @!attribute percentage_discount # Only available if discount_type is `percentage`. This is a number between 0 @@ -28,20 +28,18 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel optional :reason, String, nil?: true # @!method initialize(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::PercentageDiscount} for more details. + # Some parameter documentations has been truncated, see {Orb::PercentageDiscount} + # for more details. # # @param applies_to_price_ids [Array] List of price_ids that this discount applies to. For plan/plan phase discounts, - # ... # - # @param discount_type [Symbol, Orb::Models::PercentageDiscount::DiscountType] + # @param discount_type [Symbol, Orb::PercentageDiscount::DiscountType] # # @param percentage_discount [Float] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param reason [String, nil] - # @see Orb::Models::PercentageDiscount#discount_type + # @see Orb::PercentageDiscount#discount_type module DiscountType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 260b779e..7ddc0d6e 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -13,13 +13,13 @@ class Plan < Orb::Internal::Type::BaseModel # Adjustments for this plan. If the plan has phases, this includes adjustments # across all phases of the plan. # - # @return [Array] - required :adjustments, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment] } + # @return [Array] + required :adjustments, -> { Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment] } # @!attribute base_plan # - # @return [Orb::Models::Plan::BasePlan, nil] - required :base_plan, -> { Orb::Models::Plan::BasePlan }, nil?: true + # @return [Orb::Plan::BasePlan, nil] + required :base_plan, -> { Orb::Plan::BasePlan }, nil?: true # @!attribute base_plan_id # The parent plan id if the given plan was created by overriding one or more of @@ -56,8 +56,8 @@ class Plan < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_plan_id # An optional user-defined ID for this plan resource, used throughout the system @@ -76,8 +76,8 @@ class Plan < Orb::Internal::Type::BaseModel # @!attribute maximum # - # @return [Orb::Models::Plan::Maximum, nil] - required :maximum, -> { Orb::Models::Plan::Maximum }, nil?: true + # @return [Orb::Plan::Maximum, nil] + required :maximum, -> { Orb::Plan::Maximum }, nil?: true # @!attribute maximum_amount # @@ -95,8 +95,8 @@ class Plan < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Plan::Minimum, nil] - required :minimum, -> { Orb::Models::Plan::Minimum }, nil?: true + # @return [Orb::Plan::Minimum, nil] + required :minimum, -> { Orb::Plan::Minimum }, nil?: true # @!attribute minimum_amount # @@ -120,30 +120,30 @@ class Plan < Orb::Internal::Type::BaseModel # @!attribute plan_phases # - # @return [Array, nil] - required :plan_phases, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase] }, nil?: true + # @return [Array, nil] + required :plan_phases, -> { Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase] }, nil?: true # @!attribute prices # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] - required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::Price] } + # @return [Array] + required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] } # @!attribute product # - # @return [Orb::Models::Plan::Product] - required :product, -> { Orb::Models::Plan::Product } + # @return [Orb::Plan::Product] + required :product, -> { Orb::Plan::Product } # @!attribute status # - # @return [Symbol, Orb::Models::Plan::Status] - required :status, enum: -> { Orb::Models::Plan::Status } + # @return [Symbol, Orb::Plan::Status] + required :status, enum: -> { Orb::Plan::Status } # @!attribute trial_config # - # @return [Orb::Models::Plan::TrialConfig] - required :trial_config, -> { Orb::Models::Plan::TrialConfig } + # @return [Orb::Plan::TrialConfig] + required :trial_config, -> { Orb::Plan::TrialConfig } # @!attribute version # @@ -151,8 +151,8 @@ class Plan < Orb::Internal::Type::BaseModel required :version, Integer # @!method initialize(id:, adjustments:, base_plan:, base_plan_id:, created_at:, currency:, default_invoice_memo:, description:, discount:, external_plan_id:, invoicing_currency:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, net_terms:, plan_phases:, prices:, product:, status:, trial_config:, version:) - # Some parameter documentations has been truncated, see {Orb::Models::Plan} for - # more details. + # Some parameter documentations has been truncated, see {Orb::Plan} for more + # details. # # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the @@ -161,58 +161,49 @@ class Plan < Orb::Internal::Type::BaseModel # # @param id [String] # - # @param adjustments [Array] Adjustments for this plan. If the plan has phases, this includes adjustments acr - # ... + # @param adjustments [Array] Adjustments for this plan. If the plan has phases, this includes adjustments acr # - # @param base_plan [Orb::Models::Plan::BasePlan, nil] + # @param base_plan [Orb::Plan::BasePlan, nil] # # @param base_plan_id [String, nil] The parent plan id if the given plan was created by overriding one or more of th - # ... # # @param created_at [Time] # # @param currency [String] An ISO 4217 currency string or custom pricing unit (`credits`) for this plan's p - # ... # # @param default_invoice_memo [String, nil] The default memo text on the invoices corresponding to subscriptions on this pla - # ... # # @param description [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param invoicing_currency [String] An ISO 4217 currency string for which this plan is billed in. Matches `currency` - # ... # - # @param maximum [Orb::Models::Plan::Maximum, nil] + # @param maximum [Orb::Plan::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Plan::Minimum, nil] + # @param minimum [Orb::Plan::Minimum, nil] # # @param minimum_amount [String, nil] # # @param name [String] # # @param net_terms [Integer, nil] Determines the difference between the invoice issue date and the due date. A val - # ... # - # @param plan_phases [Array, nil] + # @param plan_phases [Array, nil] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph - # ... + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # - # @param product [Orb::Models::Plan::Product] + # @param product [Orb::Plan::Product] # - # @param status [Symbol, Orb::Models::Plan::Status] + # @param status [Symbol, Orb::Plan::Status] # - # @param trial_config [Orb::Models::Plan::TrialConfig] + # @param trial_config [Orb::Plan::TrialConfig] # # @param version [Integer] @@ -221,15 +212,15 @@ module Adjustment discriminator :adjustment_type - variant :usage_discount, -> { Orb::Models::Plan::Adjustment::UsageDiscount } + variant :usage_discount, -> { Orb::Plan::Adjustment::UsageDiscount } - variant :amount_discount, -> { Orb::Models::Plan::Adjustment::AmountDiscount } + variant :amount_discount, -> { Orb::Plan::Adjustment::AmountDiscount } - variant :percentage_discount, -> { Orb::Models::Plan::Adjustment::PercentageDiscount } + variant :percentage_discount, -> { Orb::Plan::Adjustment::PercentageDiscount } - variant :minimum, -> { Orb::Models::Plan::Adjustment::Minimum } + variant :minimum, -> { Orb::Plan::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::Plan::Adjustment::Maximum } + variant :maximum, -> { Orb::Plan::Adjustment::Maximum } class UsageDiscount < Orb::Internal::Type::BaseModel # @!attribute id @@ -276,21 +267,19 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Adjustment::UsageDiscount} for more details. + # {Orb::Plan::Adjustment::UsageDiscount} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -340,17 +329,15 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Adjustment::AmountDiscount} for more details. + # {Orb::Plan::Adjustment::AmountDiscount} for more details. # # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -404,17 +391,15 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Adjustment::PercentageDiscount} for more details. + # {Orb::Plan::Adjustment::PercentageDiscount} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -474,19 +459,17 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Adjustment::Minimum} for more details. + # {Orb::Plan::Adjustment::Minimum} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -540,17 +523,15 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Adjustment::Maximum} for more details. + # {Orb::Plan::Adjustment::Maximum} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -560,10 +541,10 @@ class Maximum < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::Plan::Adjustment::UsageDiscount, Orb::Models::Plan::Adjustment::AmountDiscount, Orb::Models::Plan::Adjustment::PercentageDiscount, Orb::Models::Plan::Adjustment::Minimum, Orb::Models::Plan::Adjustment::Maximum)] + # @return [Array(Orb::Plan::Adjustment::UsageDiscount, Orb::Plan::Adjustment::AmountDiscount, Orb::Plan::Adjustment::PercentageDiscount, Orb::Plan::Adjustment::Minimum, Orb::Plan::Adjustment::Maximum)] end - # @see Orb::Models::Plan#base_plan + # @see Orb::Plan#base_plan class BasePlan < Orb::Internal::Type::BaseModel # @!attribute id # @@ -584,18 +565,17 @@ class BasePlan < Orb::Internal::Type::BaseModel required :name, String, nil?: true # @!method initialize(id:, external_plan_id:, name:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::BasePlan} for more details. + # Some parameter documentations has been truncated, see {Orb::Plan::BasePlan} for + # more details. # # @param id [String, nil] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param name [String, nil] end - # @see Orb::Models::Plan#maximum + # @see Orb::Plan#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -611,16 +591,15 @@ class Maximum < Orb::Internal::Type::BaseModel required :maximum_amount, String # @!method initialize(applies_to_price_ids:, maximum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Maximum} for more details. + # Some parameter documentations has been truncated, see {Orb::Plan::Maximum} for + # more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Plan#minimum + # @see Orb::Plan#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -636,11 +615,10 @@ class Minimum < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!method initialize(applies_to_price_ids:, minimum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::Minimum} for more details. + # Some parameter documentations has been truncated, see {Orb::Plan::Minimum} for + # more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end @@ -658,8 +636,8 @@ class PlanPhase < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute duration # How many terms of length `duration_unit` this phase is active for. If null, this @@ -670,13 +648,13 @@ class PlanPhase < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Plan::PlanPhase::DurationUnit, nil] - required :duration_unit, enum: -> { Orb::Models::Plan::PlanPhase::DurationUnit }, nil?: true + # @return [Symbol, Orb::Plan::PlanPhase::DurationUnit, nil] + required :duration_unit, enum: -> { Orb::Plan::PlanPhase::DurationUnit }, nil?: true # @!attribute maximum # - # @return [Orb::Models::Plan::PlanPhase::Maximum, nil] - required :maximum, -> { Orb::Models::Plan::PlanPhase::Maximum }, nil?: true + # @return [Orb::Plan::PlanPhase::Maximum, nil] + required :maximum, -> { Orb::Plan::PlanPhase::Maximum }, nil?: true # @!attribute maximum_amount # @@ -685,8 +663,8 @@ class PlanPhase < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Plan::PlanPhase::Minimum, nil] - required :minimum, -> { Orb::Models::Plan::PlanPhase::Minimum }, nil?: true + # @return [Orb::Plan::PlanPhase::Minimum, nil] + required :minimum, -> { Orb::Plan::PlanPhase::Minimum }, nil?: true # @!attribute minimum_amount # @@ -705,25 +683,24 @@ class PlanPhase < Orb::Internal::Type::BaseModel required :order, Integer # @!method initialize(id:, description:, discount:, duration:, duration_unit:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, order:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::PlanPhase} for more details. + # Some parameter documentations has been truncated, see {Orb::Plan::PlanPhase} for + # more details. # # @param id [String] # # @param description [String, nil] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param duration [Integer, nil] How many terms of length `duration_unit` this phase is active for. If null, this - # ... # - # @param duration_unit [Symbol, Orb::Models::Plan::PlanPhase::DurationUnit, nil] + # @param duration_unit [Symbol, Orb::Plan::PlanPhase::DurationUnit, nil] # - # @param maximum [Orb::Models::Plan::PlanPhase::Maximum, nil] + # @param maximum [Orb::Plan::PlanPhase::Maximum, nil] # # @param maximum_amount [String, nil] # - # @param minimum [Orb::Models::Plan::PlanPhase::Minimum, nil] + # @param minimum [Orb::Plan::PlanPhase::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -731,7 +708,7 @@ class PlanPhase < Orb::Internal::Type::BaseModel # # @param order [Integer] Determines the ordering of the phase in a plan's lifecycle. 1 = first phase. - # @see Orb::Models::Plan::PlanPhase#duration_unit + # @see Orb::Plan::PlanPhase#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -745,7 +722,7 @@ module DurationUnit # @return [Array] end - # @see Orb::Models::Plan::PlanPhase#maximum + # @see Orb::Plan::PlanPhase#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -762,15 +739,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::PlanPhase::Maximum} for more details. + # {Orb::Plan::PlanPhase::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Plan::PlanPhase#minimum + # @see Orb::Plan::PlanPhase#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -787,16 +763,15 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Plan::PlanPhase::Minimum} for more details. + # {Orb::Plan::PlanPhase::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end end - # @see Orb::Models::Plan#product + # @see Orb::Plan#product class Product < Orb::Internal::Type::BaseModel # @!attribute id # @@ -819,7 +794,7 @@ class Product < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Plan#status + # @see Orb::Plan#status module Status extend Orb::Internal::Type::Enum @@ -831,7 +806,7 @@ module Status # @return [Array] end - # @see Orb::Models::Plan#trial_config + # @see Orb::Plan#trial_config class TrialConfig < Orb::Internal::Type::BaseModel # @!attribute trial_period # @@ -840,14 +815,14 @@ class TrialConfig < Orb::Internal::Type::BaseModel # @!attribute trial_period_unit # - # @return [Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit] - required :trial_period_unit, enum: -> { Orb::Models::Plan::TrialConfig::TrialPeriodUnit } + # @return [Symbol, Orb::Plan::TrialConfig::TrialPeriodUnit] + required :trial_period_unit, enum: -> { Orb::Plan::TrialConfig::TrialPeriodUnit } # @!method initialize(trial_period:, trial_period_unit:) # @param trial_period [Integer, nil] - # @param trial_period_unit [Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit] + # @param trial_period_unit [Symbol, Orb::Plan::TrialConfig::TrialPeriodUnit] - # @see Orb::Models::Plan::TrialConfig#trial_period_unit + # @see Orb::Plan::TrialConfig#trial_period_unit module TrialPeriodUnit extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 1fd961e2..6b3d22b4 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -23,8 +23,8 @@ class PlanCreateParams < Orb::Internal::Type::BaseModel # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] - required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::PlanCreateParams::Price] } + # @return [Array] + required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::PlanCreateParams::Price] } # @!attribute default_invoice_memo # Free-form text which is available on the invoice PDF and the Orb invoice portal. @@ -57,34 +57,28 @@ class PlanCreateParams < Orb::Internal::Type::BaseModel # The status of the plan to create (either active or draft). If not specified, # this defaults to active. # - # @return [Symbol, Orb::Models::PlanCreateParams::Status, nil] - optional :status, enum: -> { Orb::Models::PlanCreateParams::Status } + # @return [Symbol, Orb::PlanCreateParams::Status, nil] + optional :status, enum: -> { Orb::PlanCreateParams::Status } # @!method initialize(currency:, name:, prices:, default_invoice_memo: nil, external_plan_id: nil, metadata: nil, net_terms: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::PlanCreateParams} for more details. # # @param currency [String] An ISO 4217 currency string for invoices generated by subscriptions on this plan - # ... # # @param name [String] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph - # ... + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param default_invoice_memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal. - # ... # # @param external_plan_id [String, nil] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # - # @param status [Symbol, Orb::Models::PlanCreateParams::Status] The status of the plan to create (either active or draft). If not specified, thi - # ... + # @param status [Symbol, Orb::PlanCreateParams::Status] The status of the plan to create (either active or draft). If not specified, thi # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -93,66 +87,67 @@ module Price discriminator :model_type - variant :unit, -> { Orb::Models::PlanCreateParams::Price::Unit } + variant :unit, -> { Orb::PlanCreateParams::Price::Unit } - variant :package, -> { Orb::Models::PlanCreateParams::Price::Package } + variant :package, -> { Orb::PlanCreateParams::Price::Package } - variant :matrix, -> { Orb::Models::PlanCreateParams::Price::Matrix } + variant :matrix, -> { Orb::PlanCreateParams::Price::Matrix } - variant :tiered, -> { Orb::Models::PlanCreateParams::Price::Tiered } + variant :tiered, -> { Orb::PlanCreateParams::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::PlanCreateParams::Price::TieredBps } + variant :tiered_bps, -> { Orb::PlanCreateParams::Price::TieredBps } - variant :bps, -> { Orb::Models::PlanCreateParams::Price::Bps } + variant :bps, -> { Orb::PlanCreateParams::Price::Bps } - variant :bulk_bps, -> { Orb::Models::PlanCreateParams::Price::BulkBps } + variant :bulk_bps, -> { Orb::PlanCreateParams::Price::BulkBps } - variant :bulk, -> { Orb::Models::PlanCreateParams::Price::Bulk } + variant :bulk, -> { Orb::PlanCreateParams::Price::Bulk } - variant :threshold_total_amount, -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount } + variant :threshold_total_amount, -> { Orb::PlanCreateParams::Price::ThresholdTotalAmount } - variant :tiered_package, -> { Orb::Models::PlanCreateParams::Price::TieredPackage } + variant :tiered_package, -> { Orb::PlanCreateParams::Price::TieredPackage } - variant :tiered_with_minimum, -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum } + variant :tiered_with_minimum, -> { Orb::PlanCreateParams::Price::TieredWithMinimum } - variant :unit_with_percent, -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent } + variant :unit_with_percent, -> { Orb::PlanCreateParams::Price::UnitWithPercent } - variant :package_with_allocation, -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation } + variant :package_with_allocation, -> { Orb::PlanCreateParams::Price::PackageWithAllocation } - variant :tiered_with_proration, -> { Orb::Models::PlanCreateParams::Price::TieredWithProration } + variant :tiered_with_proration, -> { Orb::PlanCreateParams::Price::TieredWithProration } - variant :unit_with_proration, -> { Orb::Models::PlanCreateParams::Price::UnitWithProration } + variant :unit_with_proration, -> { Orb::PlanCreateParams::Price::UnitWithProration } - variant :grouped_allocation, -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation } + variant :grouped_allocation, -> { Orb::PlanCreateParams::Price::GroupedAllocation } variant :grouped_with_prorated_minimum, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum } + -> { + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum + } - variant :grouped_with_metered_minimum, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum } + variant :grouped_with_metered_minimum, -> { Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum } - variant :matrix_with_display_name, -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName } + variant :matrix_with_display_name, -> { Orb::PlanCreateParams::Price::MatrixWithDisplayName } - variant :bulk_with_proration, -> { Orb::Models::PlanCreateParams::Price::BulkWithProration } + variant :bulk_with_proration, -> { Orb::PlanCreateParams::Price::BulkWithProration } - variant :grouped_tiered_package, -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage } + variant :grouped_tiered_package, -> { Orb::PlanCreateParams::Price::GroupedTieredPackage } - variant :max_group_tiered_package, -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage } + variant :max_group_tiered_package, -> { Orb::PlanCreateParams::Price::MaxGroupTieredPackage } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing } + -> { Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing } + -> { Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing } - variant :cumulative_grouped_bulk, -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk } + variant :cumulative_grouped_bulk, -> { Orb::PlanCreateParams::Price::CumulativeGroupedBulk } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Unit::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Unit::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -173,8 +168,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::PlanCreateParams::Price::Unit::UnitConfig] - required :unit_config, -> { Orb::Models::PlanCreateParams::Price::Unit::UnitConfig } + # @return [Orb::PlanCreateParams::Price::Unit::UnitConfig] + required :unit_config, -> { Orb::PlanCreateParams::Price::Unit::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -194,9 +189,9 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -235,9 +230,9 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -250,48 +245,41 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Unit} for more details. + # {Orb::PlanCreateParams::Price::Unit} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Unit::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::PlanCreateParams::Price::Unit::UnitConfig] + # @param unit_config [Orb::PlanCreateParams::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Unit#cadence + # @see Orb::PlanCreateParams::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -306,7 +294,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Unit#unit_config + # @see Orb::PlanCreateParams::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -318,7 +306,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::PlanCreateParams::Price::Unit#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -329,9 +317,9 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -339,11 +327,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -355,7 +343,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Unit#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -366,9 +354,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -376,11 +366,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -397,8 +387,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Package::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Package::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Package::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Package::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -419,8 +409,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::PlanCreateParams::Price::Package::PackageConfig] - required :package_config, -> { Orb::Models::PlanCreateParams::Price::Package::PackageConfig } + # @return [Orb::PlanCreateParams::Price::Package::PackageConfig] + required :package_config, -> { Orb::PlanCreateParams::Price::Package::PackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -440,9 +430,9 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -481,9 +471,9 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -496,48 +486,41 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Package} for more details. + # {Orb::PlanCreateParams::Price::Package} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Package::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::PlanCreateParams::Price::Package::PackageConfig] + # @param package_config [Orb::PlanCreateParams::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Package#cadence + # @see Orb::PlanCreateParams::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -552,7 +535,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Package#package_config + # @see Orb::PlanCreateParams::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -569,15 +552,14 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Package::PackageConfig} for more details. + # {Orb::PlanCreateParams::Price::Package::PackageConfig} for more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::PlanCreateParams::Price::Package#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -588,9 +570,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -598,11 +582,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -614,7 +598,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Package#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -625,9 +609,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -635,11 +621,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -656,8 +642,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Matrix::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Matrix::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -667,8 +653,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig] - required :matrix_config, -> { Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig } + # @return [Orb::PlanCreateParams::Price::Matrix::MatrixConfig] + required :matrix_config, -> { Orb::PlanCreateParams::Price::Matrix::MatrixConfig } # @!attribute model_type # @@ -699,9 +685,9 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -740,9 +726,9 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -755,48 +741,41 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Matrix} for more details. + # {Orb::PlanCreateParams::Price::Matrix} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::PlanCreateParams::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Matrix#cadence + # @see Orb::PlanCreateParams::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -811,7 +790,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Matrix#matrix_config + # @see Orb::PlanCreateParams::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -828,16 +807,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -856,17 +837,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue} for - # more details. + # {Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue} for more + # details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::PlanCreateParams::Price::Matrix#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -877,9 +857,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -887,11 +869,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -903,7 +885,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Matrix#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -914,9 +896,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -924,11 +908,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -945,8 +929,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Tiered::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Tiered::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -967,8 +951,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig] - required :tiered_config, -> { Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig } + # @return [Orb::PlanCreateParams::Price::Tiered::TieredConfig] + required :tiered_config, -> { Orb::PlanCreateParams::Price::Tiered::TieredConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -988,9 +972,9 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1029,9 +1013,9 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1044,48 +1028,41 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Tiered} for more details. + # {Orb::PlanCreateParams::Price::Tiered} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::PlanCreateParams::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Tiered#cadence + # @see Orb::PlanCreateParams::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1100,17 +1077,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Tiered#tiered_config + # @see Orb::PlanCreateParams::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -1140,7 +1119,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::PlanCreateParams::Price::Tiered#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1151,9 +1130,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1161,11 +1142,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1177,7 +1158,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Tiered#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1188,9 +1169,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1198,11 +1181,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1219,8 +1202,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::TieredBps::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::TieredBps::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::TieredBps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1241,8 +1224,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig] - required :tiered_bps_config, -> { Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig } + # @return [Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig] + required :tiered_bps_config, -> { Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1262,9 +1245,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1303,9 +1286,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1318,48 +1301,41 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::TieredBps} for more details. + # {Orb::PlanCreateParams::Price::TieredBps} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::TieredBps#cadence + # @see Orb::PlanCreateParams::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1374,23 +1350,23 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::TieredBps#tiered_bps_config + # @see Orb::PlanCreateParams::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig} for more - # details. + # {Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig} for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -1428,7 +1404,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::PlanCreateParams::Price::TieredBps#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1439,9 +1415,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1449,11 +1427,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1465,7 +1443,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1476,9 +1454,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1486,11 +1466,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1506,14 +1486,14 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::PlanCreateParams::Price::Bps::BpsConfig] - required :bps_config, -> { Orb::Models::PlanCreateParams::Price::Bps::BpsConfig } + # @return [Orb::PlanCreateParams::Price::Bps::BpsConfig] + required :bps_config, -> { Orb::PlanCreateParams::Price::Bps::BpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bps::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Bps::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Bps::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Bps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1550,9 +1530,9 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1591,9 +1571,9 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1606,46 +1586,39 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Bps} for more details. + # {Orb::PlanCreateParams::Price::Bps} for more details. # - # @param bps_config [Orb::Models::PlanCreateParams::Price::Bps::BpsConfig] + # @param bps_config [Orb::PlanCreateParams::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Bps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::PlanCreateParams::Price::Bps#bps_config + # @see Orb::PlanCreateParams::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -1667,7 +1640,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Bps#cadence + # @see Orb::PlanCreateParams::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1682,7 +1655,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Bps#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1693,9 +1666,9 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1703,11 +1676,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1719,7 +1692,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Bps#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1730,9 +1703,9 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1740,11 +1713,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1760,14 +1733,14 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig] - required :bulk_bps_config, -> { Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig } + # @return [Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig] + required :bulk_bps_config, -> { Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::BulkBps::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::BulkBps::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::BulkBps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1804,9 +1777,9 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1845,9 +1818,9 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1860,61 +1833,55 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::BulkBps} for more details. + # {Orb::PlanCreateParams::Price::BulkBps} for more details. # - # @param bulk_bps_config [Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::PlanCreateParams::Price::BulkBps#bulk_bps_config + # @see Orb::PlanCreateParams::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig} for more details. + # {Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig} for more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -1946,7 +1913,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::BulkBps#cadence + # @see Orb::PlanCreateParams::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1961,7 +1928,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::BulkBps#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1972,9 +1939,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1982,11 +1951,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1998,7 +1967,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2009,9 +1978,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2019,11 +1990,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2039,14 +2010,14 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig] - required :bulk_config, -> { Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig } + # @return [Orb::PlanCreateParams::Price::Bulk::BulkConfig] + required :bulk_config, -> { Orb::PlanCreateParams::Price::Bulk::BulkConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::Bulk::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Bulk::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2083,9 +2054,9 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2124,9 +2095,9 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2139,56 +2110,51 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Bulk} for more details. + # {Orb::PlanCreateParams::Price::Bulk} for more details. # - # @param bulk_config [Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::PlanCreateParams::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::PlanCreateParams::Price::Bulk#bulk_config + # @see Orb::PlanCreateParams::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -2212,7 +2178,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::Bulk#cadence + # @see Orb::PlanCreateParams::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2227,7 +2193,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::Bulk#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2238,9 +2204,9 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2248,11 +2214,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2264,7 +2230,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::Bulk#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2275,9 +2241,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2285,11 +2253,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2306,8 +2274,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2349,9 +2317,9 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2390,9 +2358,9 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2405,9 +2373,9 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount} for more details. + # {Orb::PlanCreateParams::Price::ThresholdTotalAmount} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -2416,37 +2384,30 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount#cadence + # @see Orb::PlanCreateParams::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2461,7 +2422,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2472,9 +2433,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2482,11 +2445,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2498,7 +2461,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2509,9 +2472,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2519,11 +2484,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2540,8 +2505,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::TieredPackage::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::TieredPackage::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2583,9 +2548,9 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2624,9 +2589,9 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2639,9 +2604,9 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::TieredPackage} for more details. + # {Orb::PlanCreateParams::Price::TieredPackage} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -2650,37 +2615,30 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::TieredPackage#cadence + # @see Orb::PlanCreateParams::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2695,7 +2653,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::TieredPackage#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2706,9 +2664,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2716,11 +2676,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2732,7 +2692,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2743,9 +2703,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2753,11 +2715,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2774,8 +2736,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2817,9 +2779,9 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2858,9 +2820,9 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2873,9 +2835,9 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::TieredWithMinimum} for more details. + # {Orb::PlanCreateParams::Price::TieredWithMinimum} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -2884,37 +2846,30 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithMinimum#cadence + # @see Orb::PlanCreateParams::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2929,7 +2884,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2940,9 +2895,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2950,11 +2907,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2966,7 +2923,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2977,9 +2934,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2987,11 +2946,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3008,8 +2967,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::UnitWithPercent::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -3051,9 +3010,9 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3092,9 +3051,9 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3107,9 +3066,9 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::UnitWithPercent} for more details. + # {Orb::PlanCreateParams::Price::UnitWithPercent} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3118,37 +3077,30 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithPercent#cadence + # @see Orb::PlanCreateParams::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3163,7 +3115,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3174,9 +3126,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3184,11 +3138,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3200,7 +3154,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3211,9 +3165,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3221,11 +3177,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3242,8 +3198,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -3285,9 +3241,9 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3326,9 +3282,9 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3341,9 +3297,9 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::PackageWithAllocation} for more details. + # {Orb::PlanCreateParams::Price::PackageWithAllocation} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3352,37 +3308,30 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::PackageWithAllocation#cadence + # @see Orb::PlanCreateParams::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3397,7 +3346,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3408,9 +3357,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3418,11 +3369,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3434,7 +3385,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3445,9 +3396,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3455,11 +3408,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3476,8 +3429,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::TieredWithProration::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -3519,9 +3472,9 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3560,9 +3513,9 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3575,9 +3528,9 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::TieredWithProration} for more details. + # {Orb::PlanCreateParams::Price::TieredWithProration} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3586,37 +3539,30 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithProration#cadence + # @see Orb::PlanCreateParams::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3631,7 +3577,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3642,9 +3588,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3652,11 +3600,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3668,7 +3616,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3679,9 +3627,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3689,11 +3639,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3710,8 +3660,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::UnitWithProration::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -3753,9 +3703,9 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -3794,9 +3744,9 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -3809,9 +3759,9 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::UnitWithProration} for more details. + # {Orb::PlanCreateParams::Price::UnitWithProration} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3820,37 +3770,30 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithProration#cadence + # @see Orb::PlanCreateParams::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3865,7 +3808,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3876,9 +3819,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3886,11 +3831,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3902,7 +3847,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3913,9 +3858,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3923,11 +3870,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3944,8 +3891,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::GroupedAllocation::Cadence } # @!attribute grouped_allocation_config # @@ -3987,9 +3934,9 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4028,9 +3975,9 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4043,9 +3990,9 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::GroupedAllocation} for more details. + # {Orb::PlanCreateParams::Price::GroupedAllocation} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param grouped_allocation_config [Hash{Symbol=>Object}] # @@ -4054,37 +4001,30 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::GroupedAllocation#cadence + # @see Orb::PlanCreateParams::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4099,7 +4039,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4110,9 +4050,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4120,11 +4062,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4136,7 +4078,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4147,9 +4089,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4157,11 +4101,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4178,8 +4122,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence } # @!attribute grouped_with_prorated_minimum_config # @@ -4222,9 +4166,9 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4263,9 +4207,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4278,10 +4224,9 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum} for more - # details. + # {Orb::PlanCreateParams::Price::GroupedWithProratedMinimum} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # @@ -4290,37 +4235,30 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum#cadence + # @see Orb::PlanCreateParams::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4335,7 +4273,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4346,9 +4284,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4356,11 +4296,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4372,7 +4312,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4383,9 +4323,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4393,11 +4335,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4414,8 +4356,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence } # @!attribute grouped_with_metered_minimum_config # @@ -4458,9 +4400,9 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4499,9 +4441,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4514,10 +4458,9 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum} for more - # details. + # {Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # @@ -4526,37 +4469,30 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4571,7 +4507,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4582,9 +4518,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4592,11 +4530,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4608,7 +4546,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4619,9 +4557,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4629,11 +4569,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4650,8 +4590,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -4693,9 +4633,9 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4734,9 +4674,9 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4749,9 +4689,9 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName} for more details. + # {Orb::PlanCreateParams::Price::MatrixWithDisplayName} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4760,37 +4700,30 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName#cadence + # @see Orb::PlanCreateParams::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4805,7 +4738,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4816,9 +4749,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4826,11 +4761,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4842,7 +4777,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4853,9 +4788,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4863,11 +4800,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4889,8 +4826,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::BulkWithProration::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -4927,9 +4864,9 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -4968,9 +4905,9 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -4983,48 +4920,41 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::BulkWithProration} for more details. + # {Orb::PlanCreateParams::Price::BulkWithProration} for more details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::BulkWithProration#cadence + # @see Orb::PlanCreateParams::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5039,7 +4969,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5050,9 +4980,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5060,11 +4992,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5076,7 +5008,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5087,9 +5019,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5097,11 +5031,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5118,8 +5052,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence } # @!attribute grouped_tiered_package_config # @@ -5161,9 +5095,9 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5202,9 +5136,9 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5217,9 +5151,9 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::GroupedTieredPackage} for more details. + # {Orb::PlanCreateParams::Price::GroupedTieredPackage} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # @@ -5228,37 +5162,30 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::GroupedTieredPackage#cadence + # @see Orb::PlanCreateParams::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5273,7 +5200,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5284,9 +5211,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5294,11 +5223,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5310,7 +5239,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5321,9 +5250,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5331,11 +5262,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5352,8 +5283,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -5395,9 +5326,9 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -5436,9 +5367,9 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -5451,9 +5382,9 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage} for more details. + # {Orb::PlanCreateParams::Price::MaxGroupTieredPackage} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5462,37 +5393,30 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage#cadence + # @see Orb::PlanCreateParams::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5507,7 +5431,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5518,9 +5442,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5528,11 +5454,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5544,7 +5470,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5555,9 +5481,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5565,11 +5493,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5586,9 +5514,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence] - required :cadence, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -5631,9 +5558,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5672,9 +5601,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5687,10 +5618,9 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing} for more - # details. + # {Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5699,37 +5629,30 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5744,7 +5667,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5755,9 +5678,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5765,11 +5690,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5781,7 +5706,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5792,9 +5717,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5802,11 +5729,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5823,9 +5750,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5868,9 +5797,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5909,9 +5840,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5924,10 +5857,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing} for more + # {Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing} for more # details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5936,37 +5869,30 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5981,7 +5907,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5992,9 +5918,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6002,11 +5930,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6018,7 +5946,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6029,9 +5957,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6039,11 +5969,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6060,8 +5990,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence] - required :cadence, enum: -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence } + # @return [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence } # @!attribute cumulative_grouped_bulk_config # @@ -6103,9 +6033,9 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -6144,9 +6074,9 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -6159,9 +6089,9 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk} for more details. + # {Orb::PlanCreateParams::Price::CumulativeGroupedBulk} for more details. # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -6170,37 +6100,30 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk#cadence + # @see Orb::PlanCreateParams::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6215,7 +6138,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::PlanCreateParams::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6226,9 +6149,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6236,11 +6161,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6252,7 +6177,7 @@ module DurationUnit end end - # @see Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::PlanCreateParams::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6263,9 +6188,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6273,11 +6200,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6291,7 +6218,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::PlanCreateParams::Price::Unit, Orb::Models::PlanCreateParams::Price::Package, Orb::Models::PlanCreateParams::Price::Matrix, Orb::Models::PlanCreateParams::Price::Tiered, Orb::Models::PlanCreateParams::Price::TieredBps, Orb::Models::PlanCreateParams::Price::Bps, Orb::Models::PlanCreateParams::Price::BulkBps, Orb::Models::PlanCreateParams::Price::Bulk, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, Orb::Models::PlanCreateParams::Price::TieredPackage, Orb::Models::PlanCreateParams::Price::TieredWithMinimum, Orb::Models::PlanCreateParams::Price::UnitWithPercent, Orb::Models::PlanCreateParams::Price::PackageWithAllocation, Orb::Models::PlanCreateParams::Price::TieredWithProration, Orb::Models::PlanCreateParams::Price::UnitWithProration, Orb::Models::PlanCreateParams::Price::GroupedAllocation, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, Orb::Models::PlanCreateParams::Price::BulkWithProration, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk)] + # @return [Array(Orb::PlanCreateParams::Price::Unit, Orb::PlanCreateParams::Price::Package, Orb::PlanCreateParams::Price::Matrix, Orb::PlanCreateParams::Price::Tiered, Orb::PlanCreateParams::Price::TieredBps, Orb::PlanCreateParams::Price::Bps, Orb::PlanCreateParams::Price::BulkBps, Orb::PlanCreateParams::Price::Bulk, Orb::PlanCreateParams::Price::ThresholdTotalAmount, Orb::PlanCreateParams::Price::TieredPackage, Orb::PlanCreateParams::Price::TieredWithMinimum, Orb::PlanCreateParams::Price::UnitWithPercent, Orb::PlanCreateParams::Price::PackageWithAllocation, Orb::PlanCreateParams::Price::TieredWithProration, Orb::PlanCreateParams::Price::UnitWithProration, Orb::PlanCreateParams::Price::GroupedAllocation, Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, Orb::PlanCreateParams::Price::MatrixWithDisplayName, Orb::PlanCreateParams::Price::BulkWithProration, Orb::PlanCreateParams::Price::GroupedTieredPackage, Orb::PlanCreateParams::Price::MaxGroupTieredPackage, Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, Orb::PlanCreateParams::Price::CumulativeGroupedBulk)] end # The status of the plan to create (either active or draft). If not specified, diff --git a/lib/orb/models/plan_list_params.rb b/lib/orb/models/plan_list_params.rb index 8eb6fb06..470fe204 100644 --- a/lib/orb/models/plan_list_params.rb +++ b/lib/orb/models/plan_list_params.rb @@ -43,8 +43,8 @@ class PlanListParams < Orb::Internal::Type::BaseModel # @!attribute status # The plan status to filter to ('active', 'archived', or 'draft'). # - # @return [Symbol, Orb::Models::PlanListParams::Status, nil] - optional :status, enum: -> { Orb::Models::PlanListParams::Status } + # @return [Symbol, Orb::PlanListParams::Status, nil] + optional :status, enum: -> { Orb::PlanListParams::Status } # @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, limit: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see @@ -59,11 +59,10 @@ class PlanListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Symbol, Orb::Models::PlanListParams::Status] The plan status to filter to ('active', 'archived', or 'draft'). + # @param status [Symbol, Orb::PlanListParams::Status] The plan status to filter to ('active', 'archived', or 'draft'). # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/plan_update_params.rb b/lib/orb/models/plan_update_params.rb index 8a57e1a1..d94c2c9d 100644 --- a/lib/orb/models/plan_update_params.rb +++ b/lib/orb/models/plan_update_params.rb @@ -28,10 +28,8 @@ class PlanUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::PlanUpdateParams} for more details. # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/plans/external_plan_id_update_params.rb b/lib/orb/models/plans/external_plan_id_update_params.rb index 9edd220c..588fe8cf 100644 --- a/lib/orb/models/plans/external_plan_id_update_params.rb +++ b/lib/orb/models/plans/external_plan_id_update_params.rb @@ -29,10 +29,8 @@ class ExternalPlanIDUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::Plans::ExternalPlanIDUpdateParams} for more details. # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 891a08c0..6c263fcf 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -19,61 +19,61 @@ module Price discriminator :model_type - variant :unit, -> { Orb::Models::Price::Unit } + variant :unit, -> { Orb::Price::Unit } - variant :package, -> { Orb::Models::Price::Package } + variant :package, -> { Orb::Price::Package } - variant :matrix, -> { Orb::Models::Price::Matrix } + variant :matrix, -> { Orb::Price::Matrix } - variant :tiered, -> { Orb::Models::Price::Tiered } + variant :tiered, -> { Orb::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::Price::TieredBps } + variant :tiered_bps, -> { Orb::Price::TieredBps } - variant :bps, -> { Orb::Models::Price::Bps } + variant :bps, -> { Orb::Price::Bps } - variant :bulk_bps, -> { Orb::Models::Price::BulkBps } + variant :bulk_bps, -> { Orb::Price::BulkBps } - variant :bulk, -> { Orb::Models::Price::Bulk } + variant :bulk, -> { Orb::Price::Bulk } - variant :threshold_total_amount, -> { Orb::Models::Price::ThresholdTotalAmount } + variant :threshold_total_amount, -> { Orb::Price::ThresholdTotalAmount } - variant :tiered_package, -> { Orb::Models::Price::TieredPackage } + variant :tiered_package, -> { Orb::Price::TieredPackage } - variant :grouped_tiered, -> { Orb::Models::Price::GroupedTiered } + variant :grouped_tiered, -> { Orb::Price::GroupedTiered } - variant :tiered_with_minimum, -> { Orb::Models::Price::TieredWithMinimum } + variant :tiered_with_minimum, -> { Orb::Price::TieredWithMinimum } - variant :tiered_package_with_minimum, -> { Orb::Models::Price::TieredPackageWithMinimum } + variant :tiered_package_with_minimum, -> { Orb::Price::TieredPackageWithMinimum } - variant :package_with_allocation, -> { Orb::Models::Price::PackageWithAllocation } + variant :package_with_allocation, -> { Orb::Price::PackageWithAllocation } - variant :unit_with_percent, -> { Orb::Models::Price::UnitWithPercent } + variant :unit_with_percent, -> { Orb::Price::UnitWithPercent } - variant :matrix_with_allocation, -> { Orb::Models::Price::MatrixWithAllocation } + variant :matrix_with_allocation, -> { Orb::Price::MatrixWithAllocation } - variant :tiered_with_proration, -> { Orb::Models::Price::TieredWithProration } + variant :tiered_with_proration, -> { Orb::Price::TieredWithProration } - variant :unit_with_proration, -> { Orb::Models::Price::UnitWithProration } + variant :unit_with_proration, -> { Orb::Price::UnitWithProration } - variant :grouped_allocation, -> { Orb::Models::Price::GroupedAllocation } + variant :grouped_allocation, -> { Orb::Price::GroupedAllocation } - variant :grouped_with_prorated_minimum, -> { Orb::Models::Price::GroupedWithProratedMinimum } + variant :grouped_with_prorated_minimum, -> { Orb::Price::GroupedWithProratedMinimum } - variant :grouped_with_metered_minimum, -> { Orb::Models::Price::GroupedWithMeteredMinimum } + variant :grouped_with_metered_minimum, -> { Orb::Price::GroupedWithMeteredMinimum } - variant :matrix_with_display_name, -> { Orb::Models::Price::MatrixWithDisplayName } + variant :matrix_with_display_name, -> { Orb::Price::MatrixWithDisplayName } - variant :bulk_with_proration, -> { Orb::Models::Price::BulkWithProration } + variant :bulk_with_proration, -> { Orb::Price::BulkWithProration } - variant :grouped_tiered_package, -> { Orb::Models::Price::GroupedTieredPackage } + variant :grouped_tiered_package, -> { Orb::Price::GroupedTieredPackage } - variant :max_group_tiered_package, -> { Orb::Models::Price::MaxGroupTieredPackage } + variant :max_group_tiered_package, -> { Orb::Price::MaxGroupTieredPackage } - variant :scalable_matrix_with_unit_pricing, -> { Orb::Models::Price::ScalableMatrixWithUnitPricing } + variant :scalable_matrix_with_unit_pricing, -> { Orb::Price::ScalableMatrixWithUnitPricing } - variant :scalable_matrix_with_tiered_pricing, -> { Orb::Models::Price::ScalableMatrixWithTieredPricing } + variant :scalable_matrix_with_tiered_pricing, -> { Orb::Price::ScalableMatrixWithTieredPricing } - variant :cumulative_grouped_bulk, -> { Orb::Models::Price::CumulativeGroupedBulk } + variant :cumulative_grouped_bulk, -> { Orb::Price::CumulativeGroupedBulk } class Unit < Orb::Internal::Type::BaseModel # @!attribute id @@ -83,18 +83,18 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Unit::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Unit::BillableMetric }, nil?: true + # @return [Orb::Price::Unit::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Unit::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Unit::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Unit::BillingCycleConfiguration } + # @return [Orb::Price::Unit::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Unit::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Unit::Cadence } + # @return [Symbol, Orb::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::Price::Unit::Cadence } # @!attribute conversion_rate # @@ -108,8 +108,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Unit::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Unit::CreditAllocation }, nil?: true + # @return [Orb::Price::Unit::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Unit::CreditAllocation }, nil?: true # @!attribute currency # @@ -118,8 +118,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -133,20 +133,22 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Unit::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Unit::InvoicingCycleConfiguration }, + -> { + Orb::Price::Unit::InvoicingCycleConfiguration + }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Unit::Item] - required :item, -> { Orb::Models::Price::Unit::Item } + # @return [Orb::Price::Unit::Item] + required :item, -> { Orb::Price::Unit::Item } # @!attribute maximum # - # @return [Orb::Models::Price::Unit::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Unit::Maximum }, nil?: true + # @return [Orb::Price::Unit::Maximum, nil] + required :maximum, -> { Orb::Price::Unit::Maximum }, nil?: true # @!attribute maximum_amount # @@ -164,8 +166,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Unit::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Unit::Minimum }, nil?: true + # @return [Orb::Price::Unit::Minimum, nil] + required :minimum, -> { Orb::Price::Unit::Minimum }, nil?: true # @!attribute minimum_amount # @@ -189,59 +191,58 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Unit::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Unit::PriceType } + # @return [Symbol, Orb::Price::Unit::PriceType] + required :price_type, enum: -> { Orb::Price::Unit::PriceType } # @!attribute unit_config # - # @return [Orb::Models::Price::Unit::UnitConfig] - required :unit_config, -> { Orb::Models::Price::Unit::UnitConfig } + # @return [Orb::Price::Unit::UnitConfig] + required :unit_config, -> { Orb::Price::Unit::UnitConfig } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Unit::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Unit::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Unit::DimensionalPriceConfiguration }, + -> { Orb::Price::Unit::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, unit_config:, dimensional_price_configuration: nil, model_type: :unit) - # Some parameter documentations has been truncated, see {Orb::Models::Price::Unit} - # for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Unit} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Unit::BillableMetric, nil] + # @param billable_metric [Orb::Price::Unit::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Unit::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Unit::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Unit::Cadence] + # @param cadence [Symbol, Orb::Price::Unit::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Unit::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Unit::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Unit::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Unit::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Unit::Item] + # @param item [Orb::Price::Unit::Item] # - # @param maximum [Orb::Models::Price::Unit::Maximum, nil] + # @param maximum [Orb::Price::Unit::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Unit::Minimum, nil] + # @param minimum [Orb::Price::Unit::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -249,15 +250,15 @@ class Unit < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Unit::PriceType] + # @param price_type [Symbol, Orb::Price::Unit::PriceType] # - # @param unit_config [Orb::Models::Price::Unit::UnitConfig] + # @param unit_config [Orb::Price::Unit::UnitConfig] # - # @param dimensional_price_configuration [Orb::Models::Price::Unit::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Unit::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :unit] - # @see Orb::Models::Price::Unit#billable_metric + # @see Orb::Price::Unit#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -268,7 +269,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Unit#billing_cycle_configuration + # @see Orb::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -277,14 +278,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Unit::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Unit::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Unit::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -296,7 +297,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Unit#cadence + # @see Orb::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -311,7 +312,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Unit#credit_allocation + # @see Orb::Price::Unit#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -328,7 +329,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Unit#invoicing_cycle_configuration + # @see Orb::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -337,14 +338,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -356,7 +357,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Unit#item + # @see Orb::Price::Unit#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -373,7 +374,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Unit#maximum + # @see Orb::Price::Unit#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -390,15 +391,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Unit::Maximum} for more details. + # {Orb::Price::Unit::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Unit#minimum + # @see Orb::Price::Unit#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -415,15 +415,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Unit::Minimum} for more details. + # {Orb::Price::Unit::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Unit#price_type + # @see Orb::Price::Unit#price_type module PriceType extend Orb::Internal::Type::Enum @@ -434,7 +433,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Unit#unit_config + # @see Orb::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -446,7 +445,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::Price::Unit#dimensional_price_configuration + # @see Orb::Price::Unit#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -472,18 +471,18 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Package::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Package::BillableMetric }, nil?: true + # @return [Orb::Price::Package::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Package::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Package::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Package::BillingCycleConfiguration } + # @return [Orb::Price::Package::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Package::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Package::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Package::Cadence } + # @return [Symbol, Orb::Price::Package::Cadence] + required :cadence, enum: -> { Orb::Price::Package::Cadence } # @!attribute conversion_rate # @@ -497,8 +496,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Package::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Package::CreditAllocation }, nil?: true + # @return [Orb::Price::Package::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Package::CreditAllocation }, nil?: true # @!attribute currency # @@ -507,8 +506,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -522,20 +521,20 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Package::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Package::InvoicingCycleConfiguration }, + -> { Orb::Price::Package::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Package::Item] - required :item, -> { Orb::Models::Price::Package::Item } + # @return [Orb::Price::Package::Item] + required :item, -> { Orb::Price::Package::Item } # @!attribute maximum # - # @return [Orb::Models::Price::Package::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Package::Maximum }, nil?: true + # @return [Orb::Price::Package::Maximum, nil] + required :maximum, -> { Orb::Price::Package::Maximum }, nil?: true # @!attribute maximum_amount # @@ -553,8 +552,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Package::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Package::Minimum }, nil?: true + # @return [Orb::Price::Package::Minimum, nil] + required :minimum, -> { Orb::Price::Package::Minimum }, nil?: true # @!attribute minimum_amount # @@ -573,8 +572,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::Price::Package::PackageConfig] - required :package_config, -> { Orb::Models::Price::Package::PackageConfig } + # @return [Orb::Price::Package::PackageConfig] + required :package_config, -> { Orb::Price::Package::PackageConfig } # @!attribute plan_phase_order # @@ -583,70 +582,69 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Package::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Package::PriceType } + # @return [Symbol, Orb::Price::Package::PriceType] + required :price_type, enum: -> { Orb::Price::Package::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Package::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Package::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Package::DimensionalPriceConfiguration }, + -> { Orb::Price::Package::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :package) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Package} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Package::BillableMetric, nil] + # @param billable_metric [Orb::Price::Package::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Package::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Package::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] + # @param cadence [Symbol, Orb::Price::Package::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Package::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Package::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Package::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Package::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Package::Item] + # @param item [Orb::Price::Package::Item] # - # @param maximum [Orb::Models::Price::Package::Maximum, nil] + # @param maximum [Orb::Price::Package::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Package::Minimum, nil] + # @param minimum [Orb::Price::Package::Minimum, nil] # # @param minimum_amount [String, nil] # # @param name [String] # - # @param package_config [Orb::Models::Price::Package::PackageConfig] + # @param package_config [Orb::Price::Package::PackageConfig] # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Package::PriceType] + # @param price_type [Symbol, Orb::Price::Package::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::Package::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Package::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :package] - # @see Orb::Models::Price::Package#billable_metric + # @see Orb::Price::Package#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -657,7 +655,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Package#billing_cycle_configuration + # @see Orb::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -666,14 +664,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Package::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Package::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Package::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -685,7 +683,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Package#cadence + # @see Orb::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -700,7 +698,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Package#credit_allocation + # @see Orb::Price::Package#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -717,7 +715,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Package#invoicing_cycle_configuration + # @see Orb::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -726,15 +724,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -746,7 +743,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Package#item + # @see Orb::Price::Package#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -763,7 +760,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Package#maximum + # @see Orb::Price::Package#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -780,15 +777,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package::Maximum} for more details. + # {Orb::Price::Package::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Package#minimum + # @see Orb::Price::Package#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -805,15 +801,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package::Minimum} for more details. + # {Orb::Price::Package::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Package#package_config + # @see Orb::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -830,15 +825,14 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package::PackageConfig} for more details. + # {Orb::Price::Package::PackageConfig} for more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::Price::Package#price_type + # @see Orb::Price::Package#price_type module PriceType extend Orb::Internal::Type::Enum @@ -849,7 +843,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Package#dimensional_price_configuration + # @see Orb::Price::Package#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -875,18 +869,18 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Matrix::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Matrix::BillableMetric }, nil?: true + # @return [Orb::Price::Matrix::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Matrix::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Matrix::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Matrix::BillingCycleConfiguration } + # @return [Orb::Price::Matrix::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Matrix::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Matrix::Cadence } + # @return [Symbol, Orb::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::Price::Matrix::Cadence } # @!attribute conversion_rate # @@ -900,8 +894,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Matrix::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Matrix::CreditAllocation }, nil?: true + # @return [Orb::Price::Matrix::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Matrix::CreditAllocation }, nil?: true # @!attribute currency # @@ -910,8 +904,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -925,25 +919,25 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Matrix::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Matrix::InvoicingCycleConfiguration }, + -> { Orb::Price::Matrix::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Matrix::Item] - required :item, -> { Orb::Models::Price::Matrix::Item } + # @return [Orb::Price::Matrix::Item] + required :item, -> { Orb::Price::Matrix::Item } # @!attribute matrix_config # - # @return [Orb::Models::Price::Matrix::MatrixConfig] - required :matrix_config, -> { Orb::Models::Price::Matrix::MatrixConfig } + # @return [Orb::Price::Matrix::MatrixConfig] + required :matrix_config, -> { Orb::Price::Matrix::MatrixConfig } # @!attribute maximum # - # @return [Orb::Models::Price::Matrix::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Matrix::Maximum }, nil?: true + # @return [Orb::Price::Matrix::Maximum, nil] + required :maximum, -> { Orb::Price::Matrix::Maximum }, nil?: true # @!attribute maximum_amount # @@ -961,8 +955,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Matrix::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Matrix::Minimum }, nil?: true + # @return [Orb::Price::Matrix::Minimum, nil] + required :minimum, -> { Orb::Price::Matrix::Minimum }, nil?: true # @!attribute minimum_amount # @@ -986,56 +980,55 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Matrix::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Matrix::PriceType } + # @return [Symbol, Orb::Price::Matrix::PriceType] + required :price_type, enum: -> { Orb::Price::Matrix::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Matrix::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Matrix::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Matrix::DimensionalPriceConfiguration }, + -> { Orb::Price::Matrix::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :matrix) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Matrix} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Matrix::BillableMetric, nil] + # @param billable_metric [Orb::Price::Matrix::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Matrix::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Matrix::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] + # @param cadence [Symbol, Orb::Price::Matrix::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Matrix::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Matrix::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Matrix::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Matrix::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Matrix::Item] + # @param item [Orb::Price::Matrix::Item] # - # @param matrix_config [Orb::Models::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::Price::Matrix::MatrixConfig] # - # @param maximum [Orb::Models::Price::Matrix::Maximum, nil] + # @param maximum [Orb::Price::Matrix::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Matrix::Minimum, nil] + # @param minimum [Orb::Price::Matrix::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -1043,13 +1036,13 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Matrix::PriceType] + # @param price_type [Symbol, Orb::Price::Matrix::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::Matrix::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Matrix::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :matrix] - # @see Orb::Models::Price::Matrix#billable_metric + # @see Orb::Price::Matrix#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1060,7 +1053,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Matrix#billing_cycle_configuration + # @see Orb::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1069,14 +1062,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1088,7 +1081,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Matrix#cadence + # @see Orb::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1103,7 +1096,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Matrix#credit_allocation + # @see Orb::Price::Matrix#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -1120,7 +1113,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Matrix#invoicing_cycle_configuration + # @see Orb::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1129,15 +1122,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1149,7 +1141,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Matrix#item + # @see Orb::Price::Matrix#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1166,7 +1158,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Matrix#matrix_config + # @see Orb::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1183,16 +1175,16 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue] } + -> { Orb::Internal::Type::ArrayOf[Orb::Price::Matrix::MatrixConfig::MatrixValue] } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -1211,16 +1203,15 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix::MatrixConfig::MatrixValue} for more details. + # {Orb::Price::Matrix::MatrixConfig::MatrixValue} for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::Price::Matrix#maximum + # @see Orb::Price::Matrix#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1237,15 +1228,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix::Maximum} for more details. + # {Orb::Price::Matrix::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Matrix#minimum + # @see Orb::Price::Matrix#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1262,15 +1252,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix::Minimum} for more details. + # {Orb::Price::Matrix::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Matrix#price_type + # @see Orb::Price::Matrix#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1281,7 +1270,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Matrix#dimensional_price_configuration + # @see Orb::Price::Matrix#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -1307,18 +1296,18 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Tiered::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Tiered::BillableMetric }, nil?: true + # @return [Orb::Price::Tiered::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Tiered::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Tiered::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Tiered::BillingCycleConfiguration } + # @return [Orb::Price::Tiered::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Tiered::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Tiered::Cadence } + # @return [Symbol, Orb::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::Price::Tiered::Cadence } # @!attribute conversion_rate # @@ -1332,8 +1321,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Tiered::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Tiered::CreditAllocation }, nil?: true + # @return [Orb::Price::Tiered::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Tiered::CreditAllocation }, nil?: true # @!attribute currency # @@ -1342,8 +1331,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -1357,20 +1346,20 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Tiered::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Tiered::InvoicingCycleConfiguration }, + -> { Orb::Price::Tiered::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Tiered::Item] - required :item, -> { Orb::Models::Price::Tiered::Item } + # @return [Orb::Price::Tiered::Item] + required :item, -> { Orb::Price::Tiered::Item } # @!attribute maximum # - # @return [Orb::Models::Price::Tiered::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Tiered::Maximum }, nil?: true + # @return [Orb::Price::Tiered::Maximum, nil] + required :maximum, -> { Orb::Price::Tiered::Maximum }, nil?: true # @!attribute maximum_amount # @@ -1388,8 +1377,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Tiered::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Tiered::Minimum }, nil?: true + # @return [Orb::Price::Tiered::Minimum, nil] + required :minimum, -> { Orb::Price::Tiered::Minimum }, nil?: true # @!attribute minimum_amount # @@ -1413,59 +1402,58 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Tiered::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Tiered::PriceType } + # @return [Symbol, Orb::Price::Tiered::PriceType] + required :price_type, enum: -> { Orb::Price::Tiered::PriceType } # @!attribute tiered_config # - # @return [Orb::Models::Price::Tiered::TieredConfig] - required :tiered_config, -> { Orb::Models::Price::Tiered::TieredConfig } + # @return [Orb::Price::Tiered::TieredConfig] + required :tiered_config, -> { Orb::Price::Tiered::TieredConfig } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Tiered::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Tiered::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Tiered::DimensionalPriceConfiguration }, + -> { Orb::Price::Tiered::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Tiered} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Tiered} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Tiered::BillableMetric, nil] + # @param billable_metric [Orb::Price::Tiered::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Tiered::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Tiered::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] + # @param cadence [Symbol, Orb::Price::Tiered::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Tiered::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Tiered::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Tiered::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Tiered::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Tiered::Item] + # @param item [Orb::Price::Tiered::Item] # - # @param maximum [Orb::Models::Price::Tiered::Maximum, nil] + # @param maximum [Orb::Price::Tiered::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Tiered::Minimum, nil] + # @param minimum [Orb::Price::Tiered::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -1473,15 +1461,15 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Tiered::PriceType] + # @param price_type [Symbol, Orb::Price::Tiered::PriceType] # - # @param tiered_config [Orb::Models::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::Price::Tiered::TieredConfig] # - # @param dimensional_price_configuration [Orb::Models::Price::Tiered::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Tiered::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered] - # @see Orb::Models::Price::Tiered#billable_metric + # @see Orb::Price::Tiered#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1492,7 +1480,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Tiered#billing_cycle_configuration + # @see Orb::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1501,14 +1489,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1520,7 +1508,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Tiered#cadence + # @see Orb::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1535,7 +1523,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Tiered#credit_allocation + # @see Orb::Price::Tiered#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -1552,7 +1540,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Tiered#invoicing_cycle_configuration + # @see Orb::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1561,15 +1549,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1581,7 +1568,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Tiered#item + # @see Orb::Price::Tiered#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1598,7 +1585,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Tiered#maximum + # @see Orb::Price::Tiered#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1615,15 +1602,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Tiered::Maximum} for more details. + # {Orb::Price::Tiered::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Tiered#minimum + # @see Orb::Price::Tiered#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1640,15 +1626,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Tiered::Minimum} for more details. + # {Orb::Price::Tiered::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Tiered#price_type + # @see Orb::Price::Tiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1659,16 +1644,16 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Tiered#tiered_config + # @see Orb::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::Tiered::TieredConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::Tiered::TieredConfig::Tier] } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -1698,7 +1683,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Price::Tiered#dimensional_price_configuration + # @see Orb::Price::Tiered#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -1724,18 +1709,18 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::TieredBps::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::TieredBps::BillableMetric }, nil?: true + # @return [Orb::Price::TieredBps::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::TieredBps::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::TieredBps::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::TieredBps::BillingCycleConfiguration } + # @return [Orb::Price::TieredBps::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::TieredBps::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredBps::Cadence] - required :cadence, enum: -> { Orb::Models::Price::TieredBps::Cadence } + # @return [Symbol, Orb::Price::TieredBps::Cadence] + required :cadence, enum: -> { Orb::Price::TieredBps::Cadence } # @!attribute conversion_rate # @@ -1749,8 +1734,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::TieredBps::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::TieredBps::CreditAllocation }, nil?: true + # @return [Orb::Price::TieredBps::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::TieredBps::CreditAllocation }, nil?: true # @!attribute currency # @@ -1759,8 +1744,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -1774,20 +1759,20 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::TieredBps::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::TieredBps::InvoicingCycleConfiguration }, + -> { Orb::Price::TieredBps::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::TieredBps::Item] - required :item, -> { Orb::Models::Price::TieredBps::Item } + # @return [Orb::Price::TieredBps::Item] + required :item, -> { Orb::Price::TieredBps::Item } # @!attribute maximum # - # @return [Orb::Models::Price::TieredBps::Maximum, nil] - required :maximum, -> { Orb::Models::Price::TieredBps::Maximum }, nil?: true + # @return [Orb::Price::TieredBps::Maximum, nil] + required :maximum, -> { Orb::Price::TieredBps::Maximum }, nil?: true # @!attribute maximum_amount # @@ -1805,8 +1790,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::TieredBps::Minimum, nil] - required :minimum, -> { Orb::Models::Price::TieredBps::Minimum }, nil?: true + # @return [Orb::Price::TieredBps::Minimum, nil] + required :minimum, -> { Orb::Price::TieredBps::Minimum }, nil?: true # @!attribute minimum_amount # @@ -1830,59 +1815,58 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredBps::PriceType] - required :price_type, enum: -> { Orb::Models::Price::TieredBps::PriceType } + # @return [Symbol, Orb::Price::TieredBps::PriceType] + required :price_type, enum: -> { Orb::Price::TieredBps::PriceType } # @!attribute tiered_bps_config # - # @return [Orb::Models::Price::TieredBps::TieredBpsConfig] - required :tiered_bps_config, -> { Orb::Models::Price::TieredBps::TieredBpsConfig } + # @return [Orb::Price::TieredBps::TieredBpsConfig] + required :tiered_bps_config, -> { Orb::Price::TieredBps::TieredBpsConfig } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::TieredBps::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::TieredBps::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::TieredBps::DimensionalPriceConfiguration }, + -> { Orb::Price::TieredBps::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_bps_config:, dimensional_price_configuration: nil, model_type: :tiered_bps) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredBps} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::TieredBps} + # for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::TieredBps::BillableMetric, nil] + # @param billable_metric [Orb::Price::TieredBps::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::TieredBps::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::TieredBps::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredBps::Cadence] + # @param cadence [Symbol, Orb::Price::TieredBps::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::TieredBps::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::TieredBps::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::TieredBps::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::TieredBps::Item] + # @param item [Orb::Price::TieredBps::Item] # - # @param maximum [Orb::Models::Price::TieredBps::Maximum, nil] + # @param maximum [Orb::Price::TieredBps::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::TieredBps::Minimum, nil] + # @param minimum [Orb::Price::TieredBps::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -1890,15 +1874,15 @@ class TieredBps < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredBps::PriceType] + # @param price_type [Symbol, Orb::Price::TieredBps::PriceType] # - # @param tiered_bps_config [Orb::Models::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::Price::TieredBps::TieredBpsConfig] # - # @param dimensional_price_configuration [Orb::Models::Price::TieredBps::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::TieredBps::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered_bps] - # @see Orb::Models::Price::TieredBps#billable_metric + # @see Orb::Price::TieredBps#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1909,7 +1893,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::TieredBps#billing_cycle_configuration + # @see Orb::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1918,15 +1902,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1938,7 +1921,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredBps#cadence + # @see Orb::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1953,7 +1936,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredBps#credit_allocation + # @see Orb::Price::TieredBps#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -1970,7 +1953,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -1979,15 +1962,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1999,7 +1984,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredBps#item + # @see Orb::Price::TieredBps#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -2016,7 +2001,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::TieredBps#maximum + # @see Orb::Price::TieredBps#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2033,15 +2018,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredBps::Maximum} for more details. + # {Orb::Price::TieredBps::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::TieredBps#minimum + # @see Orb::Price::TieredBps#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2058,15 +2042,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredBps::Minimum} for more details. + # {Orb::Price::TieredBps::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::TieredBps#price_type + # @see Orb::Price::TieredBps#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2077,21 +2060,20 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::TieredBps#tiered_bps_config + # @see Orb::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredBps::TieredBpsConfig::Tier] } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredBps::TieredBpsConfig} for more details. + # {Orb::Price::TieredBps::TieredBpsConfig} for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2129,7 +2111,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Price::TieredBps#dimensional_price_configuration + # @see Orb::Price::TieredBps#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -2155,23 +2137,23 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Bps::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Bps::BillableMetric }, nil?: true + # @return [Orb::Price::Bps::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Bps::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Bps::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Bps::BillingCycleConfiguration } + # @return [Orb::Price::Bps::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Bps::BillingCycleConfiguration } # @!attribute bps_config # - # @return [Orb::Models::Price::Bps::BpsConfig] - required :bps_config, -> { Orb::Models::Price::Bps::BpsConfig } + # @return [Orb::Price::Bps::BpsConfig] + required :bps_config, -> { Orb::Price::Bps::BpsConfig } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Bps::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Bps::Cadence } + # @return [Symbol, Orb::Price::Bps::Cadence] + required :cadence, enum: -> { Orb::Price::Bps::Cadence } # @!attribute conversion_rate # @@ -2185,8 +2167,8 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Bps::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Bps::CreditAllocation }, nil?: true + # @return [Orb::Price::Bps::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Bps::CreditAllocation }, nil?: true # @!attribute currency # @@ -2195,8 +2177,8 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -2210,20 +2192,22 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Bps::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Bps::InvoicingCycleConfiguration }, + -> { + Orb::Price::Bps::InvoicingCycleConfiguration + }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Bps::Item] - required :item, -> { Orb::Models::Price::Bps::Item } + # @return [Orb::Price::Bps::Item] + required :item, -> { Orb::Price::Bps::Item } # @!attribute maximum # - # @return [Orb::Models::Price::Bps::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Bps::Maximum }, nil?: true + # @return [Orb::Price::Bps::Maximum, nil] + required :maximum, -> { Orb::Price::Bps::Maximum }, nil?: true # @!attribute maximum_amount # @@ -2241,8 +2225,8 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Bps::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Bps::Minimum }, nil?: true + # @return [Orb::Price::Bps::Minimum, nil] + required :minimum, -> { Orb::Price::Bps::Minimum }, nil?: true # @!attribute minimum_amount # @@ -2266,56 +2250,55 @@ class Bps < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Bps::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Bps::PriceType } + # @return [Symbol, Orb::Price::Bps::PriceType] + required :price_type, enum: -> { Orb::Price::Bps::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Bps::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Bps::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Bps::DimensionalPriceConfiguration }, + -> { Orb::Price::Bps::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bps_config:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :bps) - # Some parameter documentations has been truncated, see {Orb::Models::Price::Bps} - # for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Bps} for more + # details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Bps::BillableMetric, nil] + # @param billable_metric [Orb::Price::Bps::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Bps::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Bps::BillingCycleConfiguration] # - # @param bps_config [Orb::Models::Price::Bps::BpsConfig] + # @param bps_config [Orb::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::Price::Bps::Cadence] + # @param cadence [Symbol, Orb::Price::Bps::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Bps::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Bps::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Bps::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Bps::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Bps::Item] + # @param item [Orb::Price::Bps::Item] # - # @param maximum [Orb::Models::Price::Bps::Maximum, nil] + # @param maximum [Orb::Price::Bps::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Bps::Minimum, nil] + # @param minimum [Orb::Price::Bps::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -2323,13 +2306,13 @@ class Bps < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Bps::PriceType] + # @param price_type [Symbol, Orb::Price::Bps::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::Bps::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Bps::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :bps] - # @see Orb::Models::Price::Bps#billable_metric + # @see Orb::Price::Bps#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -2340,7 +2323,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Bps#billing_cycle_configuration + # @see Orb::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -2349,14 +2332,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Bps::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Bps::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Bps::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2368,7 +2351,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Bps#bps_config + # @see Orb::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -2388,7 +2371,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # @param per_unit_maximum [String, nil] Optional currency amount maximum to cap spend per event end - # @see Orb::Models::Price::Bps#cadence + # @see Orb::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2403,7 +2386,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Bps#credit_allocation + # @see Orb::Price::Bps#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -2420,7 +2403,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Bps#invoicing_cycle_configuration + # @see Orb::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -2429,14 +2412,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2448,7 +2431,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Bps#item + # @see Orb::Price::Bps#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -2465,7 +2448,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Bps#maximum + # @see Orb::Price::Bps#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2481,16 +2464,15 @@ class Maximum < Orb::Internal::Type::BaseModel required :maximum_amount, String # @!method initialize(applies_to_price_ids:, maximum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Bps::Maximum} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Bps::Maximum} + # for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Bps#minimum + # @see Orb::Price::Bps#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2506,16 +2488,15 @@ class Minimum < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!method initialize(applies_to_price_ids:, minimum_amount:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Bps::Minimum} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Bps::Minimum} + # for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Bps#price_type + # @see Orb::Price::Bps#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2526,7 +2507,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Bps#dimensional_price_configuration + # @see Orb::Price::Bps#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -2552,23 +2533,23 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::BulkBps::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::BulkBps::BillableMetric }, nil?: true + # @return [Orb::Price::BulkBps::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::BulkBps::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::BulkBps::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::BulkBps::BillingCycleConfiguration } + # @return [Orb::Price::BulkBps::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::BulkBps::BillingCycleConfiguration } # @!attribute bulk_bps_config # - # @return [Orb::Models::Price::BulkBps::BulkBpsConfig] - required :bulk_bps_config, -> { Orb::Models::Price::BulkBps::BulkBpsConfig } + # @return [Orb::Price::BulkBps::BulkBpsConfig] + required :bulk_bps_config, -> { Orb::Price::BulkBps::BulkBpsConfig } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::BulkBps::Cadence] - required :cadence, enum: -> { Orb::Models::Price::BulkBps::Cadence } + # @return [Symbol, Orb::Price::BulkBps::Cadence] + required :cadence, enum: -> { Orb::Price::BulkBps::Cadence } # @!attribute conversion_rate # @@ -2582,8 +2563,8 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::BulkBps::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::BulkBps::CreditAllocation }, nil?: true + # @return [Orb::Price::BulkBps::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::BulkBps::CreditAllocation }, nil?: true # @!attribute currency # @@ -2592,8 +2573,8 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -2607,20 +2588,20 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::BulkBps::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::BulkBps::InvoicingCycleConfiguration }, + -> { Orb::Price::BulkBps::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::BulkBps::Item] - required :item, -> { Orb::Models::Price::BulkBps::Item } + # @return [Orb::Price::BulkBps::Item] + required :item, -> { Orb::Price::BulkBps::Item } # @!attribute maximum # - # @return [Orb::Models::Price::BulkBps::Maximum, nil] - required :maximum, -> { Orb::Models::Price::BulkBps::Maximum }, nil?: true + # @return [Orb::Price::BulkBps::Maximum, nil] + required :maximum, -> { Orb::Price::BulkBps::Maximum }, nil?: true # @!attribute maximum_amount # @@ -2638,8 +2619,8 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::BulkBps::Minimum, nil] - required :minimum, -> { Orb::Models::Price::BulkBps::Minimum }, nil?: true + # @return [Orb::Price::BulkBps::Minimum, nil] + required :minimum, -> { Orb::Price::BulkBps::Minimum }, nil?: true # @!attribute minimum_amount # @@ -2663,56 +2644,55 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::BulkBps::PriceType] - required :price_type, enum: -> { Orb::Models::Price::BulkBps::PriceType } + # @return [Symbol, Orb::Price::BulkBps::PriceType] + required :price_type, enum: -> { Orb::Price::BulkBps::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::BulkBps::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::BulkBps::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::BulkBps::DimensionalPriceConfiguration }, + -> { Orb::Price::BulkBps::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_bps_config:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :bulk_bps) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkBps} for more details. + # Some parameter documentations has been truncated, see {Orb::Price::BulkBps} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::BulkBps::BillableMetric, nil] + # @param billable_metric [Orb::Price::BulkBps::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::BulkBps::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::BulkBps::BillingCycleConfiguration] # - # @param bulk_bps_config [Orb::Models::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::Price::BulkBps::Cadence] + # @param cadence [Symbol, Orb::Price::BulkBps::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::BulkBps::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::BulkBps::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::BulkBps::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::BulkBps::Item] + # @param item [Orb::Price::BulkBps::Item] # - # @param maximum [Orb::Models::Price::BulkBps::Maximum, nil] + # @param maximum [Orb::Price::BulkBps::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::BulkBps::Minimum, nil] + # @param minimum [Orb::Price::BulkBps::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -2720,13 +2700,13 @@ class BulkBps < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::BulkBps::PriceType] + # @param price_type [Symbol, Orb::Price::BulkBps::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::BulkBps::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::BulkBps::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::Price::BulkBps#billable_metric + # @see Orb::Price::BulkBps#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -2737,7 +2717,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::BulkBps#billing_cycle_configuration + # @see Orb::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -2746,14 +2726,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2765,21 +2745,20 @@ module DurationUnit end end - # @see Orb::Models::Price::BulkBps#bulk_bps_config + # @see Orb::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::BulkBps::BulkBpsConfig::Tier] } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkBps::BulkBpsConfig} for more details. + # {Orb::Price::BulkBps::BulkBpsConfig} for more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2809,7 +2788,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Price::BulkBps#cadence + # @see Orb::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2824,7 +2803,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkBps#credit_allocation + # @see Orb::Price::BulkBps#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -2841,7 +2820,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -2850,15 +2829,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2870,7 +2848,7 @@ module DurationUnit end end - # @see Orb::Models::Price::BulkBps#item + # @see Orb::Price::BulkBps#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -2887,7 +2865,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::BulkBps#maximum + # @see Orb::Price::BulkBps#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2904,15 +2882,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkBps::Maximum} for more details. + # {Orb::Price::BulkBps::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::BulkBps#minimum + # @see Orb::Price::BulkBps#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2929,15 +2906,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkBps::Minimum} for more details. + # {Orb::Price::BulkBps::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::BulkBps#price_type + # @see Orb::Price::BulkBps#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2948,7 +2924,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::BulkBps#dimensional_price_configuration + # @see Orb::Price::BulkBps#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -2974,23 +2950,23 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::Bulk::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::Bulk::BillableMetric }, nil?: true + # @return [Orb::Price::Bulk::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::Bulk::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::Bulk::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::Bulk::BillingCycleConfiguration } + # @return [Orb::Price::Bulk::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::Bulk::BillingCycleConfiguration } # @!attribute bulk_config # - # @return [Orb::Models::Price::Bulk::BulkConfig] - required :bulk_config, -> { Orb::Models::Price::Bulk::BulkConfig } + # @return [Orb::Price::Bulk::BulkConfig] + required :bulk_config, -> { Orb::Price::Bulk::BulkConfig } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Models::Price::Bulk::Cadence } + # @return [Symbol, Orb::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::Price::Bulk::Cadence } # @!attribute conversion_rate # @@ -3004,8 +2980,8 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::Bulk::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::Bulk::CreditAllocation }, nil?: true + # @return [Orb::Price::Bulk::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::Bulk::CreditAllocation }, nil?: true # @!attribute currency # @@ -3014,8 +2990,8 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -3029,20 +3005,22 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::Bulk::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::Bulk::InvoicingCycleConfiguration }, + -> { + Orb::Price::Bulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::Bulk::Item] - required :item, -> { Orb::Models::Price::Bulk::Item } + # @return [Orb::Price::Bulk::Item] + required :item, -> { Orb::Price::Bulk::Item } # @!attribute maximum # - # @return [Orb::Models::Price::Bulk::Maximum, nil] - required :maximum, -> { Orb::Models::Price::Bulk::Maximum }, nil?: true + # @return [Orb::Price::Bulk::Maximum, nil] + required :maximum, -> { Orb::Price::Bulk::Maximum }, nil?: true # @!attribute maximum_amount # @@ -3060,8 +3038,8 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::Bulk::Minimum, nil] - required :minimum, -> { Orb::Models::Price::Bulk::Minimum }, nil?: true + # @return [Orb::Price::Bulk::Minimum, nil] + required :minimum, -> { Orb::Price::Bulk::Minimum }, nil?: true # @!attribute minimum_amount # @@ -3085,56 +3063,55 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Bulk::PriceType] - required :price_type, enum: -> { Orb::Models::Price::Bulk::PriceType } + # @return [Symbol, Orb::Price::Bulk::PriceType] + required :price_type, enum: -> { Orb::Price::Bulk::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::Bulk::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::Bulk::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::Bulk::DimensionalPriceConfiguration }, + -> { Orb::Price::Bulk::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :bulk) - # Some parameter documentations has been truncated, see {Orb::Models::Price::Bulk} - # for more details. + # Some parameter documentations has been truncated, see {Orb::Price::Bulk} for + # more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::Bulk::BillableMetric, nil] + # @param billable_metric [Orb::Price::Bulk::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::Bulk::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::Bulk::BillingCycleConfiguration] # - # @param bulk_config [Orb::Models::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::Price::Bulk::Cadence] + # @param cadence [Symbol, Orb::Price::Bulk::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::Bulk::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::Bulk::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::Bulk::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::Bulk::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::Bulk::Item] + # @param item [Orb::Price::Bulk::Item] # - # @param maximum [Orb::Models::Price::Bulk::Maximum, nil] + # @param maximum [Orb::Price::Bulk::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::Bulk::Minimum, nil] + # @param minimum [Orb::Price::Bulk::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -3142,13 +3119,13 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Bulk::PriceType] + # @param price_type [Symbol, Orb::Price::Bulk::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::Bulk::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::Bulk::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :bulk] - # @see Orb::Models::Price::Bulk#billable_metric + # @see Orb::Price::Bulk#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -3159,7 +3136,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::Bulk#billing_cycle_configuration + # @see Orb::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -3168,14 +3145,14 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3187,16 +3164,16 @@ module DurationUnit end end - # @see Orb::Models::Price::Bulk#bulk_config + # @see Orb::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::Bulk::BulkConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::Bulk::BulkConfig::Tier] } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -3218,7 +3195,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Price::Bulk#cadence + # @see Orb::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3233,7 +3210,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Bulk#credit_allocation + # @see Orb::Price::Bulk#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -3250,7 +3227,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::Bulk#invoicing_cycle_configuration + # @see Orb::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -3259,14 +3236,14 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] - required :duration_unit, enum: -> { Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3278,7 +3255,7 @@ module DurationUnit end end - # @see Orb::Models::Price::Bulk#item + # @see Orb::Price::Bulk#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -3295,7 +3272,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::Bulk#maximum + # @see Orb::Price::Bulk#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -3312,15 +3289,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Bulk::Maximum} for more details. + # {Orb::Price::Bulk::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::Bulk#minimum + # @see Orb::Price::Bulk#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -3337,15 +3313,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Bulk::Minimum} for more details. + # {Orb::Price::Bulk::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::Bulk#price_type + # @see Orb::Price::Bulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3356,7 +3331,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::Bulk#dimensional_price_configuration + # @see Orb::Price::Bulk#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -3382,19 +3357,21 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::ThresholdTotalAmount::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::ThresholdTotalAmount::BillableMetric }, nil?: true + # @return [Orb::Price::ThresholdTotalAmount::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::ThresholdTotalAmount::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration] + # @return [Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration } + -> { + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] - required :cadence, enum: -> { Orb::Models::Price::ThresholdTotalAmount::Cadence } + # @return [Symbol, Orb::Price::ThresholdTotalAmount::Cadence] + required :cadence, enum: -> { Orb::Price::ThresholdTotalAmount::Cadence } # @!attribute conversion_rate # @@ -3408,8 +3385,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::ThresholdTotalAmount::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::ThresholdTotalAmount::CreditAllocation }, nil?: true + # @return [Orb::Price::ThresholdTotalAmount::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::ThresholdTotalAmount::CreditAllocation }, nil?: true # @!attribute currency # @@ -3418,8 +3395,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -3433,20 +3410,20 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::ThresholdTotalAmount::Item] - required :item, -> { Orb::Models::Price::ThresholdTotalAmount::Item } + # @return [Orb::Price::ThresholdTotalAmount::Item] + required :item, -> { Orb::Price::ThresholdTotalAmount::Item } # @!attribute maximum # - # @return [Orb::Models::Price::ThresholdTotalAmount::Maximum, nil] - required :maximum, -> { Orb::Models::Price::ThresholdTotalAmount::Maximum }, nil?: true + # @return [Orb::Price::ThresholdTotalAmount::Maximum, nil] + required :maximum, -> { Orb::Price::ThresholdTotalAmount::Maximum }, nil?: true # @!attribute maximum_amount # @@ -3464,8 +3441,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::ThresholdTotalAmount::Minimum, nil] - required :minimum, -> { Orb::Models::Price::ThresholdTotalAmount::Minimum }, nil?: true + # @return [Orb::Price::ThresholdTotalAmount::Minimum, nil] + required :minimum, -> { Orb::Price::ThresholdTotalAmount::Minimum }, nil?: true # @!attribute minimum_amount # @@ -3489,8 +3466,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::PriceType] - required :price_type, enum: -> { Orb::Models::Price::ThresholdTotalAmount::PriceType } + # @return [Symbol, Orb::Price::ThresholdTotalAmount::PriceType] + required :price_type, enum: -> { Orb::Price::ThresholdTotalAmount::PriceType } # @!attribute threshold_total_amount_config # @@ -3499,49 +3476,48 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration }, + -> { Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ThresholdTotalAmount} for more details. + # {Orb::Price::ThresholdTotalAmount} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::ThresholdTotalAmount::BillableMetric, nil] + # @param billable_metric [Orb::Price::ThresholdTotalAmount::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] + # @param cadence [Symbol, Orb::Price::ThresholdTotalAmount::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::ThresholdTotalAmount::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::ThresholdTotalAmount::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::ThresholdTotalAmount::Item] + # @param item [Orb::Price::ThresholdTotalAmount::Item] # - # @param maximum [Orb::Models::Price::ThresholdTotalAmount::Maximum, nil] + # @param maximum [Orb::Price::ThresholdTotalAmount::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::ThresholdTotalAmount::Minimum, nil] + # @param minimum [Orb::Price::ThresholdTotalAmount::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -3549,15 +3525,15 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::ThresholdTotalAmount::PriceType] + # @param price_type [Symbol, Orb::Price::ThresholdTotalAmount::PriceType] # # @param threshold_total_amount_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :threshold_total_amount] - # @see Orb::Models::Price::ThresholdTotalAmount#billable_metric + # @see Orb::Price::ThresholdTotalAmount#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -3568,7 +3544,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -3577,15 +3553,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3597,7 +3573,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ThresholdTotalAmount#cadence + # @see Orb::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3612,7 +3588,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ThresholdTotalAmount#credit_allocation + # @see Orb::Price::ThresholdTotalAmount#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -3629,7 +3605,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -3638,15 +3614,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3658,7 +3634,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ThresholdTotalAmount#item + # @see Orb::Price::ThresholdTotalAmount#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -3675,7 +3651,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::ThresholdTotalAmount#maximum + # @see Orb::Price::ThresholdTotalAmount#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -3692,15 +3668,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ThresholdTotalAmount::Maximum} for more details. + # {Orb::Price::ThresholdTotalAmount::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::ThresholdTotalAmount#minimum + # @see Orb::Price::ThresholdTotalAmount#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -3717,15 +3692,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ThresholdTotalAmount::Minimum} for more details. + # {Orb::Price::ThresholdTotalAmount::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::ThresholdTotalAmount#price_type + # @see Orb::Price::ThresholdTotalAmount#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3736,7 +3710,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::ThresholdTotalAmount#dimensional_price_configuration + # @see Orb::Price::ThresholdTotalAmount#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -3762,18 +3736,18 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::TieredPackage::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::TieredPackage::BillableMetric }, nil?: true + # @return [Orb::Price::TieredPackage::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::TieredPackage::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::TieredPackage::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::TieredPackage::BillingCycleConfiguration } + # @return [Orb::Price::TieredPackage::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::TieredPackage::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::Price::TieredPackage::Cadence } + # @return [Symbol, Orb::Price::TieredPackage::Cadence] + required :cadence, enum: -> { Orb::Price::TieredPackage::Cadence } # @!attribute conversion_rate # @@ -3787,8 +3761,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::TieredPackage::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::TieredPackage::CreditAllocation }, nil?: true + # @return [Orb::Price::TieredPackage::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::TieredPackage::CreditAllocation }, nil?: true # @!attribute currency # @@ -3797,8 +3771,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -3812,20 +3786,20 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::TieredPackage::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { Orb::Price::TieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::TieredPackage::Item] - required :item, -> { Orb::Models::Price::TieredPackage::Item } + # @return [Orb::Price::TieredPackage::Item] + required :item, -> { Orb::Price::TieredPackage::Item } # @!attribute maximum # - # @return [Orb::Models::Price::TieredPackage::Maximum, nil] - required :maximum, -> { Orb::Models::Price::TieredPackage::Maximum }, nil?: true + # @return [Orb::Price::TieredPackage::Maximum, nil] + required :maximum, -> { Orb::Price::TieredPackage::Maximum }, nil?: true # @!attribute maximum_amount # @@ -3843,8 +3817,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::TieredPackage::Minimum, nil] - required :minimum, -> { Orb::Models::Price::TieredPackage::Minimum }, nil?: true + # @return [Orb::Price::TieredPackage::Minimum, nil] + required :minimum, -> { Orb::Price::TieredPackage::Minimum }, nil?: true # @!attribute minimum_amount # @@ -3868,8 +3842,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredPackage::PriceType] - required :price_type, enum: -> { Orb::Models::Price::TieredPackage::PriceType } + # @return [Symbol, Orb::Price::TieredPackage::PriceType] + required :price_type, enum: -> { Orb::Price::TieredPackage::PriceType } # @!attribute tiered_package_config # @@ -3878,49 +3852,48 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::TieredPackage::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration }, + -> { Orb::Price::TieredPackage::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackage} for more details. + # {Orb::Price::TieredPackage} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::TieredPackage::BillableMetric, nil] + # @param billable_metric [Orb::Price::TieredPackage::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::TieredPackage::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::TieredPackage::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredPackage::Cadence] + # @param cadence [Symbol, Orb::Price::TieredPackage::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::TieredPackage::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::TieredPackage::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::TieredPackage::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::TieredPackage::Item] + # @param item [Orb::Price::TieredPackage::Item] # - # @param maximum [Orb::Models::Price::TieredPackage::Maximum, nil] + # @param maximum [Orb::Price::TieredPackage::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::TieredPackage::Minimum, nil] + # @param minimum [Orb::Price::TieredPackage::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -3928,15 +3901,15 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredPackage::PriceType] + # @param price_type [Symbol, Orb::Price::TieredPackage::PriceType] # # @param tiered_package_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::TieredPackage::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered_package] - # @see Orb::Models::Price::TieredPackage#billable_metric + # @see Orb::Price::TieredPackage#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -3947,7 +3920,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::TieredPackage#billing_cycle_configuration + # @see Orb::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -3956,15 +3929,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3976,7 +3951,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredPackage#cadence + # @see Orb::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3991,7 +3966,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredPackage#credit_allocation + # @see Orb::Price::TieredPackage#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -4008,7 +3983,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -4017,15 +3992,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4037,7 +4014,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredPackage#item + # @see Orb::Price::TieredPackage#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -4054,7 +4031,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::TieredPackage#maximum + # @see Orb::Price::TieredPackage#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -4071,15 +4048,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackage::Maximum} for more details. + # {Orb::Price::TieredPackage::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::TieredPackage#minimum + # @see Orb::Price::TieredPackage#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -4096,15 +4072,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackage::Minimum} for more details. + # {Orb::Price::TieredPackage::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::TieredPackage#price_type + # @see Orb::Price::TieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4115,7 +4090,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::TieredPackage#dimensional_price_configuration + # @see Orb::Price::TieredPackage#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -4141,18 +4116,18 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::GroupedTiered::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::GroupedTiered::BillableMetric }, nil?: true + # @return [Orb::Price::GroupedTiered::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::GroupedTiered::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::GroupedTiered::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::Models::Price::GroupedTiered::BillingCycleConfiguration } + # @return [Orb::Price::GroupedTiered::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::GroupedTiered::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedTiered::Cadence] - required :cadence, enum: -> { Orb::Models::Price::GroupedTiered::Cadence } + # @return [Symbol, Orb::Price::GroupedTiered::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedTiered::Cadence } # @!attribute conversion_rate # @@ -4166,8 +4141,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::GroupedTiered::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::GroupedTiered::CreditAllocation }, nil?: true + # @return [Orb::Price::GroupedTiered::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::GroupedTiered::CreditAllocation }, nil?: true # @!attribute currency # @@ -4176,8 +4151,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -4196,20 +4171,20 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::GroupedTiered::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration }, + -> { Orb::Price::GroupedTiered::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::GroupedTiered::Item] - required :item, -> { Orb::Models::Price::GroupedTiered::Item } + # @return [Orb::Price::GroupedTiered::Item] + required :item, -> { Orb::Price::GroupedTiered::Item } # @!attribute maximum # - # @return [Orb::Models::Price::GroupedTiered::Maximum, nil] - required :maximum, -> { Orb::Models::Price::GroupedTiered::Maximum }, nil?: true + # @return [Orb::Price::GroupedTiered::Maximum, nil] + required :maximum, -> { Orb::Price::GroupedTiered::Maximum }, nil?: true # @!attribute maximum_amount # @@ -4227,8 +4202,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::GroupedTiered::Minimum, nil] - required :minimum, -> { Orb::Models::Price::GroupedTiered::Minimum }, nil?: true + # @return [Orb::Price::GroupedTiered::Minimum, nil] + required :minimum, -> { Orb::Price::GroupedTiered::Minimum }, nil?: true # @!attribute minimum_amount # @@ -4252,37 +4227,37 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedTiered::PriceType] - required :price_type, enum: -> { Orb::Models::Price::GroupedTiered::PriceType } + # @return [Symbol, Orb::Price::GroupedTiered::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedTiered::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::GroupedTiered::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration }, + -> { Orb::Price::GroupedTiered::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTiered} for more details. + # {Orb::Price::GroupedTiered} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::GroupedTiered::BillableMetric, nil] + # @param billable_metric [Orb::Price::GroupedTiered::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::GroupedTiered::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::GroupedTiered::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedTiered::Cadence] + # @param cadence [Symbol, Orb::Price::GroupedTiered::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::GroupedTiered::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::GroupedTiered::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # @@ -4290,18 +4265,17 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param grouped_tiered_config [Hash{Symbol=>Object}] # - # @param invoicing_cycle_configuration [Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::GroupedTiered::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::GroupedTiered::Item] + # @param item [Orb::Price::GroupedTiered::Item] # - # @param maximum [Orb::Models::Price::GroupedTiered::Maximum, nil] + # @param maximum [Orb::Price::GroupedTiered::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::GroupedTiered::Minimum, nil] + # @param minimum [Orb::Price::GroupedTiered::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -4309,13 +4283,13 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedTiered::PriceType] + # @param price_type [Symbol, Orb::Price::GroupedTiered::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::GroupedTiered::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :grouped_tiered] - # @see Orb::Models::Price::GroupedTiered#billable_metric + # @see Orb::Price::GroupedTiered#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -4326,7 +4300,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::GroupedTiered#billing_cycle_configuration + # @see Orb::Price::GroupedTiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -4335,15 +4309,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedTiered::BillingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedTiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4355,7 +4331,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedTiered#cadence + # @see Orb::Price::GroupedTiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4370,7 +4346,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTiered#credit_allocation + # @see Orb::Price::GroupedTiered#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -4387,7 +4363,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::GroupedTiered#invoicing_cycle_configuration + # @see Orb::Price::GroupedTiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -4396,15 +4372,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedTiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4416,7 +4394,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedTiered#item + # @see Orb::Price::GroupedTiered#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -4433,7 +4411,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::GroupedTiered#maximum + # @see Orb::Price::GroupedTiered#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -4450,15 +4428,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTiered::Maximum} for more details. + # {Orb::Price::GroupedTiered::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::GroupedTiered#minimum + # @see Orb::Price::GroupedTiered#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -4475,15 +4452,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTiered::Minimum} for more details. + # {Orb::Price::GroupedTiered::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::GroupedTiered#price_type + # @see Orb::Price::GroupedTiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4494,7 +4470,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::GroupedTiered#dimensional_price_configuration + # @see Orb::Price::GroupedTiered#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -4520,19 +4496,18 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::TieredWithMinimum::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::TieredWithMinimum::BillableMetric }, nil?: true + # @return [Orb::Price::TieredWithMinimum::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::TieredWithMinimum::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration } + # @return [Orb::Price::TieredWithMinimum::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::TieredWithMinimum::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::Price::TieredWithMinimum::Cadence } + # @return [Symbol, Orb::Price::TieredWithMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::TieredWithMinimum::Cadence } # @!attribute conversion_rate # @@ -4546,8 +4521,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::TieredWithMinimum::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::TieredWithMinimum::CreditAllocation }, nil?: true + # @return [Orb::Price::TieredWithMinimum::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::TieredWithMinimum::CreditAllocation }, nil?: true # @!attribute currency # @@ -4556,8 +4531,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -4571,20 +4546,20 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::TieredWithMinimum::Item] - required :item, -> { Orb::Models::Price::TieredWithMinimum::Item } + # @return [Orb::Price::TieredWithMinimum::Item] + required :item, -> { Orb::Price::TieredWithMinimum::Item } # @!attribute maximum # - # @return [Orb::Models::Price::TieredWithMinimum::Maximum, nil] - required :maximum, -> { Orb::Models::Price::TieredWithMinimum::Maximum }, nil?: true + # @return [Orb::Price::TieredWithMinimum::Maximum, nil] + required :maximum, -> { Orb::Price::TieredWithMinimum::Maximum }, nil?: true # @!attribute maximum_amount # @@ -4602,8 +4577,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::TieredWithMinimum::Minimum, nil] - required :minimum, -> { Orb::Models::Price::TieredWithMinimum::Minimum }, nil?: true + # @return [Orb::Price::TieredWithMinimum::Minimum, nil] + required :minimum, -> { Orb::Price::TieredWithMinimum::Minimum }, nil?: true # @!attribute minimum_amount # @@ -4627,8 +4602,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] - required :price_type, enum: -> { Orb::Models::Price::TieredWithMinimum::PriceType } + # @return [Symbol, Orb::Price::TieredWithMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::TieredWithMinimum::PriceType } # @!attribute tiered_with_minimum_config # @@ -4637,49 +4612,48 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration }, + -> { Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithMinimum} for more details. + # {Orb::Price::TieredWithMinimum} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::TieredWithMinimum::BillableMetric, nil] + # @param billable_metric [Orb::Price::TieredWithMinimum::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::TieredWithMinimum::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] + # @param cadence [Symbol, Orb::Price::TieredWithMinimum::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::TieredWithMinimum::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::TieredWithMinimum::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::TieredWithMinimum::Item] + # @param item [Orb::Price::TieredWithMinimum::Item] # - # @param maximum [Orb::Models::Price::TieredWithMinimum::Maximum, nil] + # @param maximum [Orb::Price::TieredWithMinimum::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::TieredWithMinimum::Minimum, nil] + # @param minimum [Orb::Price::TieredWithMinimum::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -4687,15 +4661,15 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] + # @param price_type [Symbol, Orb::Price::TieredWithMinimum::PriceType] # # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered_with_minimum] - # @see Orb::Models::Price::TieredWithMinimum#billable_metric + # @see Orb::Price::TieredWithMinimum#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -4706,7 +4680,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -4715,15 +4689,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4735,7 +4709,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredWithMinimum#cadence + # @see Orb::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4750,7 +4724,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredWithMinimum#credit_allocation + # @see Orb::Price::TieredWithMinimum#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -4767,7 +4741,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -4776,15 +4750,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4796,7 +4770,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredWithMinimum#item + # @see Orb::Price::TieredWithMinimum#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -4813,7 +4787,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::TieredWithMinimum#maximum + # @see Orb::Price::TieredWithMinimum#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -4830,15 +4804,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithMinimum::Maximum} for more details. + # {Orb::Price::TieredWithMinimum::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::TieredWithMinimum#minimum + # @see Orb::Price::TieredWithMinimum#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -4855,15 +4828,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithMinimum::Minimum} for more details. + # {Orb::Price::TieredWithMinimum::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::TieredWithMinimum#price_type + # @see Orb::Price::TieredWithMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4874,7 +4846,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::TieredWithMinimum#dimensional_price_configuration + # @see Orb::Price::TieredWithMinimum#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -4900,19 +4872,19 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::TieredPackageWithMinimum::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::TieredPackageWithMinimum::BillableMetric }, nil?: true + # @return [Orb::Price::TieredPackageWithMinimum::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::TieredPackageWithMinimum::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration] + # @return [Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration } + -> { Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::Price::TieredPackageWithMinimum::Cadence } + # @return [Symbol, Orb::Price::TieredPackageWithMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::TieredPackageWithMinimum::Cadence } # @!attribute conversion_rate # @@ -4926,10 +4898,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation, nil] - required :credit_allocation, - -> { Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation }, - nil?: true + # @return [Orb::Price::TieredPackageWithMinimum::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::TieredPackageWithMinimum::CreditAllocation }, nil?: true # @!attribute currency # @@ -4938,8 +4908,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -4953,20 +4923,20 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration }, + -> { Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::TieredPackageWithMinimum::Item] - required :item, -> { Orb::Models::Price::TieredPackageWithMinimum::Item } + # @return [Orb::Price::TieredPackageWithMinimum::Item] + required :item, -> { Orb::Price::TieredPackageWithMinimum::Item } # @!attribute maximum # - # @return [Orb::Models::Price::TieredPackageWithMinimum::Maximum, nil] - required :maximum, -> { Orb::Models::Price::TieredPackageWithMinimum::Maximum }, nil?: true + # @return [Orb::Price::TieredPackageWithMinimum::Maximum, nil] + required :maximum, -> { Orb::Price::TieredPackageWithMinimum::Maximum }, nil?: true # @!attribute maximum_amount # @@ -4984,8 +4954,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::TieredPackageWithMinimum::Minimum, nil] - required :minimum, -> { Orb::Models::Price::TieredPackageWithMinimum::Minimum }, nil?: true + # @return [Orb::Price::TieredPackageWithMinimum::Minimum, nil] + required :minimum, -> { Orb::Price::TieredPackageWithMinimum::Minimum }, nil?: true # @!attribute minimum_amount # @@ -5009,8 +4979,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::PriceType] - required :price_type, enum: -> { Orb::Models::Price::TieredPackageWithMinimum::PriceType } + # @return [Symbol, Orb::Price::TieredPackageWithMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::TieredPackageWithMinimum::PriceType } # @!attribute tiered_package_with_minimum_config # @@ -5020,49 +4990,48 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration }, + -> { Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackageWithMinimum} for more details. + # {Orb::Price::TieredPackageWithMinimum} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::TieredPackageWithMinimum::BillableMetric, nil] + # @param billable_metric [Orb::Price::TieredPackageWithMinimum::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] + # @param cadence [Symbol, Orb::Price::TieredPackageWithMinimum::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::TieredPackageWithMinimum::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::TieredPackageWithMinimum::Item] + # @param item [Orb::Price::TieredPackageWithMinimum::Item] # - # @param maximum [Orb::Models::Price::TieredPackageWithMinimum::Maximum, nil] + # @param maximum [Orb::Price::TieredPackageWithMinimum::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::TieredPackageWithMinimum::Minimum, nil] + # @param minimum [Orb::Price::TieredPackageWithMinimum::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -5070,15 +5039,15 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredPackageWithMinimum::PriceType] + # @param price_type [Symbol, Orb::Price::TieredPackageWithMinimum::PriceType] # # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered_package_with_minimum] - # @see Orb::Models::Price::TieredPackageWithMinimum#billable_metric + # @see Orb::Price::TieredPackageWithMinimum#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5089,7 +5058,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::TieredPackageWithMinimum#billing_cycle_configuration + # @see Orb::Price::TieredPackageWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5098,15 +5067,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5118,7 +5087,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredPackageWithMinimum#cadence + # @see Orb::Price::TieredPackageWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5133,7 +5102,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredPackageWithMinimum#credit_allocation + # @see Orb::Price::TieredPackageWithMinimum#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -5150,7 +5119,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::TieredPackageWithMinimum#invoicing_cycle_configuration + # @see Orb::Price::TieredPackageWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5159,15 +5128,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5179,7 +5150,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredPackageWithMinimum#item + # @see Orb::Price::TieredPackageWithMinimum#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5196,7 +5167,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::TieredPackageWithMinimum#maximum + # @see Orb::Price::TieredPackageWithMinimum#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -5213,15 +5184,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackageWithMinimum::Maximum} for more details. + # {Orb::Price::TieredPackageWithMinimum::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::TieredPackageWithMinimum#minimum + # @see Orb::Price::TieredPackageWithMinimum#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -5238,15 +5208,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredPackageWithMinimum::Minimum} for more details. + # {Orb::Price::TieredPackageWithMinimum::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::TieredPackageWithMinimum#price_type + # @see Orb::Price::TieredPackageWithMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5257,7 +5226,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::TieredPackageWithMinimum#dimensional_price_configuration + # @see Orb::Price::TieredPackageWithMinimum#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -5283,19 +5252,21 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::PackageWithAllocation::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::PackageWithAllocation::BillableMetric }, nil?: true + # @return [Orb::Price::PackageWithAllocation::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::PackageWithAllocation::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration] + # @return [Orb::Price::PackageWithAllocation::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration } + -> { + Orb::Price::PackageWithAllocation::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] - required :cadence, enum: -> { Orb::Models::Price::PackageWithAllocation::Cadence } + # @return [Symbol, Orb::Price::PackageWithAllocation::Cadence] + required :cadence, enum: -> { Orb::Price::PackageWithAllocation::Cadence } # @!attribute conversion_rate # @@ -5309,10 +5280,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::PackageWithAllocation::CreditAllocation, nil] - required :credit_allocation, - -> { Orb::Models::Price::PackageWithAllocation::CreditAllocation }, - nil?: true + # @return [Orb::Price::PackageWithAllocation::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::PackageWithAllocation::CreditAllocation }, nil?: true # @!attribute currency # @@ -5321,8 +5290,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -5336,20 +5305,20 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::PackageWithAllocation::Item] - required :item, -> { Orb::Models::Price::PackageWithAllocation::Item } + # @return [Orb::Price::PackageWithAllocation::Item] + required :item, -> { Orb::Price::PackageWithAllocation::Item } # @!attribute maximum # - # @return [Orb::Models::Price::PackageWithAllocation::Maximum, nil] - required :maximum, -> { Orb::Models::Price::PackageWithAllocation::Maximum }, nil?: true + # @return [Orb::Price::PackageWithAllocation::Maximum, nil] + required :maximum, -> { Orb::Price::PackageWithAllocation::Maximum }, nil?: true # @!attribute maximum_amount # @@ -5367,8 +5336,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::PackageWithAllocation::Minimum, nil] - required :minimum, -> { Orb::Models::Price::PackageWithAllocation::Minimum }, nil?: true + # @return [Orb::Price::PackageWithAllocation::Minimum, nil] + required :minimum, -> { Orb::Price::PackageWithAllocation::Minimum }, nil?: true # @!attribute minimum_amount # @@ -5397,54 +5366,53 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::PackageWithAllocation::PriceType] - required :price_type, enum: -> { Orb::Models::Price::PackageWithAllocation::PriceType } + # @return [Symbol, Orb::Price::PackageWithAllocation::PriceType] + required :price_type, enum: -> { Orb::Price::PackageWithAllocation::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration }, + -> { Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_with_allocation_config:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::PackageWithAllocation} for more details. + # {Orb::Price::PackageWithAllocation} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::PackageWithAllocation::BillableMetric, nil] + # @param billable_metric [Orb::Price::PackageWithAllocation::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::PackageWithAllocation::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] + # @param cadence [Symbol, Orb::Price::PackageWithAllocation::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::PackageWithAllocation::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::PackageWithAllocation::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::PackageWithAllocation::Item] + # @param item [Orb::Price::PackageWithAllocation::Item] # - # @param maximum [Orb::Models::Price::PackageWithAllocation::Maximum, nil] + # @param maximum [Orb::Price::PackageWithAllocation::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::PackageWithAllocation::Minimum, nil] + # @param minimum [Orb::Price::PackageWithAllocation::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -5454,13 +5422,13 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::PackageWithAllocation::PriceType] + # @param price_type [Symbol, Orb::Price::PackageWithAllocation::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :package_with_allocation] - # @see Orb::Models::Price::PackageWithAllocation#billable_metric + # @see Orb::Price::PackageWithAllocation#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5471,7 +5439,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5480,15 +5448,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5500,7 +5468,7 @@ module DurationUnit end end - # @see Orb::Models::Price::PackageWithAllocation#cadence + # @see Orb::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5515,7 +5483,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::PackageWithAllocation#credit_allocation + # @see Orb::Price::PackageWithAllocation#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -5532,7 +5500,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5541,15 +5509,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5561,7 +5529,7 @@ module DurationUnit end end - # @see Orb::Models::Price::PackageWithAllocation#item + # @see Orb::Price::PackageWithAllocation#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5578,7 +5546,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::PackageWithAllocation#maximum + # @see Orb::Price::PackageWithAllocation#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -5595,15 +5563,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::PackageWithAllocation::Maximum} for more details. + # {Orb::Price::PackageWithAllocation::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::PackageWithAllocation#minimum + # @see Orb::Price::PackageWithAllocation#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -5620,15 +5587,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::PackageWithAllocation::Minimum} for more details. + # {Orb::Price::PackageWithAllocation::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::PackageWithAllocation#price_type + # @see Orb::Price::PackageWithAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5639,7 +5605,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::PackageWithAllocation#dimensional_price_configuration + # @see Orb::Price::PackageWithAllocation#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -5665,19 +5631,18 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::UnitWithPercent::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::UnitWithPercent::BillableMetric }, nil?: true + # @return [Orb::Price::UnitWithPercent::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::UnitWithPercent::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration } + # @return [Orb::Price::UnitWithPercent::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::UnitWithPercent::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] - required :cadence, enum: -> { Orb::Models::Price::UnitWithPercent::Cadence } + # @return [Symbol, Orb::Price::UnitWithPercent::Cadence] + required :cadence, enum: -> { Orb::Price::UnitWithPercent::Cadence } # @!attribute conversion_rate # @@ -5691,8 +5656,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::UnitWithPercent::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::UnitWithPercent::CreditAllocation }, nil?: true + # @return [Orb::Price::UnitWithPercent::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::UnitWithPercent::CreditAllocation }, nil?: true # @!attribute currency # @@ -5701,8 +5666,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -5716,20 +5681,20 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { Orb::Price::UnitWithPercent::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::UnitWithPercent::Item] - required :item, -> { Orb::Models::Price::UnitWithPercent::Item } + # @return [Orb::Price::UnitWithPercent::Item] + required :item, -> { Orb::Price::UnitWithPercent::Item } # @!attribute maximum # - # @return [Orb::Models::Price::UnitWithPercent::Maximum, nil] - required :maximum, -> { Orb::Models::Price::UnitWithPercent::Maximum }, nil?: true + # @return [Orb::Price::UnitWithPercent::Maximum, nil] + required :maximum, -> { Orb::Price::UnitWithPercent::Maximum }, nil?: true # @!attribute maximum_amount # @@ -5747,8 +5712,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::UnitWithPercent::Minimum, nil] - required :minimum, -> { Orb::Models::Price::UnitWithPercent::Minimum }, nil?: true + # @return [Orb::Price::UnitWithPercent::Minimum, nil] + required :minimum, -> { Orb::Price::UnitWithPercent::Minimum }, nil?: true # @!attribute minimum_amount # @@ -5772,8 +5737,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::UnitWithPercent::PriceType] - required :price_type, enum: -> { Orb::Models::Price::UnitWithPercent::PriceType } + # @return [Symbol, Orb::Price::UnitWithPercent::PriceType] + required :price_type, enum: -> { Orb::Price::UnitWithPercent::PriceType } # @!attribute unit_with_percent_config # @@ -5782,49 +5747,48 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::UnitWithPercent::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration }, + -> { Orb::Price::UnitWithPercent::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithPercent} for more details. + # {Orb::Price::UnitWithPercent} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::UnitWithPercent::BillableMetric, nil] + # @param billable_metric [Orb::Price::UnitWithPercent::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::UnitWithPercent::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] + # @param cadence [Symbol, Orb::Price::UnitWithPercent::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::UnitWithPercent::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::UnitWithPercent::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::UnitWithPercent::Item] + # @param item [Orb::Price::UnitWithPercent::Item] # - # @param maximum [Orb::Models::Price::UnitWithPercent::Maximum, nil] + # @param maximum [Orb::Price::UnitWithPercent::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::UnitWithPercent::Minimum, nil] + # @param minimum [Orb::Price::UnitWithPercent::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -5832,15 +5796,15 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::UnitWithPercent::PriceType] + # @param price_type [Symbol, Orb::Price::UnitWithPercent::PriceType] # # @param unit_with_percent_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::UnitWithPercent::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :unit_with_percent] - # @see Orb::Models::Price::UnitWithPercent#billable_metric + # @see Orb::Price::UnitWithPercent#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5851,7 +5815,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5860,15 +5824,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5880,7 +5846,7 @@ module DurationUnit end end - # @see Orb::Models::Price::UnitWithPercent#cadence + # @see Orb::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5895,7 +5861,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::UnitWithPercent#credit_allocation + # @see Orb::Price::UnitWithPercent#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -5912,7 +5878,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -5921,15 +5887,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5941,7 +5907,7 @@ module DurationUnit end end - # @see Orb::Models::Price::UnitWithPercent#item + # @see Orb::Price::UnitWithPercent#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -5958,7 +5924,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::UnitWithPercent#maximum + # @see Orb::Price::UnitWithPercent#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -5975,15 +5941,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithPercent::Maximum} for more details. + # {Orb::Price::UnitWithPercent::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::UnitWithPercent#minimum + # @see Orb::Price::UnitWithPercent#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -6000,15 +5965,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithPercent::Minimum} for more details. + # {Orb::Price::UnitWithPercent::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::UnitWithPercent#price_type + # @see Orb::Price::UnitWithPercent#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6019,7 +5983,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::UnitWithPercent#dimensional_price_configuration + # @see Orb::Price::UnitWithPercent#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -6045,19 +6009,21 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::MatrixWithAllocation::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::MatrixWithAllocation::BillableMetric }, nil?: true + # @return [Orb::Price::MatrixWithAllocation::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::MatrixWithAllocation::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration] + # @return [Orb::Price::MatrixWithAllocation::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration } + -> { + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] - required :cadence, enum: -> { Orb::Models::Price::MatrixWithAllocation::Cadence } + # @return [Symbol, Orb::Price::MatrixWithAllocation::Cadence] + required :cadence, enum: -> { Orb::Price::MatrixWithAllocation::Cadence } # @!attribute conversion_rate # @@ -6071,8 +6037,8 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::MatrixWithAllocation::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::MatrixWithAllocation::CreditAllocation }, nil?: true + # @return [Orb::Price::MatrixWithAllocation::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::MatrixWithAllocation::CreditAllocation }, nil?: true # @!attribute currency # @@ -6081,8 +6047,8 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -6096,26 +6062,26 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration }, + -> { Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::MatrixWithAllocation::Item] - required :item, -> { Orb::Models::Price::MatrixWithAllocation::Item } + # @return [Orb::Price::MatrixWithAllocation::Item] + required :item, -> { Orb::Price::MatrixWithAllocation::Item } # @!attribute matrix_with_allocation_config # - # @return [Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig] + # @return [Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig] required :matrix_with_allocation_config, - -> { Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig } + -> { Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig } # @!attribute maximum # - # @return [Orb::Models::Price::MatrixWithAllocation::Maximum, nil] - required :maximum, -> { Orb::Models::Price::MatrixWithAllocation::Maximum }, nil?: true + # @return [Orb::Price::MatrixWithAllocation::Maximum, nil] + required :maximum, -> { Orb::Price::MatrixWithAllocation::Maximum }, nil?: true # @!attribute maximum_amount # @@ -6133,8 +6099,8 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::MatrixWithAllocation::Minimum, nil] - required :minimum, -> { Orb::Models::Price::MatrixWithAllocation::Minimum }, nil?: true + # @return [Orb::Price::MatrixWithAllocation::Minimum, nil] + required :minimum, -> { Orb::Price::MatrixWithAllocation::Minimum }, nil?: true # @!attribute minimum_amount # @@ -6158,56 +6124,55 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::PriceType] - required :price_type, enum: -> { Orb::Models::Price::MatrixWithAllocation::PriceType } + # @return [Symbol, Orb::Price::MatrixWithAllocation::PriceType] + required :price_type, enum: -> { Orb::Price::MatrixWithAllocation::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration }, + -> { Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_allocation_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithAllocation} for more details. + # {Orb::Price::MatrixWithAllocation} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::MatrixWithAllocation::BillableMetric, nil] + # @param billable_metric [Orb::Price::MatrixWithAllocation::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::MatrixWithAllocation::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] + # @param cadence [Symbol, Orb::Price::MatrixWithAllocation::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::MatrixWithAllocation::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::MatrixWithAllocation::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::MatrixWithAllocation::Item] + # @param item [Orb::Price::MatrixWithAllocation::Item] # - # @param matrix_with_allocation_config [Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig] # - # @param maximum [Orb::Models::Price::MatrixWithAllocation::Maximum, nil] + # @param maximum [Orb::Price::MatrixWithAllocation::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::MatrixWithAllocation::Minimum, nil] + # @param minimum [Orb::Price::MatrixWithAllocation::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -6215,13 +6180,13 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::MatrixWithAllocation::PriceType] + # @param price_type [Symbol, Orb::Price::MatrixWithAllocation::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :matrix_with_allocation] - # @see Orb::Models::Price::MatrixWithAllocation#billable_metric + # @see Orb::Price::MatrixWithAllocation#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -6232,7 +6197,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::MatrixWithAllocation#billing_cycle_configuration + # @see Orb::Price::MatrixWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -6241,15 +6206,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::Price::MatrixWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6261,7 +6226,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MatrixWithAllocation#cadence + # @see Orb::Price::MatrixWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6276,7 +6241,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MatrixWithAllocation#credit_allocation + # @see Orb::Price::MatrixWithAllocation#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -6293,7 +6258,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::MatrixWithAllocation#invoicing_cycle_configuration + # @see Orb::Price::MatrixWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -6302,15 +6267,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6322,7 +6287,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MatrixWithAllocation#item + # @see Orb::Price::MatrixWithAllocation#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -6339,7 +6304,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::MatrixWithAllocation#matrix_with_allocation_config + # @see Orb::Price::MatrixWithAllocation#matrix_with_allocation_config class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute allocation # Allocation to be used to calculate the price @@ -6362,9 +6327,11 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + } # @!method initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) # @param allocation [Float] Allocation to be used to calculate the price @@ -6373,7 +6340,7 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -6392,17 +6359,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue} - # for more details. + # {Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue} for + # more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::Price::MatrixWithAllocation#maximum + # @see Orb::Price::MatrixWithAllocation#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -6419,15 +6385,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithAllocation::Maximum} for more details. + # {Orb::Price::MatrixWithAllocation::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::MatrixWithAllocation#minimum + # @see Orb::Price::MatrixWithAllocation#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -6444,15 +6409,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithAllocation::Minimum} for more details. + # {Orb::Price::MatrixWithAllocation::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::MatrixWithAllocation#price_type + # @see Orb::Price::MatrixWithAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6463,7 +6427,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::MatrixWithAllocation#dimensional_price_configuration + # @see Orb::Price::MatrixWithAllocation#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -6489,19 +6453,21 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::TieredWithProration::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::TieredWithProration::BillableMetric }, nil?: true + # @return [Orb::Price::TieredWithProration::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::TieredWithProration::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::TieredWithProration::BillingCycleConfiguration] + # @return [Orb::Price::TieredWithProration::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::TieredWithProration::BillingCycleConfiguration } + -> { + Orb::Price::TieredWithProration::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::Price::TieredWithProration::Cadence } + # @return [Symbol, Orb::Price::TieredWithProration::Cadence] + required :cadence, enum: -> { Orb::Price::TieredWithProration::Cadence } # @!attribute conversion_rate # @@ -6515,8 +6481,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::TieredWithProration::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::TieredWithProration::CreditAllocation }, nil?: true + # @return [Orb::Price::TieredWithProration::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::TieredWithProration::CreditAllocation }, nil?: true # @!attribute currency # @@ -6525,8 +6491,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -6540,20 +6506,20 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::TieredWithProration::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { Orb::Price::TieredWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::TieredWithProration::Item] - required :item, -> { Orb::Models::Price::TieredWithProration::Item } + # @return [Orb::Price::TieredWithProration::Item] + required :item, -> { Orb::Price::TieredWithProration::Item } # @!attribute maximum # - # @return [Orb::Models::Price::TieredWithProration::Maximum, nil] - required :maximum, -> { Orb::Models::Price::TieredWithProration::Maximum }, nil?: true + # @return [Orb::Price::TieredWithProration::Maximum, nil] + required :maximum, -> { Orb::Price::TieredWithProration::Maximum }, nil?: true # @!attribute maximum_amount # @@ -6571,8 +6537,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::TieredWithProration::Minimum, nil] - required :minimum, -> { Orb::Models::Price::TieredWithProration::Minimum }, nil?: true + # @return [Orb::Price::TieredWithProration::Minimum, nil] + required :minimum, -> { Orb::Price::TieredWithProration::Minimum }, nil?: true # @!attribute minimum_amount # @@ -6596,8 +6562,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredWithProration::PriceType] - required :price_type, enum: -> { Orb::Models::Price::TieredWithProration::PriceType } + # @return [Symbol, Orb::Price::TieredWithProration::PriceType] + required :price_type, enum: -> { Orb::Price::TieredWithProration::PriceType } # @!attribute tiered_with_proration_config # @@ -6606,49 +6572,48 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::TieredWithProration::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration }, + -> { Orb::Price::TieredWithProration::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithProration} for more details. + # {Orb::Price::TieredWithProration} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::TieredWithProration::BillableMetric, nil] + # @param billable_metric [Orb::Price::TieredWithProration::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::TieredWithProration::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::TieredWithProration::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredWithProration::Cadence] + # @param cadence [Symbol, Orb::Price::TieredWithProration::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::TieredWithProration::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::TieredWithProration::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::TieredWithProration::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::TieredWithProration::Item] + # @param item [Orb::Price::TieredWithProration::Item] # - # @param maximum [Orb::Models::Price::TieredWithProration::Maximum, nil] + # @param maximum [Orb::Price::TieredWithProration::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::TieredWithProration::Minimum, nil] + # @param minimum [Orb::Price::TieredWithProration::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -6656,15 +6621,15 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredWithProration::PriceType] + # @param price_type [Symbol, Orb::Price::TieredWithProration::PriceType] # # @param tiered_with_proration_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::TieredWithProration::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :tiered_with_proration] - # @see Orb::Models::Price::TieredWithProration#billable_metric + # @see Orb::Price::TieredWithProration#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -6675,7 +6640,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -6684,15 +6649,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6704,7 +6669,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredWithProration#cadence + # @see Orb::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6719,7 +6684,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredWithProration#credit_allocation + # @see Orb::Price::TieredWithProration#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -6736,7 +6701,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -6745,15 +6710,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6765,7 +6730,7 @@ module DurationUnit end end - # @see Orb::Models::Price::TieredWithProration#item + # @see Orb::Price::TieredWithProration#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -6782,7 +6747,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::TieredWithProration#maximum + # @see Orb::Price::TieredWithProration#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -6799,15 +6764,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithProration::Maximum} for more details. + # {Orb::Price::TieredWithProration::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::TieredWithProration#minimum + # @see Orb::Price::TieredWithProration#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -6824,15 +6788,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithProration::Minimum} for more details. + # {Orb::Price::TieredWithProration::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::TieredWithProration#price_type + # @see Orb::Price::TieredWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6843,7 +6806,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::TieredWithProration#dimensional_price_configuration + # @see Orb::Price::TieredWithProration#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -6869,19 +6832,18 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::UnitWithProration::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::UnitWithProration::BillableMetric }, nil?: true + # @return [Orb::Price::UnitWithProration::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::UnitWithProration::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::UnitWithProration::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { Orb::Models::Price::UnitWithProration::BillingCycleConfiguration } + # @return [Orb::Price::UnitWithProration::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::UnitWithProration::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::UnitWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::Price::UnitWithProration::Cadence } + # @return [Symbol, Orb::Price::UnitWithProration::Cadence] + required :cadence, enum: -> { Orb::Price::UnitWithProration::Cadence } # @!attribute conversion_rate # @@ -6895,8 +6857,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::UnitWithProration::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::UnitWithProration::CreditAllocation }, nil?: true + # @return [Orb::Price::UnitWithProration::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::UnitWithProration::CreditAllocation }, nil?: true # @!attribute currency # @@ -6905,8 +6867,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -6920,20 +6882,20 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::UnitWithProration::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { Orb::Price::UnitWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::UnitWithProration::Item] - required :item, -> { Orb::Models::Price::UnitWithProration::Item } + # @return [Orb::Price::UnitWithProration::Item] + required :item, -> { Orb::Price::UnitWithProration::Item } # @!attribute maximum # - # @return [Orb::Models::Price::UnitWithProration::Maximum, nil] - required :maximum, -> { Orb::Models::Price::UnitWithProration::Maximum }, nil?: true + # @return [Orb::Price::UnitWithProration::Maximum, nil] + required :maximum, -> { Orb::Price::UnitWithProration::Maximum }, nil?: true # @!attribute maximum_amount # @@ -6951,8 +6913,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::UnitWithProration::Minimum, nil] - required :minimum, -> { Orb::Models::Price::UnitWithProration::Minimum }, nil?: true + # @return [Orb::Price::UnitWithProration::Minimum, nil] + required :minimum, -> { Orb::Price::UnitWithProration::Minimum }, nil?: true # @!attribute minimum_amount # @@ -6976,8 +6938,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::UnitWithProration::PriceType] - required :price_type, enum: -> { Orb::Models::Price::UnitWithProration::PriceType } + # @return [Symbol, Orb::Price::UnitWithProration::PriceType] + required :price_type, enum: -> { Orb::Price::UnitWithProration::PriceType } # @!attribute unit_with_proration_config # @@ -6986,49 +6948,48 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::UnitWithProration::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration }, + -> { Orb::Price::UnitWithProration::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithProration} for more details. + # {Orb::Price::UnitWithProration} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::UnitWithProration::BillableMetric, nil] + # @param billable_metric [Orb::Price::UnitWithProration::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::UnitWithProration::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::UnitWithProration::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::UnitWithProration::Cadence] + # @param cadence [Symbol, Orb::Price::UnitWithProration::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::UnitWithProration::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::UnitWithProration::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::UnitWithProration::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::UnitWithProration::Item] + # @param item [Orb::Price::UnitWithProration::Item] # - # @param maximum [Orb::Models::Price::UnitWithProration::Maximum, nil] + # @param maximum [Orb::Price::UnitWithProration::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::UnitWithProration::Minimum, nil] + # @param minimum [Orb::Price::UnitWithProration::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -7036,15 +6997,15 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::UnitWithProration::PriceType] + # @param price_type [Symbol, Orb::Price::UnitWithProration::PriceType] # # @param unit_with_proration_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::UnitWithProration::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :unit_with_proration] - # @see Orb::Models::Price::UnitWithProration#billable_metric + # @see Orb::Price::UnitWithProration#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7055,7 +7016,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7064,15 +7025,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7084,7 +7045,7 @@ module DurationUnit end end - # @see Orb::Models::Price::UnitWithProration#cadence + # @see Orb::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7099,7 +7060,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::UnitWithProration#credit_allocation + # @see Orb::Price::UnitWithProration#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -7116,7 +7077,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7125,15 +7086,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7145,7 +7106,7 @@ module DurationUnit end end - # @see Orb::Models::Price::UnitWithProration#item + # @see Orb::Price::UnitWithProration#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7162,7 +7123,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::UnitWithProration#maximum + # @see Orb::Price::UnitWithProration#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -7179,15 +7140,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithProration::Maximum} for more details. + # {Orb::Price::UnitWithProration::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::UnitWithProration#minimum + # @see Orb::Price::UnitWithProration#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -7204,15 +7164,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::UnitWithProration::Minimum} for more details. + # {Orb::Price::UnitWithProration::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::UnitWithProration#price_type + # @see Orb::Price::UnitWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -7223,7 +7182,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::UnitWithProration#dimensional_price_configuration + # @see Orb::Price::UnitWithProration#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -7249,19 +7208,18 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::GroupedAllocation::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::GroupedAllocation::BillableMetric }, nil?: true + # @return [Orb::Price::GroupedAllocation::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::GroupedAllocation::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration } + # @return [Orb::Price::GroupedAllocation::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::GroupedAllocation::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] - required :cadence, enum: -> { Orb::Models::Price::GroupedAllocation::Cadence } + # @return [Symbol, Orb::Price::GroupedAllocation::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedAllocation::Cadence } # @!attribute conversion_rate # @@ -7275,8 +7233,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::GroupedAllocation::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::GroupedAllocation::CreditAllocation }, nil?: true + # @return [Orb::Price::GroupedAllocation::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::GroupedAllocation::CreditAllocation }, nil?: true # @!attribute currency # @@ -7285,8 +7243,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -7305,20 +7263,20 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { Orb::Price::GroupedAllocation::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::GroupedAllocation::Item] - required :item, -> { Orb::Models::Price::GroupedAllocation::Item } + # @return [Orb::Price::GroupedAllocation::Item] + required :item, -> { Orb::Price::GroupedAllocation::Item } # @!attribute maximum # - # @return [Orb::Models::Price::GroupedAllocation::Maximum, nil] - required :maximum, -> { Orb::Models::Price::GroupedAllocation::Maximum }, nil?: true + # @return [Orb::Price::GroupedAllocation::Maximum, nil] + required :maximum, -> { Orb::Price::GroupedAllocation::Maximum }, nil?: true # @!attribute maximum_amount # @@ -7336,8 +7294,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::GroupedAllocation::Minimum, nil] - required :minimum, -> { Orb::Models::Price::GroupedAllocation::Minimum }, nil?: true + # @return [Orb::Price::GroupedAllocation::Minimum, nil] + required :minimum, -> { Orb::Price::GroupedAllocation::Minimum }, nil?: true # @!attribute minimum_amount # @@ -7361,37 +7319,37 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedAllocation::PriceType] - required :price_type, enum: -> { Orb::Models::Price::GroupedAllocation::PriceType } + # @return [Symbol, Orb::Price::GroupedAllocation::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedAllocation::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::GroupedAllocation::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration }, + -> { Orb::Price::GroupedAllocation::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_allocation_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedAllocation} for more details. + # {Orb::Price::GroupedAllocation} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::GroupedAllocation::BillableMetric, nil] + # @param billable_metric [Orb::Price::GroupedAllocation::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::GroupedAllocation::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] + # @param cadence [Symbol, Orb::Price::GroupedAllocation::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::GroupedAllocation::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::GroupedAllocation::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # @@ -7399,18 +7357,17 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param grouped_allocation_config [Hash{Symbol=>Object}] # - # @param invoicing_cycle_configuration [Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::GroupedAllocation::Item] + # @param item [Orb::Price::GroupedAllocation::Item] # - # @param maximum [Orb::Models::Price::GroupedAllocation::Maximum, nil] + # @param maximum [Orb::Price::GroupedAllocation::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::GroupedAllocation::Minimum, nil] + # @param minimum [Orb::Price::GroupedAllocation::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -7418,13 +7375,13 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedAllocation::PriceType] + # @param price_type [Symbol, Orb::Price::GroupedAllocation::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::GroupedAllocation::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :grouped_allocation] - # @see Orb::Models::Price::GroupedAllocation#billable_metric + # @see Orb::Price::GroupedAllocation#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7435,7 +7392,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7444,15 +7401,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7464,7 +7421,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedAllocation#cadence + # @see Orb::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7479,7 +7436,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedAllocation#credit_allocation + # @see Orb::Price::GroupedAllocation#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -7496,7 +7453,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7505,15 +7462,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7525,7 +7482,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedAllocation#item + # @see Orb::Price::GroupedAllocation#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7542,7 +7499,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::GroupedAllocation#maximum + # @see Orb::Price::GroupedAllocation#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -7559,15 +7516,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedAllocation::Maximum} for more details. + # {Orb::Price::GroupedAllocation::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::GroupedAllocation#minimum + # @see Orb::Price::GroupedAllocation#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -7584,15 +7540,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedAllocation::Minimum} for more details. + # {Orb::Price::GroupedAllocation::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::GroupedAllocation#price_type + # @see Orb::Price::GroupedAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -7603,7 +7558,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::GroupedAllocation#dimensional_price_configuration + # @see Orb::Price::GroupedAllocation#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -7629,21 +7584,19 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric, nil] - required :billable_metric, - -> { Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric }, - nil?: true + # @return [Orb::Price::GroupedWithProratedMinimum::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::GroupedWithProratedMinimum::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration] + # @return [Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration } + -> { Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::Price::GroupedWithProratedMinimum::Cadence } + # @return [Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedWithProratedMinimum::Cadence } # @!attribute conversion_rate # @@ -7657,9 +7610,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation, nil] + # @return [Orb::Price::GroupedWithProratedMinimum::CreditAllocation, nil] required :credit_allocation, - -> { Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation }, + -> { + Orb::Price::GroupedWithProratedMinimum::CreditAllocation + }, nil?: true # @!attribute currency @@ -7669,8 +7624,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -7690,20 +7645,20 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::Item] - required :item, -> { Orb::Models::Price::GroupedWithProratedMinimum::Item } + # @return [Orb::Price::GroupedWithProratedMinimum::Item] + required :item, -> { Orb::Price::GroupedWithProratedMinimum::Item } # @!attribute maximum # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::Maximum, nil] - required :maximum, -> { Orb::Models::Price::GroupedWithProratedMinimum::Maximum }, nil?: true + # @return [Orb::Price::GroupedWithProratedMinimum::Maximum, nil] + required :maximum, -> { Orb::Price::GroupedWithProratedMinimum::Maximum }, nil?: true # @!attribute maximum_amount # @@ -7721,8 +7676,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::Minimum, nil] - required :minimum, -> { Orb::Models::Price::GroupedWithProratedMinimum::Minimum }, nil?: true + # @return [Orb::Price::GroupedWithProratedMinimum::Minimum, nil] + required :minimum, -> { Orb::Price::GroupedWithProratedMinimum::Minimum }, nil?: true # @!attribute minimum_amount # @@ -7746,37 +7701,37 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] - required :price_type, enum: -> { Orb::Models::Price::GroupedWithProratedMinimum::PriceType } + # @return [Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedWithProratedMinimum::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration }, + -> { Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithProratedMinimum} for more details. + # {Orb::Price::GroupedWithProratedMinimum} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric, nil] + # @param billable_metric [Orb::Price::GroupedWithProratedMinimum::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] + # @param cadence [Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::GroupedWithProratedMinimum::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # @@ -7784,18 +7739,17 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # - # @param invoicing_cycle_configuration [Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::GroupedWithProratedMinimum::Item] + # @param item [Orb::Price::GroupedWithProratedMinimum::Item] # - # @param maximum [Orb::Models::Price::GroupedWithProratedMinimum::Maximum, nil] + # @param maximum [Orb::Price::GroupedWithProratedMinimum::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::GroupedWithProratedMinimum::Minimum, nil] + # @param minimum [Orb::Price::GroupedWithProratedMinimum::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -7803,13 +7757,13 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] + # @param price_type [Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :grouped_with_prorated_minimum] - # @see Orb::Models::Price::GroupedWithProratedMinimum#billable_metric + # @see Orb::Price::GroupedWithProratedMinimum#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7820,7 +7774,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7829,15 +7783,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7849,7 +7805,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedWithProratedMinimum#cadence + # @see Orb::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7864,7 +7820,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#credit_allocation + # @see Orb::Price::GroupedWithProratedMinimum#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -7881,7 +7837,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -7890,15 +7846,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7910,7 +7868,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedWithProratedMinimum#item + # @see Orb::Price::GroupedWithProratedMinimum#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -7927,7 +7885,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#maximum + # @see Orb::Price::GroupedWithProratedMinimum#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -7944,15 +7902,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithProratedMinimum::Maximum} for more details. + # {Orb::Price::GroupedWithProratedMinimum::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::GroupedWithProratedMinimum#minimum + # @see Orb::Price::GroupedWithProratedMinimum#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -7969,15 +7926,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithProratedMinimum::Minimum} for more details. + # {Orb::Price::GroupedWithProratedMinimum::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::GroupedWithProratedMinimum#price_type + # @see Orb::Price::GroupedWithProratedMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -7988,7 +7944,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#dimensional_price_configuration + # @see Orb::Price::GroupedWithProratedMinimum#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -8014,21 +7970,19 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric, nil] - required :billable_metric, - -> { Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric }, - nil?: true + # @return [Orb::Price::GroupedWithMeteredMinimum::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::GroupedWithMeteredMinimum::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration] + # @return [Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration } + -> { Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] - required :cadence, enum: -> { Orb::Models::Price::GroupedWithMeteredMinimum::Cadence } + # @return [Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedWithMeteredMinimum::Cadence } # @!attribute conversion_rate # @@ -8042,9 +7996,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation, nil] + # @return [Orb::Price::GroupedWithMeteredMinimum::CreditAllocation, nil] required :credit_allocation, - -> { Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation }, + -> { + Orb::Price::GroupedWithMeteredMinimum::CreditAllocation + }, nil?: true # @!attribute currency @@ -8054,8 +8010,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -8075,20 +8031,20 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::Item] - required :item, -> { Orb::Models::Price::GroupedWithMeteredMinimum::Item } + # @return [Orb::Price::GroupedWithMeteredMinimum::Item] + required :item, -> { Orb::Price::GroupedWithMeteredMinimum::Item } # @!attribute maximum # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::Maximum, nil] - required :maximum, -> { Orb::Models::Price::GroupedWithMeteredMinimum::Maximum }, nil?: true + # @return [Orb::Price::GroupedWithMeteredMinimum::Maximum, nil] + required :maximum, -> { Orb::Price::GroupedWithMeteredMinimum::Maximum }, nil?: true # @!attribute maximum_amount # @@ -8106,8 +8062,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::Minimum, nil] - required :minimum, -> { Orb::Models::Price::GroupedWithMeteredMinimum::Minimum }, nil?: true + # @return [Orb::Price::GroupedWithMeteredMinimum::Minimum, nil] + required :minimum, -> { Orb::Price::GroupedWithMeteredMinimum::Minimum }, nil?: true # @!attribute minimum_amount # @@ -8131,37 +8087,37 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] - required :price_type, enum: -> { Orb::Models::Price::GroupedWithMeteredMinimum::PriceType } + # @return [Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedWithMeteredMinimum::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration }, + -> { Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithMeteredMinimum} for more details. + # {Orb::Price::GroupedWithMeteredMinimum} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric, nil] + # @param billable_metric [Orb::Price::GroupedWithMeteredMinimum::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] + # @param cadence [Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::GroupedWithMeteredMinimum::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # @@ -8169,18 +8125,17 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # - # @param invoicing_cycle_configuration [Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::GroupedWithMeteredMinimum::Item] + # @param item [Orb::Price::GroupedWithMeteredMinimum::Item] # - # @param maximum [Orb::Models::Price::GroupedWithMeteredMinimum::Maximum, nil] + # @param maximum [Orb::Price::GroupedWithMeteredMinimum::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::GroupedWithMeteredMinimum::Minimum, nil] + # @param minimum [Orb::Price::GroupedWithMeteredMinimum::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -8188,13 +8143,13 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] + # @param price_type [Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :grouped_with_metered_minimum] - # @see Orb::Models::Price::GroupedWithMeteredMinimum#billable_metric + # @see Orb::Price::GroupedWithMeteredMinimum#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -8205,7 +8160,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -8214,15 +8169,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8234,7 +8189,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8249,7 +8204,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#credit_allocation + # @see Orb::Price::GroupedWithMeteredMinimum#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -8266,7 +8221,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -8275,15 +8230,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8295,7 +8252,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#item + # @see Orb::Price::GroupedWithMeteredMinimum#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -8312,7 +8269,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#maximum + # @see Orb::Price::GroupedWithMeteredMinimum#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -8329,15 +8286,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithMeteredMinimum::Maximum} for more details. + # {Orb::Price::GroupedWithMeteredMinimum::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#minimum + # @see Orb::Price::GroupedWithMeteredMinimum#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -8354,15 +8310,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithMeteredMinimum::Minimum} for more details. + # {Orb::Price::GroupedWithMeteredMinimum::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#price_type + # @see Orb::Price::GroupedWithMeteredMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -8373,7 +8328,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#dimensional_price_configuration + # @see Orb::Price::GroupedWithMeteredMinimum#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -8399,19 +8354,21 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::MatrixWithDisplayName::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::MatrixWithDisplayName::BillableMetric }, nil?: true + # @return [Orb::Price::MatrixWithDisplayName::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::MatrixWithDisplayName::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration] + # @return [Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration } + -> { + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] - required :cadence, enum: -> { Orb::Models::Price::MatrixWithDisplayName::Cadence } + # @return [Symbol, Orb::Price::MatrixWithDisplayName::Cadence] + required :cadence, enum: -> { Orb::Price::MatrixWithDisplayName::Cadence } # @!attribute conversion_rate # @@ -8425,10 +8382,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::MatrixWithDisplayName::CreditAllocation, nil] - required :credit_allocation, - -> { Orb::Models::Price::MatrixWithDisplayName::CreditAllocation }, - nil?: true + # @return [Orb::Price::MatrixWithDisplayName::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::MatrixWithDisplayName::CreditAllocation }, nil?: true # @!attribute currency # @@ -8437,8 +8392,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -8452,15 +8407,15 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::MatrixWithDisplayName::Item] - required :item, -> { Orb::Models::Price::MatrixWithDisplayName::Item } + # @return [Orb::Price::MatrixWithDisplayName::Item] + required :item, -> { Orb::Price::MatrixWithDisplayName::Item } # @!attribute matrix_with_display_name_config # @@ -8469,8 +8424,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute maximum # - # @return [Orb::Models::Price::MatrixWithDisplayName::Maximum, nil] - required :maximum, -> { Orb::Models::Price::MatrixWithDisplayName::Maximum }, nil?: true + # @return [Orb::Price::MatrixWithDisplayName::Maximum, nil] + required :maximum, -> { Orb::Price::MatrixWithDisplayName::Maximum }, nil?: true # @!attribute maximum_amount # @@ -8488,8 +8443,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::MatrixWithDisplayName::Minimum, nil] - required :minimum, -> { Orb::Models::Price::MatrixWithDisplayName::Minimum }, nil?: true + # @return [Orb::Price::MatrixWithDisplayName::Minimum, nil] + required :minimum, -> { Orb::Price::MatrixWithDisplayName::Minimum }, nil?: true # @!attribute minimum_amount # @@ -8513,56 +8468,55 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] - required :price_type, enum: -> { Orb::Models::Price::MatrixWithDisplayName::PriceType } + # @return [Symbol, Orb::Price::MatrixWithDisplayName::PriceType] + required :price_type, enum: -> { Orb::Price::MatrixWithDisplayName::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration }, + -> { Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithDisplayName} for more details. + # {Orb::Price::MatrixWithDisplayName} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::MatrixWithDisplayName::BillableMetric, nil] + # @param billable_metric [Orb::Price::MatrixWithDisplayName::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] + # @param cadence [Symbol, Orb::Price::MatrixWithDisplayName::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::MatrixWithDisplayName::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::MatrixWithDisplayName::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::MatrixWithDisplayName::Item] + # @param item [Orb::Price::MatrixWithDisplayName::Item] # # @param matrix_with_display_name_config [Hash{Symbol=>Object}] # - # @param maximum [Orb::Models::Price::MatrixWithDisplayName::Maximum, nil] + # @param maximum [Orb::Price::MatrixWithDisplayName::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::MatrixWithDisplayName::Minimum, nil] + # @param minimum [Orb::Price::MatrixWithDisplayName::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -8570,13 +8524,13 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] + # @param price_type [Symbol, Orb::Price::MatrixWithDisplayName::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :matrix_with_display_name] - # @see Orb::Models::Price::MatrixWithDisplayName#billable_metric + # @see Orb::Price::MatrixWithDisplayName#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -8587,7 +8541,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -8596,15 +8550,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8616,7 +8570,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MatrixWithDisplayName#cadence + # @see Orb::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8631,7 +8585,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MatrixWithDisplayName#credit_allocation + # @see Orb::Price::MatrixWithDisplayName#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -8648,7 +8602,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -8657,15 +8611,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8677,7 +8631,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MatrixWithDisplayName#item + # @see Orb::Price::MatrixWithDisplayName#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -8694,7 +8648,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::MatrixWithDisplayName#maximum + # @see Orb::Price::MatrixWithDisplayName#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -8711,15 +8665,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithDisplayName::Maximum} for more details. + # {Orb::Price::MatrixWithDisplayName::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::MatrixWithDisplayName#minimum + # @see Orb::Price::MatrixWithDisplayName#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -8736,15 +8689,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithDisplayName::Minimum} for more details. + # {Orb::Price::MatrixWithDisplayName::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::MatrixWithDisplayName#price_type + # @see Orb::Price::MatrixWithDisplayName#price_type module PriceType extend Orb::Internal::Type::Enum @@ -8755,7 +8707,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::MatrixWithDisplayName#dimensional_price_configuration + # @see Orb::Price::MatrixWithDisplayName#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -8781,14 +8733,13 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::BulkWithProration::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::BulkWithProration::BillableMetric }, nil?: true + # @return [Orb::Price::BulkWithProration::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::BulkWithProration::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::BulkWithProration::BillingCycleConfiguration] - required :billing_cycle_configuration, - -> { Orb::Models::Price::BulkWithProration::BillingCycleConfiguration } + # @return [Orb::Price::BulkWithProration::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::Price::BulkWithProration::BillingCycleConfiguration } # @!attribute bulk_with_proration_config # @@ -8797,8 +8748,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::BulkWithProration::Cadence] - required :cadence, enum: -> { Orb::Models::Price::BulkWithProration::Cadence } + # @return [Symbol, Orb::Price::BulkWithProration::Cadence] + required :cadence, enum: -> { Orb::Price::BulkWithProration::Cadence } # @!attribute conversion_rate # @@ -8812,8 +8763,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::BulkWithProration::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::BulkWithProration::CreditAllocation }, nil?: true + # @return [Orb::Price::BulkWithProration::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::BulkWithProration::CreditAllocation }, nil?: true # @!attribute currency # @@ -8822,8 +8773,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -8837,20 +8788,20 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::BulkWithProration::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { Orb::Price::BulkWithProration::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::BulkWithProration::Item] - required :item, -> { Orb::Models::Price::BulkWithProration::Item } + # @return [Orb::Price::BulkWithProration::Item] + required :item, -> { Orb::Price::BulkWithProration::Item } # @!attribute maximum # - # @return [Orb::Models::Price::BulkWithProration::Maximum, nil] - required :maximum, -> { Orb::Models::Price::BulkWithProration::Maximum }, nil?: true + # @return [Orb::Price::BulkWithProration::Maximum, nil] + required :maximum, -> { Orb::Price::BulkWithProration::Maximum }, nil?: true # @!attribute maximum_amount # @@ -8868,8 +8819,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::BulkWithProration::Minimum, nil] - required :minimum, -> { Orb::Models::Price::BulkWithProration::Minimum }, nil?: true + # @return [Orb::Price::BulkWithProration::Minimum, nil] + required :minimum, -> { Orb::Price::BulkWithProration::Minimum }, nil?: true # @!attribute minimum_amount # @@ -8893,56 +8844,55 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::BulkWithProration::PriceType] - required :price_type, enum: -> { Orb::Models::Price::BulkWithProration::PriceType } + # @return [Symbol, Orb::Price::BulkWithProration::PriceType] + required :price_type, enum: -> { Orb::Price::BulkWithProration::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::BulkWithProration::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration }, + -> { Orb::Price::BulkWithProration::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkWithProration} for more details. + # {Orb::Price::BulkWithProration} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::BulkWithProration::BillableMetric, nil] + # @param billable_metric [Orb::Price::BulkWithProration::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::BulkWithProration::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::BulkWithProration::BillingCycleConfiguration] # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::Price::BulkWithProration::Cadence] + # @param cadence [Symbol, Orb::Price::BulkWithProration::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::BulkWithProration::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::BulkWithProration::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::BulkWithProration::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::BulkWithProration::Item] + # @param item [Orb::Price::BulkWithProration::Item] # - # @param maximum [Orb::Models::Price::BulkWithProration::Maximum, nil] + # @param maximum [Orb::Price::BulkWithProration::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::BulkWithProration::Minimum, nil] + # @param minimum [Orb::Price::BulkWithProration::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -8950,13 +8900,13 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::BulkWithProration::PriceType] + # @param price_type [Symbol, Orb::Price::BulkWithProration::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::BulkWithProration::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :bulk_with_proration] - # @see Orb::Models::Price::BulkWithProration#billable_metric + # @see Orb::Price::BulkWithProration#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -8967,7 +8917,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -8976,15 +8926,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8996,7 +8946,7 @@ module DurationUnit end end - # @see Orb::Models::Price::BulkWithProration#cadence + # @see Orb::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9011,7 +8961,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkWithProration#credit_allocation + # @see Orb::Price::BulkWithProration#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -9028,7 +8978,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -9037,15 +8987,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9057,7 +9007,7 @@ module DurationUnit end end - # @see Orb::Models::Price::BulkWithProration#item + # @see Orb::Price::BulkWithProration#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -9074,7 +9024,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::BulkWithProration#maximum + # @see Orb::Price::BulkWithProration#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -9091,15 +9041,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkWithProration::Maximum} for more details. + # {Orb::Price::BulkWithProration::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::BulkWithProration#minimum + # @see Orb::Price::BulkWithProration#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -9116,15 +9065,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkWithProration::Minimum} for more details. + # {Orb::Price::BulkWithProration::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::BulkWithProration#price_type + # @see Orb::Price::BulkWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -9135,7 +9083,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::BulkWithProration#dimensional_price_configuration + # @see Orb::Price::BulkWithProration#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -9161,19 +9109,21 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::GroupedTieredPackage::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::GroupedTieredPackage::BillableMetric }, nil?: true + # @return [Orb::Price::GroupedTieredPackage::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::GroupedTieredPackage::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration] + # @return [Orb::Price::GroupedTieredPackage::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration } + -> { + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::Price::GroupedTieredPackage::Cadence } + # @return [Symbol, Orb::Price::GroupedTieredPackage::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedTieredPackage::Cadence } # @!attribute conversion_rate # @@ -9187,8 +9137,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::GroupedTieredPackage::CreditAllocation, nil] - required :credit_allocation, -> { Orb::Models::Price::GroupedTieredPackage::CreditAllocation }, nil?: true + # @return [Orb::Price::GroupedTieredPackage::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::GroupedTieredPackage::CreditAllocation }, nil?: true # @!attribute currency # @@ -9197,8 +9147,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -9217,20 +9167,20 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::GroupedTieredPackage::Item] - required :item, -> { Orb::Models::Price::GroupedTieredPackage::Item } + # @return [Orb::Price::GroupedTieredPackage::Item] + required :item, -> { Orb::Price::GroupedTieredPackage::Item } # @!attribute maximum # - # @return [Orb::Models::Price::GroupedTieredPackage::Maximum, nil] - required :maximum, -> { Orb::Models::Price::GroupedTieredPackage::Maximum }, nil?: true + # @return [Orb::Price::GroupedTieredPackage::Maximum, nil] + required :maximum, -> { Orb::Price::GroupedTieredPackage::Maximum }, nil?: true # @!attribute maximum_amount # @@ -9248,8 +9198,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::GroupedTieredPackage::Minimum, nil] - required :minimum, -> { Orb::Models::Price::GroupedTieredPackage::Minimum }, nil?: true + # @return [Orb::Price::GroupedTieredPackage::Minimum, nil] + required :minimum, -> { Orb::Price::GroupedTieredPackage::Minimum }, nil?: true # @!attribute minimum_amount # @@ -9273,37 +9223,37 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] - required :price_type, enum: -> { Orb::Models::Price::GroupedTieredPackage::PriceType } + # @return [Symbol, Orb::Price::GroupedTieredPackage::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedTieredPackage::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration }, + -> { Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTieredPackage} for more details. + # {Orb::Price::GroupedTieredPackage} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::GroupedTieredPackage::BillableMetric, nil] + # @param billable_metric [Orb::Price::GroupedTieredPackage::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::GroupedTieredPackage::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] + # @param cadence [Symbol, Orb::Price::GroupedTieredPackage::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::GroupedTieredPackage::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::GroupedTieredPackage::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # @@ -9311,18 +9261,17 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # - # @param invoicing_cycle_configuration [Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::GroupedTieredPackage::Item] + # @param item [Orb::Price::GroupedTieredPackage::Item] # - # @param maximum [Orb::Models::Price::GroupedTieredPackage::Maximum, nil] + # @param maximum [Orb::Price::GroupedTieredPackage::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::GroupedTieredPackage::Minimum, nil] + # @param minimum [Orb::Price::GroupedTieredPackage::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -9330,13 +9279,13 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] + # @param price_type [Symbol, Orb::Price::GroupedTieredPackage::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :grouped_tiered_package] - # @see Orb::Models::Price::GroupedTieredPackage#billable_metric + # @see Orb::Price::GroupedTieredPackage#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -9347,7 +9296,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -9356,15 +9305,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9376,7 +9325,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedTieredPackage#cadence + # @see Orb::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9391,7 +9340,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTieredPackage#credit_allocation + # @see Orb::Price::GroupedTieredPackage#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -9408,7 +9357,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -9417,15 +9366,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9437,7 +9386,7 @@ module DurationUnit end end - # @see Orb::Models::Price::GroupedTieredPackage#item + # @see Orb::Price::GroupedTieredPackage#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -9454,7 +9403,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::GroupedTieredPackage#maximum + # @see Orb::Price::GroupedTieredPackage#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -9471,15 +9420,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTieredPackage::Maximum} for more details. + # {Orb::Price::GroupedTieredPackage::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::GroupedTieredPackage#minimum + # @see Orb::Price::GroupedTieredPackage#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -9496,15 +9444,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTieredPackage::Minimum} for more details. + # {Orb::Price::GroupedTieredPackage::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::GroupedTieredPackage#price_type + # @see Orb::Price::GroupedTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -9515,7 +9462,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::GroupedTieredPackage#dimensional_price_configuration + # @see Orb::Price::GroupedTieredPackage#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -9541,19 +9488,21 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::MaxGroupTieredPackage::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::MaxGroupTieredPackage::BillableMetric }, nil?: true + # @return [Orb::Price::MaxGroupTieredPackage::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::MaxGroupTieredPackage::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration] + # @return [Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration } + -> { + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Models::Price::MaxGroupTieredPackage::Cadence } + # @return [Symbol, Orb::Price::MaxGroupTieredPackage::Cadence] + required :cadence, enum: -> { Orb::Price::MaxGroupTieredPackage::Cadence } # @!attribute conversion_rate # @@ -9567,10 +9516,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation, nil] - required :credit_allocation, - -> { Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation }, - nil?: true + # @return [Orb::Price::MaxGroupTieredPackage::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::MaxGroupTieredPackage::CreditAllocation }, nil?: true # @!attribute currency # @@ -9579,8 +9526,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -9594,15 +9541,15 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::MaxGroupTieredPackage::Item] - required :item, -> { Orb::Models::Price::MaxGroupTieredPackage::Item } + # @return [Orb::Price::MaxGroupTieredPackage::Item] + required :item, -> { Orb::Price::MaxGroupTieredPackage::Item } # @!attribute max_group_tiered_package_config # @@ -9611,8 +9558,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute maximum # - # @return [Orb::Models::Price::MaxGroupTieredPackage::Maximum, nil] - required :maximum, -> { Orb::Models::Price::MaxGroupTieredPackage::Maximum }, nil?: true + # @return [Orb::Price::MaxGroupTieredPackage::Maximum, nil] + required :maximum, -> { Orb::Price::MaxGroupTieredPackage::Maximum }, nil?: true # @!attribute maximum_amount # @@ -9630,8 +9577,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::MaxGroupTieredPackage::Minimum, nil] - required :minimum, -> { Orb::Models::Price::MaxGroupTieredPackage::Minimum }, nil?: true + # @return [Orb::Price::MaxGroupTieredPackage::Minimum, nil] + required :minimum, -> { Orb::Price::MaxGroupTieredPackage::Minimum }, nil?: true # @!attribute minimum_amount # @@ -9655,56 +9602,55 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] - required :price_type, enum: -> { Orb::Models::Price::MaxGroupTieredPackage::PriceType } + # @return [Symbol, Orb::Price::MaxGroupTieredPackage::PriceType] + required :price_type, enum: -> { Orb::Price::MaxGroupTieredPackage::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration }, + -> { Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MaxGroupTieredPackage} for more details. + # {Orb::Price::MaxGroupTieredPackage} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::MaxGroupTieredPackage::BillableMetric, nil] + # @param billable_metric [Orb::Price::MaxGroupTieredPackage::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] + # @param cadence [Symbol, Orb::Price::MaxGroupTieredPackage::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::MaxGroupTieredPackage::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::MaxGroupTieredPackage::Item] + # @param item [Orb::Price::MaxGroupTieredPackage::Item] # # @param max_group_tiered_package_config [Hash{Symbol=>Object}] # - # @param maximum [Orb::Models::Price::MaxGroupTieredPackage::Maximum, nil] + # @param maximum [Orb::Price::MaxGroupTieredPackage::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::MaxGroupTieredPackage::Minimum, nil] + # @param minimum [Orb::Price::MaxGroupTieredPackage::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -9712,13 +9658,13 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] + # @param price_type [Symbol, Orb::Price::MaxGroupTieredPackage::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :max_group_tiered_package] - # @see Orb::Models::Price::MaxGroupTieredPackage#billable_metric + # @see Orb::Price::MaxGroupTieredPackage#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -9729,7 +9675,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -9738,15 +9684,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9758,7 +9704,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MaxGroupTieredPackage#cadence + # @see Orb::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9773,7 +9719,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MaxGroupTieredPackage#credit_allocation + # @see Orb::Price::MaxGroupTieredPackage#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -9790,7 +9736,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -9799,15 +9745,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9819,7 +9765,7 @@ module DurationUnit end end - # @see Orb::Models::Price::MaxGroupTieredPackage#item + # @see Orb::Price::MaxGroupTieredPackage#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -9836,7 +9782,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::MaxGroupTieredPackage#maximum + # @see Orb::Price::MaxGroupTieredPackage#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -9853,15 +9799,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MaxGroupTieredPackage::Maximum} for more details. + # {Orb::Price::MaxGroupTieredPackage::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::MaxGroupTieredPackage#minimum + # @see Orb::Price::MaxGroupTieredPackage#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -9878,15 +9823,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MaxGroupTieredPackage::Minimum} for more details. + # {Orb::Price::MaxGroupTieredPackage::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::MaxGroupTieredPackage#price_type + # @see Orb::Price::MaxGroupTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -9897,7 +9841,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::MaxGroupTieredPackage#dimensional_price_configuration + # @see Orb::Price::MaxGroupTieredPackage#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -9923,21 +9867,23 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric, nil] + # @return [Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric, nil] required :billable_metric, - -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric }, + -> { + Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric + }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration] + # @return [Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration } + -> { Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] - required :cadence, enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence } + # @return [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence] + required :cadence, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::Cadence } # @!attribute conversion_rate # @@ -9951,9 +9897,9 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation, nil] + # @return [Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation, nil] required :credit_allocation, - -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation }, + -> { Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation }, nil?: true # @!attribute currency @@ -9963,8 +9909,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -9978,20 +9924,20 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::Item] - required :item, -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::Item } + # @return [Orb::Price::ScalableMatrixWithUnitPricing::Item] + required :item, -> { Orb::Price::ScalableMatrixWithUnitPricing::Item } # @!attribute maximum # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum, nil] - required :maximum, -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum }, nil?: true + # @return [Orb::Price::ScalableMatrixWithUnitPricing::Maximum, nil] + required :maximum, -> { Orb::Price::ScalableMatrixWithUnitPricing::Maximum }, nil?: true # @!attribute maximum_amount # @@ -10009,8 +9955,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum, nil] - required :minimum, -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum }, nil?: true + # @return [Orb::Price::ScalableMatrixWithUnitPricing::Minimum, nil] + required :minimum, -> { Orb::Price::ScalableMatrixWithUnitPricing::Minimum }, nil?: true # @!attribute minimum_amount # @@ -10034,8 +9980,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] - required :price_type, enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType } + # @return [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::PriceType] + required :price_type, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::PriceType } # @!attribute scalable_matrix_with_unit_pricing_config # @@ -10045,49 +9991,48 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration }, + -> { Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithUnitPricing} for more details. + # {Orb::Price::ScalableMatrixWithUnitPricing} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric, nil] + # @param billable_metric [Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] + # @param cadence [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::ScalableMatrixWithUnitPricing::Item] + # @param item [Orb::Price::ScalableMatrixWithUnitPricing::Item] # - # @param maximum [Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum, nil] + # @param maximum [Orb::Price::ScalableMatrixWithUnitPricing::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum, nil] + # @param minimum [Orb::Price::ScalableMatrixWithUnitPricing::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -10095,15 +10040,15 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] + # @param price_type [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::PriceType] # # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#billable_metric + # @see Orb::Price::ScalableMatrixWithUnitPricing#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10114,7 +10059,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10123,15 +10068,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10143,7 +10090,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10158,7 +10105,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#credit_allocation + # @see Orb::Price::ScalableMatrixWithUnitPricing#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -10175,7 +10122,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10184,15 +10131,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10204,7 +10153,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#item + # @see Orb::Price::ScalableMatrixWithUnitPricing#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10221,7 +10170,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#maximum + # @see Orb::Price::ScalableMatrixWithUnitPricing#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -10238,15 +10187,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum} for more details. + # {Orb::Price::ScalableMatrixWithUnitPricing::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#minimum + # @see Orb::Price::ScalableMatrixWithUnitPricing#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -10263,15 +10211,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum} for more details. + # {Orb::Price::ScalableMatrixWithUnitPricing::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#price_type + # @see Orb::Price::ScalableMatrixWithUnitPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -10282,7 +10229,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#dimensional_price_configuration + # @see Orb::Price::ScalableMatrixWithUnitPricing#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -10308,21 +10255,23 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric, nil] + # @return [Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric, nil] required :billable_metric, - -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric }, + -> { + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric + }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration] + # @return [Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration } + -> { Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] - required :cadence, enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence } + # @return [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::Cadence] + required :cadence, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::Cadence } # @!attribute conversion_rate # @@ -10336,9 +10285,9 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation, nil] + # @return [Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation, nil] required :credit_allocation, - -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation }, + -> { Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation }, nil?: true # @!attribute currency @@ -10348,8 +10297,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -10363,20 +10312,20 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::Item] - required :item, -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::Item } + # @return [Orb::Price::ScalableMatrixWithTieredPricing::Item] + required :item, -> { Orb::Price::ScalableMatrixWithTieredPricing::Item } # @!attribute maximum # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum, nil] - required :maximum, -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum }, nil?: true + # @return [Orb::Price::ScalableMatrixWithTieredPricing::Maximum, nil] + required :maximum, -> { Orb::Price::ScalableMatrixWithTieredPricing::Maximum }, nil?: true # @!attribute maximum_amount # @@ -10394,8 +10343,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum, nil] - required :minimum, -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum }, nil?: true + # @return [Orb::Price::ScalableMatrixWithTieredPricing::Minimum, nil] + required :minimum, -> { Orb::Price::ScalableMatrixWithTieredPricing::Minimum }, nil?: true # @!attribute minimum_amount # @@ -10419,8 +10368,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] - required :price_type, enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType } + # @return [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::PriceType] + required :price_type, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::PriceType } # @!attribute scalable_matrix_with_tiered_pricing_config # @@ -10430,49 +10379,48 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration }, + -> { Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithTieredPricing} for more details. + # {Orb::Price::ScalableMatrixWithTieredPricing} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric, nil] + # @param billable_metric [Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] + # @param cadence [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation, nil] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::ScalableMatrixWithTieredPricing::Item] + # @param item [Orb::Price::ScalableMatrixWithTieredPricing::Item] # - # @param maximum [Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum, nil] + # @param maximum [Orb::Price::ScalableMatrixWithTieredPricing::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum, nil] + # @param minimum [Orb::Price::ScalableMatrixWithTieredPricing::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -10480,15 +10428,15 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] + # @param price_type [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::PriceType] # # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # - # @param dimensional_price_configuration [Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#billable_metric + # @see Orb::Price::ScalableMatrixWithTieredPricing#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10499,7 +10447,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10508,15 +10456,17 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10528,7 +10478,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10543,7 +10493,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#credit_allocation + # @see Orb::Price::ScalableMatrixWithTieredPricing#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -10560,7 +10510,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10569,15 +10519,17 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10589,7 +10541,7 @@ module DurationUnit end end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#item + # @see Orb::Price::ScalableMatrixWithTieredPricing#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10606,7 +10558,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#maximum + # @see Orb::Price::ScalableMatrixWithTieredPricing#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -10623,15 +10575,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum} for more details. + # {Orb::Price::ScalableMatrixWithTieredPricing::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#minimum + # @see Orb::Price::ScalableMatrixWithTieredPricing#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -10648,15 +10599,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum} for more details. + # {Orb::Price::ScalableMatrixWithTieredPricing::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#price_type + # @see Orb::Price::ScalableMatrixWithTieredPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -10667,7 +10617,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#dimensional_price_configuration + # @see Orb::Price::ScalableMatrixWithTieredPricing#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -10693,19 +10643,21 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::Price::CumulativeGroupedBulk::BillableMetric, nil] - required :billable_metric, -> { Orb::Models::Price::CumulativeGroupedBulk::BillableMetric }, nil?: true + # @return [Orb::Price::CumulativeGroupedBulk::BillableMetric, nil] + required :billable_metric, -> { Orb::Price::CumulativeGroupedBulk::BillableMetric }, nil?: true # @!attribute billing_cycle_configuration # - # @return [Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration] + # @return [Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration] required :billing_cycle_configuration, - -> { Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration } + -> { + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration + } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] - required :cadence, enum: -> { Orb::Models::Price::CumulativeGroupedBulk::Cadence } + # @return [Symbol, Orb::Price::CumulativeGroupedBulk::Cadence] + required :cadence, enum: -> { Orb::Price::CumulativeGroupedBulk::Cadence } # @!attribute conversion_rate # @@ -10719,10 +10671,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute credit_allocation # - # @return [Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation, nil] - required :credit_allocation, - -> { Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation }, - nil?: true + # @return [Orb::Price::CumulativeGroupedBulk::CreditAllocation, nil] + required :credit_allocation, -> { Orb::Price::CumulativeGroupedBulk::CreditAllocation }, nil?: true # @!attribute cumulative_grouped_bulk_config # @@ -10736,8 +10686,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute discount # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Models::Discount }, nil?: true + # @return [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true # @!attribute external_price_id # @@ -10751,20 +10701,20 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute invoicing_cycle_configuration # - # @return [Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] required :invoicing_cycle_configuration, - -> { Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, nil?: true # @!attribute item # - # @return [Orb::Models::Price::CumulativeGroupedBulk::Item] - required :item, -> { Orb::Models::Price::CumulativeGroupedBulk::Item } + # @return [Orb::Price::CumulativeGroupedBulk::Item] + required :item, -> { Orb::Price::CumulativeGroupedBulk::Item } # @!attribute maximum # - # @return [Orb::Models::Price::CumulativeGroupedBulk::Maximum, nil] - required :maximum, -> { Orb::Models::Price::CumulativeGroupedBulk::Maximum }, nil?: true + # @return [Orb::Price::CumulativeGroupedBulk::Maximum, nil] + required :maximum, -> { Orb::Price::CumulativeGroupedBulk::Maximum }, nil?: true # @!attribute maximum_amount # @@ -10782,8 +10732,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute minimum # - # @return [Orb::Models::Price::CumulativeGroupedBulk::Minimum, nil] - required :minimum, -> { Orb::Models::Price::CumulativeGroupedBulk::Minimum }, nil?: true + # @return [Orb::Price::CumulativeGroupedBulk::Minimum, nil] + required :minimum, -> { Orb::Price::CumulativeGroupedBulk::Minimum }, nil?: true # @!attribute minimum_amount # @@ -10807,56 +10757,55 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] - required :price_type, enum: -> { Orb::Models::Price::CumulativeGroupedBulk::PriceType } + # @return [Symbol, Orb::Price::CumulativeGroupedBulk::PriceType] + required :price_type, enum: -> { Orb::Price::CumulativeGroupedBulk::PriceType } # @!attribute dimensional_price_configuration # - # @return [Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, nil] + # @return [Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, - -> { Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration }, + -> { Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration }, nil?: true # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::CumulativeGroupedBulk} for more details. + # {Orb::Price::CumulativeGroupedBulk} for more details. # # @param id [String] # - # @param billable_metric [Orb::Models::Price::CumulativeGroupedBulk::BillableMetric, nil] + # @param billable_metric [Orb::Price::CumulativeGroupedBulk::BillableMetric, nil] # - # @param billing_cycle_configuration [Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration] + # @param billing_cycle_configuration [Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] + # @param cadence [Symbol, Orb::Price::CumulativeGroupedBulk::Cadence] # # @param conversion_rate [Float, nil] # # @param created_at [Time] # - # @param credit_allocation [Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation, nil] + # @param credit_allocation [Orb::Price::CumulativeGroupedBulk::CreditAllocation, nil] # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # # @param currency [String] # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] # # @param external_price_id [String, nil] # # @param fixed_price_quantity [Float, nil] # - # @param invoicing_cycle_configuration [Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @param invoicing_cycle_configuration [Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] # - # @param item [Orb::Models::Price::CumulativeGroupedBulk::Item] + # @param item [Orb::Price::CumulativeGroupedBulk::Item] # - # @param maximum [Orb::Models::Price::CumulativeGroupedBulk::Maximum, nil] + # @param maximum [Orb::Price::CumulativeGroupedBulk::Maximum, nil] # # @param maximum_amount [String, nil] # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum [Orb::Models::Price::CumulativeGroupedBulk::Minimum, nil] + # @param minimum [Orb::Price::CumulativeGroupedBulk::Minimum, nil] # # @param minimum_amount [String, nil] # @@ -10864,13 +10813,13 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] + # @param price_type [Symbol, Orb::Price::CumulativeGroupedBulk::PriceType] # - # @param dimensional_price_configuration [Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, nil] + # @param dimensional_price_configuration [Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, nil] # # @param model_type [Symbol, :cumulative_grouped_bulk] - # @see Orb::Models::Price::CumulativeGroupedBulk#billable_metric + # @see Orb::Price::CumulativeGroupedBulk#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10881,7 +10830,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param id [String] end - # @see Orb::Models::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10890,15 +10839,15 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10910,7 +10859,7 @@ module DurationUnit end end - # @see Orb::Models::Price::CumulativeGroupedBulk#cadence + # @see Orb::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10925,7 +10874,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::CumulativeGroupedBulk#credit_allocation + # @see Orb::Price::CumulativeGroupedBulk#credit_allocation class CreditAllocation < Orb::Internal::Type::BaseModel # @!attribute allows_rollover # @@ -10942,7 +10891,7 @@ class CreditAllocation < Orb::Internal::Type::BaseModel # @param currency [String] end - # @see Orb::Models::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # @@ -10951,15 +10900,15 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # @param duration [Integer] - # @param duration_unit [Symbol, Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @param duration_unit [Symbol, Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] - # @see Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10971,7 +10920,7 @@ module DurationUnit end end - # @see Orb::Models::Price::CumulativeGroupedBulk#item + # @see Orb::Price::CumulativeGroupedBulk#item class Item < Orb::Internal::Type::BaseModel # @!attribute id # @@ -10988,7 +10937,7 @@ class Item < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::Price::CumulativeGroupedBulk#maximum + # @see Orb::Price::CumulativeGroupedBulk#maximum class Maximum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -11005,15 +10954,14 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::CumulativeGroupedBulk::Maximum} for more details. + # {Orb::Price::CumulativeGroupedBulk::Maximum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this maximum amount applies to. For plan/plan phase maxim - # ... # # @param maximum_amount [String] Maximum amount applied end - # @see Orb::Models::Price::CumulativeGroupedBulk#minimum + # @see Orb::Price::CumulativeGroupedBulk#minimum class Minimum < Orb::Internal::Type::BaseModel # @!attribute applies_to_price_ids # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -11030,15 +10978,14 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, minimum_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::CumulativeGroupedBulk::Minimum} for more details. + # {Orb::Price::CumulativeGroupedBulk::Minimum} for more details. # # @param applies_to_price_ids [Array] List of price_ids that this minimum amount applies to. For plan/plan phase minim - # ... # # @param minimum_amount [String] Minimum amount applied end - # @see Orb::Models::Price::CumulativeGroupedBulk#price_type + # @see Orb::Price::CumulativeGroupedBulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -11049,7 +10996,7 @@ module PriceType # @return [Array] end - # @see Orb::Models::Price::CumulativeGroupedBulk#dimensional_price_configuration + # @see Orb::Price::CumulativeGroupedBulk#dimensional_price_configuration class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel # @!attribute dimension_values # @@ -11068,7 +11015,7 @@ class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk)] + # @return [Array(Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk)] end end end diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index 42edb003..15fc248e 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -10,8 +10,8 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::PriceCreateParams::Cadence] - required :cadence, enum: -> { Orb::Models::PriceCreateParams::Cadence } + # @return [Symbol, Orb::PriceCreateParams::Cadence] + required :cadence, enum: -> { Orb::PriceCreateParams::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -27,8 +27,8 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, Orb::Models::PriceCreateParams::ModelType] - required :model_type, enum: -> { Orb::Models::PriceCreateParams::ModelType } + # @return [Symbol, Orb::PriceCreateParams::ModelType] + required :model_type, enum: -> { Orb::PriceCreateParams::ModelType } # @!attribute name # The name of the price. @@ -38,8 +38,8 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::PriceCreateParams::UnitConfig] - required :unit_config, -> { Orb::Models::PriceCreateParams::UnitConfig } + # @return [Orb::PriceCreateParams::UnitConfig] + required :unit_config, -> { Orb::PriceCreateParams::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -59,9 +59,9 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::PriceCreateParams::BillingCycleConfiguration, nil] + # @return [Orb::PriceCreateParams::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::PriceCreateParams::BillingCycleConfiguration }, + -> { Orb::PriceCreateParams::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -93,9 +93,9 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, nil] + # @return [Orb::PriceCreateParams::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::PriceCreateParams::InvoicingCycleConfiguration }, + -> { Orb::PriceCreateParams::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -108,43 +108,43 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::PriceCreateParams::PackageConfig] - required :package_config, -> { Orb::Models::PriceCreateParams::PackageConfig } + # @return [Orb::PriceCreateParams::PackageConfig] + required :package_config, -> { Orb::PriceCreateParams::PackageConfig } # @!attribute matrix_config # - # @return [Orb::Models::PriceCreateParams::MatrixConfig] - required :matrix_config, -> { Orb::Models::PriceCreateParams::MatrixConfig } + # @return [Orb::PriceCreateParams::MatrixConfig] + required :matrix_config, -> { Orb::PriceCreateParams::MatrixConfig } # @!attribute matrix_with_allocation_config # - # @return [Orb::Models::PriceCreateParams::MatrixWithAllocationConfig] - required :matrix_with_allocation_config, -> { Orb::Models::PriceCreateParams::MatrixWithAllocationConfig } + # @return [Orb::PriceCreateParams::MatrixWithAllocationConfig] + required :matrix_with_allocation_config, -> { Orb::PriceCreateParams::MatrixWithAllocationConfig } # @!attribute tiered_config # - # @return [Orb::Models::PriceCreateParams::TieredConfig] - required :tiered_config, -> { Orb::Models::PriceCreateParams::TieredConfig } + # @return [Orb::PriceCreateParams::TieredConfig] + required :tiered_config, -> { Orb::PriceCreateParams::TieredConfig } # @!attribute tiered_bps_config # - # @return [Orb::Models::PriceCreateParams::TieredBpsConfig] - required :tiered_bps_config, -> { Orb::Models::PriceCreateParams::TieredBpsConfig } + # @return [Orb::PriceCreateParams::TieredBpsConfig] + required :tiered_bps_config, -> { Orb::PriceCreateParams::TieredBpsConfig } # @!attribute bps_config # - # @return [Orb::Models::PriceCreateParams::BpsConfig] - required :bps_config, -> { Orb::Models::PriceCreateParams::BpsConfig } + # @return [Orb::PriceCreateParams::BpsConfig] + required :bps_config, -> { Orb::PriceCreateParams::BpsConfig } # @!attribute bulk_bps_config # - # @return [Orb::Models::PriceCreateParams::BulkBpsConfig] - required :bulk_bps_config, -> { Orb::Models::PriceCreateParams::BulkBpsConfig } + # @return [Orb::PriceCreateParams::BulkBpsConfig] + required :bulk_bps_config, -> { Orb::PriceCreateParams::BulkBpsConfig } # @!attribute bulk_config # - # @return [Orb::Models::PriceCreateParams::BulkConfig] - required :bulk_config, -> { Orb::Models::PriceCreateParams::BulkConfig } + # @return [Orb::PriceCreateParams::BulkConfig] + required :bulk_config, -> { Orb::PriceCreateParams::BulkConfig } # @!attribute threshold_total_amount_config # @@ -248,33 +248,33 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::PriceCreateParams} for more details. # - # @param cadence [Symbol, Orb::Models::PriceCreateParams::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PriceCreateParams::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] + # @param model_type [Symbol, Orb::PriceCreateParams::ModelType] # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::PriceCreateParams::UnitConfig] + # @param unit_config [Orb::PriceCreateParams::UnitConfig] # - # @param package_config [Orb::Models::PriceCreateParams::PackageConfig] + # @param package_config [Orb::PriceCreateParams::PackageConfig] # - # @param matrix_config [Orb::Models::PriceCreateParams::MatrixConfig] + # @param matrix_config [Orb::PriceCreateParams::MatrixConfig] # - # @param matrix_with_allocation_config [Orb::Models::PriceCreateParams::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::PriceCreateParams::MatrixWithAllocationConfig] # - # @param tiered_config [Orb::Models::PriceCreateParams::TieredConfig] + # @param tiered_config [Orb::PriceCreateParams::TieredConfig] # - # @param tiered_bps_config [Orb::Models::PriceCreateParams::TieredBpsConfig] + # @param tiered_bps_config [Orb::PriceCreateParams::TieredBpsConfig] # - # @param bps_config [Orb::Models::PriceCreateParams::BpsConfig] + # @param bps_config [Orb::PriceCreateParams::BpsConfig] # - # @param bulk_bps_config [Orb::Models::PriceCreateParams::BulkBpsConfig] + # @param bulk_bps_config [Orb::PriceCreateParams::BulkBpsConfig] # - # @param bulk_config [Orb::Models::PriceCreateParams::BulkConfig] + # @param bulk_config [Orb::PriceCreateParams::BulkConfig] # # @param threshold_total_amount_config [Hash{Symbol=>Object}] # @@ -315,28 +315,22 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PriceCreateParams::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PriceCreateParams::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PriceCreateParams::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -385,9 +379,8 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit] - required :duration_unit, - enum: -> { Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit } + # @return [Symbol, Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit] + required :duration_unit, enum: -> { Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -395,11 +388,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PriceCreateParams::BillingCycleConfiguration#duration_unit + # @see Orb::PriceCreateParams::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -421,9 +414,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -431,11 +426,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::PriceCreateParams::InvoicingCycleConfiguration#duration_unit + # @see Orb::PriceCreateParams::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -463,12 +458,11 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::PackageConfig} for more details. + # {Orb::PriceCreateParams::PackageConfig} for more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end class MatrixConfig < Orb::Internal::Type::BaseModel @@ -487,16 +481,16 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] } + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::MatrixConfig::MatrixValue] } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -515,10 +509,9 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue} for more details. + # {Orb::PriceCreateParams::MatrixConfig::MatrixValue} for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end @@ -546,9 +539,11 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + } # @!method initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) # @param allocation [Float] Allocation to be used to calculate the price @@ -557,7 +552,7 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -576,11 +571,10 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue} for - # more details. + # {Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue} for more + # details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end @@ -590,11 +584,11 @@ class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::TieredConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredConfig::Tier] } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -629,16 +623,14 @@ class TieredBpsConfig < Orb::Internal::Type::BaseModel # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] - required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredBpsConfig::Tier] } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::TieredBpsConfig} for more details. + # {Orb::PriceCreateParams::TieredBpsConfig} for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -700,15 +692,14 @@ class BulkBpsConfig < Orb::Internal::Type::BaseModel # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::BulkBpsConfig::Tier] } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::BulkBpsConfig} for more details. + # {Orb::PriceCreateParams::BulkBpsConfig} for more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -742,11 +733,11 @@ class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Models::PriceCreateParams::BulkConfig::Tier] } + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::BulkConfig::Tier] } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount diff --git a/lib/orb/models/price_evaluate_params.rb b/lib/orb/models/price_evaluate_params.rb index 703a6b6e..3f56c757 100644 --- a/lib/orb/models/price_evaluate_params.rb +++ b/lib/orb/models/price_evaluate_params.rb @@ -60,10 +60,8 @@ class PriceEvaluateParams < Orb::Internal::Type::BaseModel # @param external_customer_id [String, nil] The external customer ID of the customer to which this evaluation is scoped. # # @param filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/price_evaluate_response.rb b/lib/orb/models/price_evaluate_response.rb index 96b8be42..fa511c05 100644 --- a/lib/orb/models/price_evaluate_response.rb +++ b/lib/orb/models/price_evaluate_response.rb @@ -6,11 +6,11 @@ module Models class PriceEvaluateResponse < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] - required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Models::EvaluatePriceGroup] } + # @return [Array] + required :data, -> { Orb::Internal::Type::ArrayOf[Orb::EvaluatePriceGroup] } # @!method initialize(data:) - # @param data [Array] + # @param data [Array] end end end diff --git a/lib/orb/models/price_list_params.rb b/lib/orb/models/price_list_params.rb index 5581b109..9d28ebf7 100644 --- a/lib/orb/models/price_list_params.rb +++ b/lib/orb/models/price_list_params.rb @@ -25,7 +25,6 @@ class PriceListParams < Orb::Internal::Type::BaseModel # {Orb::Models::PriceListParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/price_update_params.rb b/lib/orb/models/price_update_params.rb index 91b0b59f..a90bee1b 100644 --- a/lib/orb/models/price_update_params.rb +++ b/lib/orb/models/price_update_params.rb @@ -20,7 +20,6 @@ class PriceUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::PriceUpdateParams} for more details. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/prices/external_price_id_update_params.rb b/lib/orb/models/prices/external_price_id_update_params.rb index 879efcad..5e417ee1 100644 --- a/lib/orb/models/prices/external_price_id_update_params.rb +++ b/lib/orb/models/prices/external_price_id_update_params.rb @@ -21,7 +21,6 @@ class ExternalPriceIDUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::Prices::ExternalPriceIDUpdateParams} for more details. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index d6b9cf90..530632b5 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -20,9 +20,11 @@ class Subscription < Orb::Internal::Type::BaseModel # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. # - # @return [Array] + # @return [Array] required :adjustment_intervals, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval] } + -> { + Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval] + } # @!attribute auto_collection # Determines whether issued invoices for this subscription will automatically be @@ -34,9 +36,8 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute billing_cycle_anchor_configuration # - # @return [Orb::Models::Subscription::BillingCycleAnchorConfiguration] - required :billing_cycle_anchor_configuration, - -> { Orb::Models::Subscription::BillingCycleAnchorConfiguration } + # @return [Orb::Subscription::BillingCycleAnchorConfiguration] + required :billing_cycle_anchor_configuration, -> { Orb::Subscription::BillingCycleAnchorConfiguration } # @!attribute billing_cycle_day # The day of the month on which the billing cycle is anchored. If the maximum @@ -88,8 +89,8 @@ class Subscription < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -101,9 +102,9 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute discount_intervals # The discount intervals for this subscription sorted by the start_date. # - # @return [Array] + # @return [Array] required :discount_intervals, - -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::Subscription::DiscountInterval] } + -> { Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval] } # @!attribute end_date # The date Orb stops billing for this subscription. @@ -113,9 +114,9 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute fixed_fee_quantity_schedule # - # @return [Array] + # @return [Array] required :fixed_fee_quantity_schedule, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::FixedFeeQuantitySchedule] } + -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule] } # @!attribute invoicing_threshold # @@ -125,9 +126,8 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute maximum_intervals # The maximum intervals for this subscription sorted by the start_date. # - # @return [Array] - required :maximum_intervals, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MaximumInterval] } + # @return [Array] + required :maximum_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval] } # @!attribute metadata # User specified key-value pairs for the resource. If not present, this defaults @@ -141,9 +141,8 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute minimum_intervals # The minimum intervals for this subscription sorted by the start_date. # - # @return [Array] - required :minimum_intervals, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MinimumInterval] } + # @return [Array] + required :minimum_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval] } # @!attribute net_terms # Determines the difference between the invoice issue date for subscription @@ -157,10 +156,8 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute pending_subscription_change # A pending subscription change if one exists on this subscription. # - # @return [Orb::Models::Subscription::PendingSubscriptionChange, nil] - required :pending_subscription_change, - -> { Orb::Models::Subscription::PendingSubscriptionChange }, - nil?: true + # @return [Orb::Subscription::PendingSubscriptionChange, nil] + required :pending_subscription_change, -> { Orb::Subscription::PendingSubscriptionChange }, nil?: true # @!attribute plan # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be @@ -168,19 +165,19 @@ class Subscription < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. # - # @return [Array] - required :price_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval] } + # @return [Array] + required :price_intervals, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval] } # @!attribute redeemed_coupon # - # @return [Orb::Models::Subscription::RedeemedCoupon, nil] - required :redeemed_coupon, -> { Orb::Models::Subscription::RedeemedCoupon }, nil?: true + # @return [Orb::Subscription::RedeemedCoupon, nil] + required :redeemed_coupon, -> { Orb::Subscription::RedeemedCoupon }, nil?: true # @!attribute start_date # The date Orb starts billing for this subscription. @@ -190,17 +187,17 @@ class Subscription < Orb::Internal::Type::BaseModel # @!attribute status # - # @return [Symbol, Orb::Models::Subscription::Status] - required :status, enum: -> { Orb::Models::Subscription::Status } + # @return [Symbol, Orb::Subscription::Status] + required :status, enum: -> { Orb::Subscription::Status } # @!attribute trial_info # - # @return [Orb::Models::Subscription::TrialInfo] - required :trial_info, -> { Orb::Models::Subscription::TrialInfo } + # @return [Orb::Subscription::TrialInfo] + required :trial_info, -> { Orb::Subscription::TrialInfo } # @!method initialize(id:, active_plan_phase_order:, adjustment_intervals:, auto_collection:, billing_cycle_anchor_configuration:, billing_cycle_day:, created_at:, current_billing_period_end_date:, current_billing_period_start_date:, customer:, default_invoice_memo:, discount_intervals:, end_date:, fixed_fee_quantity_schedule:, invoicing_threshold:, maximum_intervals:, metadata:, minimum_intervals:, net_terms:, pending_subscription_change:, plan:, price_intervals:, redeemed_coupon:, start_date:, status:, trial_info:) - # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription} for more details. + # Some parameter documentations has been truncated, see {Orb::Subscription} for + # more details. # # A [subscription](/core-concepts#subscription) represents the purchase of a plan # by a customer. @@ -225,65 +222,54 @@ class Subscription < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # - # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... + # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # - # @param billing_cycle_anchor_configuration [Orb::Models::Subscription::BillingCycleAnchorConfiguration] + # @param billing_cycle_anchor_configuration [Orb::Subscription::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # - # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. + # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # # @param end_date [Time, nil] The date Orb stops billing for this subscription. # - # @param fixed_fee_quantity_schedule [Array] + # @param fixed_fee_quantity_schedule [Array] # # @param invoicing_threshold [String, nil] # - # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. + # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # - # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. + # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # - # @param pending_subscription_change [Orb::Models::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. + # @param pending_subscription_change [Orb::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # - # @param price_intervals [Array] The price intervals for this subscription. + # @param price_intervals [Array] The price intervals for this subscription. # - # @param redeemed_coupon [Orb::Models::Subscription::RedeemedCoupon, nil] + # @param redeemed_coupon [Orb::Subscription::RedeemedCoupon, nil] # # @param start_date [Time] The date Orb starts billing for this subscription. # - # @param status [Symbol, Orb::Models::Subscription::Status] + # @param status [Symbol, Orb::Subscription::Status] # - # @param trial_info [Orb::Models::Subscription::TrialInfo] + # @param trial_info [Orb::Subscription::TrialInfo] class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -293,8 +279,8 @@ class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute adjustment # - # @return [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum] - required :adjustment, union: -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment } + # @return [Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum] + required :adjustment, union: -> { Orb::Subscription::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids # The price interval IDs that this adjustment applies to. @@ -317,7 +303,7 @@ class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!method initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) # @param id [String] # - # @param adjustment [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum] + # @param adjustment [Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum] # # @param applies_to_price_interval_ids [Array] The price interval IDs that this adjustment applies to. # @@ -325,22 +311,24 @@ class AdjustmentInterval < Orb::Internal::Type::BaseModel # # @param start_date [Time] The start date of the adjustment interval. - # @see Orb::Models::Subscription::AdjustmentInterval#adjustment + # @see Orb::Subscription::AdjustmentInterval#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type - variant :usage_discount, -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount } + variant :usage_discount, -> { Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount } - variant :amount_discount, -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount } + variant :amount_discount, -> { Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount } variant :percentage_discount, - -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount } + -> { + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount + } - variant :minimum, -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum } + variant :minimum, -> { Orb::Subscription::AdjustmentInterval::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum } + variant :maximum, -> { Orb::Subscription::AdjustmentInterval::Adjustment::Maximum } class UsageDiscount < Orb::Internal::Type::BaseModel # @!attribute id @@ -387,22 +375,20 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, usage_discount:, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount} for - # more details. + # {Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount} for more + # details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -452,18 +438,16 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount} for - # more details. + # {Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount} for more + # details. # # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -517,18 +501,16 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, percentage_discount:, plan_phase_order:, reason:, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount} - # for more details. + # {Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount} for more + # details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -588,20 +570,17 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, plan_phase_order:, reason:, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum} for more - # details. + # {Orb::Subscription::AdjustmentInterval::Adjustment::Minimum} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -655,18 +634,15 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(id:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, plan_phase_order:, reason:, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum} for more - # details. + # {Orb::Subscription::AdjustmentInterval::Adjustment::Maximum} for more details. # # @param id [String] # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -676,11 +652,11 @@ class Maximum < Orb::Internal::Type::BaseModel end # @!method self.variants - # @return [Array(Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum)] + # @return [Array(Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Subscription::AdjustmentInterval::Adjustment::Maximum)] end end - # @see Orb::Models::Subscription#billing_cycle_anchor_configuration + # @see Orb::Subscription#billing_cycle_anchor_configuration class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # @!attribute day # The day of the month on which the billing cycle is anchored. If the maximum @@ -708,16 +684,13 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # @!method initialize(day:, month: nil, year: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::BillingCycleAnchorConfiguration} for more details. + # {Orb::Subscription::BillingCycleAnchorConfiguration} for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -725,11 +698,11 @@ module DiscountInterval discriminator :discount_type - variant :amount, -> { Orb::Models::Subscription::DiscountInterval::Amount } + variant :amount, -> { Orb::Subscription::DiscountInterval::Amount } - variant :percentage, -> { Orb::Models::Subscription::DiscountInterval::Percentage } + variant :percentage, -> { Orb::Subscription::DiscountInterval::Percentage } - variant :usage, -> { Orb::Models::Subscription::DiscountInterval::Usage } + variant :usage, -> { Orb::Subscription::DiscountInterval::Usage } class Amount < Orb::Internal::Type::BaseModel # @!attribute amount_discount @@ -820,7 +793,7 @@ class Percentage < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, percentage_discount:, start_date:, discount_type: :percentage) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::DiscountInterval::Percentage} for more details. + # {Orb::Subscription::DiscountInterval::Percentage} for more details. # # @param applies_to_price_ids [Array] The price ids that this discount interval applies to. # @@ -829,7 +802,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -875,7 +847,7 @@ class Usage < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, start_date:, usage_discount:, discount_type: :usage) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::DiscountInterval::Usage} for more details. + # {Orb::Subscription::DiscountInterval::Usage} for more details. # # @param applies_to_price_ids [Array] The price ids that this discount interval applies to. # @@ -886,13 +858,12 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end # @!method self.variants - # @return [Array(Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage)] + # @return [Array(Orb::Subscription::DiscountInterval::Amount, Orb::Subscription::DiscountInterval::Percentage, Orb::Subscription::DiscountInterval::Usage)] end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel @@ -957,7 +928,7 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, maximum_amount:, start_date:) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::MaximumInterval} for more details. + # {Orb::Subscription::MaximumInterval} for more details. # # @param applies_to_price_ids [Array] The price ids that this maximum interval applies to. # @@ -966,7 +937,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1005,7 +975,7 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, applies_to_price_interval_ids:, end_date:, minimum_amount:, start_date:) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::MinimumInterval} for more details. + # {Orb::Subscription::MinimumInterval} for more details. # # @param applies_to_price_ids [Array] The price ids that this minimum interval applies to. # @@ -1014,12 +984,11 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end - # @see Orb::Models::Subscription#pending_subscription_change + # @see Orb::Subscription#pending_subscription_change class PendingSubscriptionChange < Orb::Internal::Type::BaseModel # @!attribute id # @@ -1077,9 +1046,11 @@ class PriceInterval < Orb::Internal::Type::BaseModel # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. # - # @return [Array, nil] + # @return [Array, nil] required :fixed_fee_quantity_transitions, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval::FixedFeeQuantityTransition] + }, nil?: true # @!attribute price @@ -1094,8 +1065,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1113,7 +1084,7 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @!method initialize(id:, billing_cycle_day:, current_billing_period_end_date:, current_billing_period_start_date:, end_date:, filter:, fixed_fee_quantity_transitions:, price:, start_date:, usage_customer_ids:) # Some parameter documentations has been truncated, see - # {Orb::Models::Subscription::PriceInterval} for more details. + # {Orb::Subscription::PriceInterval} for more details. # # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1124,27 +1095,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # - # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... + # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1169,7 +1133,7 @@ class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::Subscription#redeemed_coupon + # @see Orb::Subscription#redeemed_coupon class RedeemedCoupon < Orb::Internal::Type::BaseModel # @!attribute coupon_id # @@ -1192,7 +1156,7 @@ class RedeemedCoupon < Orb::Internal::Type::BaseModel # @param start_date [Time] end - # @see Orb::Models::Subscription#status + # @see Orb::Subscription#status module Status extend Orb::Internal::Type::Enum @@ -1204,7 +1168,7 @@ module Status # @return [Array] end - # @see Orb::Models::Subscription#trial_info + # @see Orb::Subscription#trial_info class TrialInfo < Orb::Internal::Type::BaseModel # @!attribute end_date # diff --git a/lib/orb/models/subscription_cancel_params.rb b/lib/orb/models/subscription_cancel_params.rb index daff36d0..158c97b8 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -10,8 +10,8 @@ class SubscriptionCancelParams < Orb::Internal::Type::BaseModel # @!attribute cancel_option # Determines the timing of subscription cancellation # - # @return [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption] - required :cancel_option, enum: -> { Orb::Models::SubscriptionCancelParams::CancelOption } + # @return [Symbol, Orb::SubscriptionCancelParams::CancelOption] + required :cancel_option, enum: -> { Orb::SubscriptionCancelParams::CancelOption } # @!attribute allow_invoice_credit_or_void # If false, this request will fail if it would void an issued invoice or create a @@ -32,13 +32,11 @@ class SubscriptionCancelParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionCancelParams} for more details. # - # @param cancel_option [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation + # @param cancel_option [Symbol, Orb::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # # @param cancellation_date [Time, nil] The date that the cancellation should take effect. This parameter can only be pa - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 01ce200c..ee2080ab 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -88,8 +88,8 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -214,32 +214,24 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -252,17 +244,14 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -275,7 +264,6 @@ class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionCancelResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionCancelResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -390,14 +378,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -453,12 +439,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -520,10 +504,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -591,12 +573,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -658,10 +638,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -707,13 +685,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -826,7 +801,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -884,7 +858,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -964,7 +937,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1012,7 +984,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1092,8 +1063,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1122,27 +1093,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1218,39 +1182,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_change_apply_response.rb b/lib/orb/models/subscription_change_apply_response.rb index cdaf948b..e6499b7d 100644 --- a/lib/orb/models/subscription_change_apply_response.rb +++ b/lib/orb/models/subscription_change_apply_response.rb @@ -49,7 +49,6 @@ class SubscriptionChangeApplyResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param expiration_time [Time] Subscription change will be cancelled at this time and can no longer be applied. - # ... # # @param status [Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status] # @@ -157,8 +156,8 @@ class Subscription < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -237,8 +236,8 @@ class Subscription < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -287,32 +286,24 @@ class Subscription < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -325,17 +316,14 @@ class Subscription < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -348,7 +336,6 @@ class Subscription < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -465,14 +452,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -528,12 +513,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -595,10 +578,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -666,12 +647,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -733,10 +712,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -782,13 +759,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -903,7 +877,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -961,7 +934,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -1042,7 +1014,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1091,7 +1062,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1171,8 +1141,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1202,27 +1172,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1298,39 +1261,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_change_cancel_response.rb b/lib/orb/models/subscription_change_cancel_response.rb index ded26294..a7d1097d 100644 --- a/lib/orb/models/subscription_change_cancel_response.rb +++ b/lib/orb/models/subscription_change_cancel_response.rb @@ -49,7 +49,6 @@ class SubscriptionChangeCancelResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param expiration_time [Time] Subscription change will be cancelled at this time and can no longer be applied. - # ... # # @param status [Symbol, Orb::Models::SubscriptionChangeCancelResponse::Status] # @@ -157,8 +156,8 @@ class Subscription < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -237,8 +236,8 @@ class Subscription < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -287,32 +286,24 @@ class Subscription < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -325,17 +316,14 @@ class Subscription < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -348,7 +336,6 @@ class Subscription < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -465,14 +452,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -528,12 +513,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -595,10 +578,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -666,12 +647,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -733,10 +712,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -782,13 +759,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -904,7 +878,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -962,7 +935,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -1043,7 +1015,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1092,7 +1063,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1172,8 +1142,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1203,27 +1173,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1299,39 +1262,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_change_retrieve_response.rb b/lib/orb/models/subscription_change_retrieve_response.rb index 78bdb8b7..221553cd 100644 --- a/lib/orb/models/subscription_change_retrieve_response.rb +++ b/lib/orb/models/subscription_change_retrieve_response.rb @@ -49,7 +49,6 @@ class SubscriptionChangeRetrieveResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param expiration_time [Time] Subscription change will be cancelled at this time and can no longer be applied. - # ... # # @param status [Symbol, Orb::Models::SubscriptionChangeRetrieveResponse::Status] # @@ -157,8 +156,8 @@ class Subscription < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -237,8 +236,8 @@ class Subscription < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -288,32 +287,24 @@ class Subscription < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -326,17 +317,14 @@ class Subscription < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -349,7 +337,6 @@ class Subscription < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -466,14 +453,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -529,12 +514,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -596,10 +579,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -667,12 +648,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -734,10 +713,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -783,13 +760,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -905,7 +879,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -963,7 +936,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -1044,7 +1016,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1093,7 +1064,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1173,8 +1143,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1204,27 +1174,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1300,39 +1263,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 287ca61f..83ec4bdc 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -11,18 +11,18 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :add_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddAdjustment] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddAdjustment] }, nil?: true # @!attribute add_prices # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :add_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice] }, nil?: true # @!attribute align_billing_with_subscription_start_date @@ -46,9 +46,9 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # @!attribute billing_cycle_anchor_configuration # - # @return [Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] optional :billing_cycle_anchor_configuration, - -> { Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration }, + -> { Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration }, nil?: true # @!attribute coupon_redemption_code @@ -90,9 +90,9 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # @!attribute external_marketplace # @deprecated # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace, nil] + # @return [Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace, nil] optional :external_marketplace, - enum: -> { Orb::Models::SubscriptionCreateParams::ExternalMarketplace }, + enum: -> { Orb::SubscriptionCreateParams::ExternalMarketplace }, nil?: true # @!attribute external_marketplace_reporting_id @@ -179,18 +179,18 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :remove_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::RemoveAdjustment] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::RemoveAdjustment] }, nil?: true # @!attribute remove_prices # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :remove_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::RemovePrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::RemovePrice] }, nil?: true # @!attribute replace_adjustments @@ -198,18 +198,18 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # (Only available for accounts that have migrated off of legacy subscription # overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :replace_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplaceAdjustment] }, nil?: true # @!attribute replace_prices # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :replace_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice] }, nil?: true # @!attribute start_date @@ -240,85 +240,67 @@ class SubscriptionCreateParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionCreateParams} for more details. # - # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco - # ... + # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco # - # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts - # ... + # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts # # @param align_billing_with_subscription_start_date [Boolean] # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param aws_region [String, nil] # - # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] + # @param billing_cycle_anchor_configuration [Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] # # @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found - # ... # # @param credits_overage_rate [Float, nil] # # @param customer_id [String, nil] # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param end_date [Time, nil] # # @param external_customer_id [String, nil] # - # @param external_marketplace [Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace, nil] + # @param external_marketplace [Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace, nil] # # @param external_marketplace_reporting_id [String, nil] # # @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # # @param initial_phase_order [Integer, nil] The phase of the plan to start with # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # # @param per_credit_overage_amount [Float, nil] # # @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi - # ... # # @param plan_version_number [Integer, nil] Specifies which version of the plan to subscribe to. If null, the default versio - # ... # # @param price_overrides [Array, nil] Optionally provide a list of overrides for prices on the plan # - # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun - # ... + # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun # - # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th - # ... + # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th # - # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. - # ... + # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. # - # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava - # ... + # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava # # @param start_date [Time, nil] # # @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -326,8 +308,8 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @!attribute adjustment # The definition of a new adjustment to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] - required :adjustment, union: -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment } + # @return [Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] + required :adjustment, union: -> { Orb::SubscriptionCreateParams::AddAdjustment::Adjustment } # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment @@ -352,38 +334,40 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @!method initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment} for more details. + # {Orb::SubscriptionCreateParams::AddAdjustment} for more details. # - # @param adjustment [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. + # @param adjustment [Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. # # @param end_date [Time, nil] The end date of the adjustment interval. This is the date that the adjustment wi - # ... # # @param plan_phase_order [Integer, nil] The phase to add this adjustment to. # # @param start_date [Time, nil] The start date of the adjustment interval. This is the date that the adjustment - # ... # The definition of a new adjustment to create and add to the subscription. # - # @see Orb::Models::SubscriptionCreateParams::AddAdjustment#adjustment + # @see Orb::SubscriptionCreateParams::AddAdjustment#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :percentage_discount, - -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount } + -> { Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount } variant :usage_discount, - -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount } + -> { + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount + } variant :amount_discount, - -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount } + -> { + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount + } - variant :minimum, -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum } + variant :minimum, -> { Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum } + variant :maximum, -> { Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum } class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute adjustment_type @@ -411,7 +395,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount} + # {Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -419,7 +403,6 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param percentage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :percentage_discount] end @@ -450,15 +433,14 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount} - # for more details. + # {Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount} for + # more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param usage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -489,15 +471,14 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount} - # for more details. + # {Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount} for + # more details. # # @param amount_discount [String] # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :amount_discount] end @@ -534,8 +515,8 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum} for - # more details. + # {Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum} for more + # details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # @@ -544,7 +525,6 @@ class Minimum < Orb::Internal::Type::BaseModel # @param minimum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :minimum] end @@ -575,21 +555,20 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum} for - # more details. + # {Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum} for more + # details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param maximum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :maximum] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum)] + # @return [Array(Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum)] end end @@ -597,9 +576,11 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute allocation_price # The definition of a new allocation price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::AllocationPrice, nil] optional :allocation_price, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice }, + -> { + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice + }, nil?: true # @!attribute discounts @@ -608,9 +589,9 @@ class AddPrice < Orb::Internal::Type::BaseModel # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. # - # @return [Array, nil] + # @return [Array, nil] optional :discounts, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Discount] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Discount] }, nil?: true # @!attribute end_date @@ -654,8 +635,8 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage, nil] - optional :price, union: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price }, nil?: true + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::SubscriptionCreateParams::AddPrice::Price::Package, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage, nil] + optional :price, union: -> { Orb::SubscriptionCreateParams::AddPrice::Price }, nil?: true # @!attribute price_id # The id of the price to add to the subscription. @@ -673,34 +654,29 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!method initialize(allocation_price: nil, discounts: nil, end_date: nil, external_price_id: nil, maximum_amount: nil, minimum_amount: nil, plan_phase_order: nil, price: nil, price_id: nil, start_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice} for more details. + # {Orb::SubscriptionCreateParams::AddPrice} for more details. # - # @param allocation_price [Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. + # @param allocation_price [Orb::SubscriptionCreateParams::AddPrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. # - # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this - # ... + # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # # @param end_date [Time, nil] The end date of the price interval. This is the date that the price will stop bi - # ... # # @param external_price_id [String, nil] The external price id of the price to add to the subscription. # # @param maximum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # ... # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # ... # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::SubscriptionCreateParams::AddPrice::Price::Package, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # # @param start_date [Time, nil] The start date of the price interval. This is the date that the price will start - # ... - # @see Orb::Models::SubscriptionCreateParams::AddPrice#allocation_price + # @see Orb::SubscriptionCreateParams::AddPrice#allocation_price class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute amount # An amount of the currency to allocate to the customer at the specified cadence. @@ -711,8 +687,8 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence at which to allocate the amount to the customer. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -730,24 +706,21 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::AllocationPrice} for more details. # # The definition of a new allocation price to create and add to the subscription. # # @param amount [String] An amount of the currency to allocate to the customer at the specified cadence. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. # # @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill - # ... # # @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove - # ... # The cadence at which to allocate the amount to the customer. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::AllocationPrice#cadence module Cadence extend Orb::Internal::Type::Enum @@ -766,9 +739,11 @@ module Cadence class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType] required :discount_type, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType + } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -792,19 +767,17 @@ class Discount < Orb::Internal::Type::BaseModel # @!method initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Discount} for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Discount} for more details. # - # @param discount_type [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType] + # @param discount_type [Symbol, Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType] # # @param amount_discount [String, nil] Only available if discount_type is `amount`. # # @param percentage_discount [Float, nil] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param usage_discount [Float, nil] Only available if discount_type is `usage`. Number of usage units that this disc - # ... - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Discount#discount_type + # @see Orb::SubscriptionCreateParams::AddPrice::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -819,83 +792,93 @@ module DiscountType # The definition of a new price to create and add to the subscription. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice#price + # @see Orb::SubscriptionCreateParams::AddPrice#price module Price extend Orb::Internal::Type::Union discriminator :model_type - variant :unit, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit } + variant :unit, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Unit } - variant :package, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package } + variant :package, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Package } - variant :matrix, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix } + variant :matrix, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Matrix } - variant :tiered, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered } + variant :tiered, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps } + variant :tiered_bps, -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps } - variant :bps, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps } + variant :bps, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bps } - variant :bulk_bps, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps } + variant :bulk_bps, -> { Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps } - variant :bulk, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk } + variant :bulk, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bulk } variant :threshold_total_amount, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount } - variant :tiered_package, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage } + variant :tiered_package, -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage } variant :tiered_with_minimum, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum + } - variant :unit_with_percent, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent } + variant :unit_with_percent, -> { Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent } variant :package_with_allocation, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation } variant :tiered_with_proration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration + } variant :unit_with_proration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration + } variant :grouped_allocation, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation + } variant :grouped_with_prorated_minimum, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum } variant :bulk_with_proration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration + } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing } variant :cumulative_grouped_bulk, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk } variant :max_group_tiered_package, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage } variant :grouped_with_metered_minimum, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum } variant :matrix_with_display_name, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName } variant :grouped_tiered_package, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -916,8 +899,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig] - required :unit_config, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig } + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig] + required :unit_config, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -937,9 +920,9 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -978,9 +961,9 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -1000,51 +983,43 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit} for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Unit} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig] + # @param unit_config [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1059,7 +1034,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit#unit_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -1071,7 +1046,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1082,9 +1057,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1092,11 +1069,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1108,7 +1085,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1119,9 +1096,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1129,11 +1108,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1150,8 +1129,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1172,9 +1151,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig] required :package_config, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1194,9 +1175,11 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1235,9 +1218,11 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1257,52 +1242,43 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Package} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig] + # @param package_config [Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1317,7 +1293,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package#package_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -1334,16 +1310,15 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig} for + # more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1354,9 +1329,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1364,11 +1341,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1380,7 +1357,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1391,9 +1368,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1401,11 +1380,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1422,8 +1401,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1433,9 +1412,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig] required :matrix_config, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig + } # @!attribute model_type # @@ -1466,9 +1447,9 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1507,9 +1488,11 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1529,52 +1512,43 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Matrix} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1589,7 +1563,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix#matrix_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1606,16 +1580,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -1634,17 +1610,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue} + # {Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1655,9 +1630,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1665,11 +1642,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1681,7 +1658,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1692,9 +1669,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1702,11 +1681,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1723,8 +1702,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1745,9 +1724,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig] required :tiered_config, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1767,9 +1748,9 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -1808,9 +1789,11 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1830,52 +1813,43 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Tiered} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1890,17 +1864,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered#tiered_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -1930,7 +1906,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1941,9 +1917,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1951,11 +1929,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1967,7 +1945,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1978,9 +1956,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1988,11 +1968,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2009,8 +1989,8 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2031,9 +2011,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig] required :tiered_bps_config, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig } + -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -2053,9 +2033,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2094,9 +2076,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2116,52 +2100,43 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2176,23 +2151,24 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps#tiered_bps_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig} for + # more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2230,7 +2206,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2241,9 +2217,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2251,11 +2229,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2267,7 +2245,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2278,9 +2256,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2288,11 +2268,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2308,14 +2288,14 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig] - required :bps_config, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig } + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig] + required :bps_config, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2352,9 +2332,9 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2393,9 +2373,9 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2415,49 +2395,41 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps} for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Bps} for more details. # - # @param bps_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig] + # @param bps_config [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps#bps_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -2479,7 +2451,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2494,7 +2466,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2505,9 +2477,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2515,11 +2489,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2531,7 +2505,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2542,9 +2516,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2552,11 +2528,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2572,15 +2548,17 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig] required :bulk_bps_config, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig } + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig + } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2617,9 +2595,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2658,9 +2638,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2680,66 +2662,58 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps} for more - # details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps} for more details. # - # @param bulk_bps_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps#bulk_bps_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig} for + # more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2771,7 +2745,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2786,7 +2760,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2797,9 +2771,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2807,11 +2783,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2823,7 +2799,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2834,9 +2810,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2844,11 +2822,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2864,14 +2842,14 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig] - required :bulk_config, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig } + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig] + required :bulk_config, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2908,9 +2886,9 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2949,9 +2927,9 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration }, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration }, nil?: true # @!attribute metadata @@ -2971,59 +2949,53 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk} for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::Bulk} for more details. # - # @param bulk_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk#bulk_config + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -3047,7 +3019,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3062,7 +3034,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3073,9 +3045,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3083,11 +3057,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3099,7 +3073,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3110,9 +3084,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3120,11 +3096,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3141,9 +3117,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3185,9 +3163,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3226,9 +3206,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3248,10 +3230,10 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3260,40 +3242,32 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3308,7 +3282,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3319,9 +3293,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3329,11 +3305,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3345,7 +3321,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3356,9 +3332,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3366,11 +3344,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3387,9 +3365,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3431,9 +3411,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3472,9 +3454,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3494,10 +3478,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage} for more + # {Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage} for more # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3506,40 +3490,32 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3554,7 +3530,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3565,9 +3541,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3575,11 +3553,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3591,7 +3569,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3602,9 +3580,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3612,11 +3592,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3633,9 +3613,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3677,9 +3659,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3718,9 +3702,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3740,10 +3726,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum} for - # more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3752,40 +3738,32 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3800,7 +3778,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3811,9 +3789,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3821,11 +3801,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3837,7 +3817,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3848,9 +3828,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3858,11 +3840,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3879,9 +3861,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3923,9 +3907,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3964,9 +3950,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3986,10 +3974,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent} for - # more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3998,40 +3986,32 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4046,7 +4026,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4057,9 +4037,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4067,11 +4049,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4083,7 +4065,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4094,9 +4076,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4104,11 +4088,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4125,9 +4109,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -4170,9 +4156,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4211,9 +4199,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4233,10 +4223,10 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4245,40 +4235,32 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4293,7 +4275,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4304,9 +4286,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4314,11 +4298,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4330,7 +4314,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4341,9 +4325,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4351,11 +4337,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4372,9 +4358,9 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence } + enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -4416,9 +4402,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4457,9 +4445,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4479,10 +4469,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4491,40 +4481,32 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4539,7 +4521,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4550,9 +4532,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4560,11 +4544,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4576,7 +4560,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4587,9 +4571,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4597,11 +4583,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4618,9 +4604,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -4662,9 +4650,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4703,9 +4693,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4725,10 +4717,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration} for - # more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4737,40 +4729,32 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4785,7 +4769,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4796,9 +4780,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4806,11 +4792,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4822,7 +4808,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4833,9 +4819,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4843,11 +4831,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4864,9 +4852,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence + } # @!attribute grouped_allocation_config # @@ -4908,9 +4898,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4949,9 +4941,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4971,10 +4965,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation} for - # more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param grouped_allocation_config [Hash{Symbol=>Object}] # @@ -4983,40 +4977,32 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5031,7 +5017,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5042,9 +5028,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5052,11 +5040,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5068,7 +5056,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5079,9 +5067,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5089,11 +5079,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5110,9 +5100,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence + } # @!attribute grouped_with_prorated_minimum_config # @@ -5155,9 +5147,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5196,9 +5190,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5218,10 +5214,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # @@ -5230,40 +5226,32 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5278,7 +5266,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5289,9 +5277,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5299,11 +5289,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5315,7 +5305,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5326,9 +5316,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5336,11 +5328,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5362,9 +5354,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5401,9 +5395,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5442,9 +5438,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5464,52 +5462,44 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration} for - # more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration} for more + # details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5524,7 +5514,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5535,9 +5525,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5545,11 +5537,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5561,7 +5553,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5572,9 +5564,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5582,11 +5576,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5603,9 +5597,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5648,9 +5644,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5689,9 +5687,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5711,10 +5711,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing} + # {Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5723,40 +5723,32 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5771,7 +5763,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5782,9 +5774,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5792,11 +5786,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5808,7 +5802,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5819,9 +5813,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5829,11 +5825,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5850,9 +5846,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5895,9 +5893,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5936,9 +5936,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5958,10 +5960,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing} + # {Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5970,40 +5972,32 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6018,7 +6012,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6029,9 +6023,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6039,11 +6035,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6055,7 +6051,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6066,9 +6062,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6076,11 +6074,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6097,9 +6095,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence + } # @!attribute cumulative_grouped_bulk_config # @@ -6142,9 +6142,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6183,9 +6185,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6205,10 +6209,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -6217,40 +6221,32 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6265,7 +6261,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6276,9 +6272,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6286,11 +6284,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6302,7 +6300,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6313,9 +6311,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6323,11 +6323,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6344,9 +6344,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -6389,9 +6391,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6430,9 +6434,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6452,10 +6458,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -6464,40 +6470,32 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6512,7 +6510,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6523,9 +6521,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6533,11 +6533,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6549,7 +6549,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6560,9 +6560,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6570,11 +6572,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6591,9 +6593,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence + } # @!attribute grouped_with_metered_minimum_config # @@ -6636,9 +6640,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6677,9 +6683,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6699,10 +6707,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # @@ -6711,40 +6719,32 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6759,7 +6759,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6770,9 +6770,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6780,11 +6782,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6796,7 +6798,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6807,9 +6809,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6817,11 +6821,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6838,9 +6842,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -6883,9 +6889,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6924,9 +6932,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6946,10 +6956,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -6958,40 +6968,32 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7006,7 +7008,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7017,9 +7019,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7027,11 +7031,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7043,7 +7047,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7054,9 +7058,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7064,11 +7070,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7085,9 +7091,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence + } # @!attribute grouped_tiered_package_config # @@ -7129,9 +7137,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -7170,9 +7180,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -7192,10 +7204,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage} - # for more details. + # {Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # @@ -7204,40 +7216,32 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#cadence + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7252,7 +7256,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7263,9 +7267,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7273,11 +7279,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7289,7 +7295,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7300,9 +7306,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7310,11 +7318,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7328,7 +7336,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage)] + # @return [Array(Orb::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::SubscriptionCreateParams::AddPrice::Price::Package, Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage)] end end @@ -7359,17 +7367,14 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # @!method initialize(day:, month: nil, year: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration} for - # more details. + # {Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration} for more + # details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end # @deprecated @@ -7418,8 +7423,8 @@ class ReplaceAdjustment < Orb::Internal::Type::BaseModel # @!attribute adjustment # The definition of a new adjustment to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] - required :adjustment, union: -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment } + # @return [Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] + required :adjustment, union: -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment } # @!attribute replaces_adjustment_id # The id of the adjustment on the plan to replace in the subscription. @@ -7428,30 +7433,30 @@ class ReplaceAdjustment < Orb::Internal::Type::BaseModel required :replaces_adjustment_id, String # @!method initialize(adjustment:, replaces_adjustment_id:) - # @param adjustment [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. + # @param adjustment [Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. # # @param replaces_adjustment_id [String] The id of the adjustment on the plan to replace in the subscription. # The definition of a new adjustment to create and add to the subscription. # - # @see Orb::Models::SubscriptionCreateParams::ReplaceAdjustment#adjustment + # @see Orb::SubscriptionCreateParams::ReplaceAdjustment#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :percentage_discount, - -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount } + -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount } variant :usage_discount, - -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount } + -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount } variant :amount_discount, - -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount } + -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount } - variant :minimum, -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum } + variant :minimum, -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum } + variant :maximum, -> { Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum } class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute adjustment_type @@ -7479,7 +7484,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount} + # {Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7487,7 +7492,6 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param percentage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :percentage_discount] end @@ -7518,7 +7522,7 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount} + # {Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7526,7 +7530,6 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param usage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -7557,7 +7560,7 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount} + # {Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount} # for more details. # # @param amount_discount [String] @@ -7565,7 +7568,6 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :amount_discount] end @@ -7602,8 +7604,8 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum} - # for more details. + # {Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum} for more + # details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # @@ -7612,7 +7614,6 @@ class Minimum < Orb::Internal::Type::BaseModel # @param minimum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :minimum] end @@ -7643,21 +7644,20 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum} - # for more details. + # {Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum} for more + # details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param maximum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :maximum] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum)] + # @return [Array(Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum)] end end @@ -7671,9 +7671,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute allocation_price # The definition of a new allocation price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil] optional :allocation_price, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice }, + -> { Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice }, nil?: true # @!attribute discounts @@ -7682,9 +7682,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. # - # @return [Array, nil] + # @return [Array, nil] optional :discounts, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Discount] }, nil?: true # @!attribute external_price_id @@ -7720,8 +7720,8 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage, nil] - optional :price, union: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price }, nil?: true + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage, nil] + optional :price, union: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price }, nil?: true # @!attribute price_id # The id of the price to add to the subscription. @@ -7731,30 +7731,27 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!method initialize(replaces_price_id:, allocation_price: nil, discounts: nil, external_price_id: nil, fixed_price_quantity: nil, maximum_amount: nil, minimum_amount: nil, price: nil, price_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice} for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice} for more details. # # @param replaces_price_id [String] The id of the price on the plan to replace in the subscription. # - # @param allocation_price [Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. + # @param allocation_price [Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. # - # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the r - # ... + # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the r # # @param external_price_id [String, nil] The external price id of the price to add to the subscription. # # @param fixed_price_quantity [Float, nil] The new quantity of the price, if the price is a fixed price. # # @param maximum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # ... # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # ... # - # @param price [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice#allocation_price + # @see Orb::SubscriptionCreateParams::ReplacePrice#allocation_price class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute amount # An amount of the currency to allocate to the customer at the specified cadence. @@ -7765,9 +7762,11 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence at which to allocate the amount to the customer. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence + } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -7785,24 +7784,21 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice} for more details. # # The definition of a new allocation price to create and add to the subscription. # # @param amount [String] An amount of the currency to allocate to the customer at the specified cadence. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. # # @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill - # ... # # @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove - # ... # The cadence at which to allocate the amount to the customer. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7821,9 +7817,11 @@ module Cadence class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType] required :discount_type, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType + } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -7847,20 +7845,17 @@ class Discount < Orb::Internal::Type::BaseModel # @!method initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Discount} for more details. # - # @param discount_type [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType] + # @param discount_type [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType] # # @param amount_discount [String, nil] Only available if discount_type is `amount`. # # @param percentage_discount [Float, nil] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param usage_discount [Float, nil] Only available if discount_type is `usage`. Number of usage units that this disc - # ... - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount#discount_type + # @see Orb::SubscriptionCreateParams::ReplacePrice::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -7875,84 +7870,94 @@ module DiscountType # The definition of a new price to create and add to the subscription. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice#price + # @see Orb::SubscriptionCreateParams::ReplacePrice#price module Price extend Orb::Internal::Type::Union discriminator :model_type - variant :unit, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit } + variant :unit, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit } - variant :package, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package } + variant :package, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Package } - variant :matrix, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix } + variant :matrix, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix } - variant :tiered, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered } + variant :tiered, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps } + variant :tiered_bps, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps } - variant :bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps } + variant :bps, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps } - variant :bulk_bps, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps } + variant :bulk_bps, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps } - variant :bulk, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk } + variant :bulk, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk } variant :threshold_total_amount, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount } - variant :tiered_package, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage } + variant :tiered_package, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage } variant :tiered_with_minimum, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum + } variant :unit_with_percent, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent + } variant :package_with_allocation, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation } variant :tiered_with_proration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration + } variant :grouped_allocation, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation + } variant :grouped_with_prorated_minimum, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum } variant :bulk_with_proration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration + } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing } variant :cumulative_grouped_bulk, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk } variant :max_group_tiered_package, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage } variant :grouped_with_metered_minimum, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum } variant :matrix_with_display_name, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName } variant :grouped_tiered_package, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -7973,8 +7978,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig] - required :unit_config, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig } + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig] + required :unit_config, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -7994,9 +7999,11 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8035,9 +8042,11 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8057,52 +8066,43 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig] + # @param unit_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8117,7 +8117,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit#unit_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -8129,7 +8129,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8140,9 +8140,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8150,11 +8152,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8166,7 +8168,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8177,9 +8179,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8187,11 +8191,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8208,9 +8212,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8231,9 +8237,9 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig] required :package_config, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -8253,9 +8259,11 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8294,9 +8302,11 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8316,52 +8326,43 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Package} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig] + # @param package_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8376,7 +8377,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package#package_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -8393,16 +8394,15 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig} for + # more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8413,9 +8413,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8423,11 +8425,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8439,7 +8441,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8450,9 +8452,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8460,11 +8464,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8481,9 +8485,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8493,9 +8499,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig] required :matrix_config, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig + } # @!attribute model_type # @@ -8526,9 +8534,11 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8567,9 +8577,11 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8589,52 +8601,43 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8649,7 +8652,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix#matrix_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -8666,16 +8669,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -8694,17 +8699,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8715,9 +8719,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8725,11 +8731,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8741,7 +8747,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8752,9 +8758,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8762,11 +8770,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8783,9 +8791,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8806,9 +8816,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig] required :tiered_config, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig } + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -8828,9 +8840,11 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8869,9 +8883,11 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8891,52 +8907,43 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8951,17 +8958,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered#tiered_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -8991,7 +9000,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9002,9 +9011,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9012,11 +9023,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9028,7 +9039,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9039,9 +9050,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9049,11 +9062,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9070,9 +9083,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -9093,9 +9108,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] required :tiered_bps_config, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -9115,9 +9130,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9156,9 +9173,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9178,52 +9197,44 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps} for more + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps} for more # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9238,23 +9249,24 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#tiered_bps_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -9292,7 +9304,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9303,9 +9315,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9313,11 +9327,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9329,7 +9343,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9340,9 +9354,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9350,11 +9366,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9370,14 +9386,14 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig] - required :bps_config, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig } + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig] + required :bps_config, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -9414,9 +9430,11 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9455,9 +9473,11 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9477,50 +9497,41 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps} for more details. # - # @param bps_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig] + # @param bps_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps#bps_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -9542,7 +9553,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9557,7 +9568,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9568,9 +9579,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9578,11 +9591,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9594,7 +9607,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9605,9 +9618,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9615,11 +9630,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9635,16 +9650,18 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] required :bulk_bps_config, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig } + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -9681,9 +9698,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9722,9 +9741,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9744,66 +9765,58 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps} for more details. # - # @param bulk_bps_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#bulk_bps_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig} for + # more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -9835,7 +9848,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9850,7 +9863,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9861,9 +9874,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9871,11 +9886,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9887,7 +9902,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9898,9 +9913,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9908,11 +9925,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9928,14 +9945,14 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig] - required :bulk_config, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig } + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig] + required :bulk_config, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence } + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -9972,9 +9989,11 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10013,9 +10032,11 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10035,60 +10056,53 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk} for more - # details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk} for more details. # - # @param bulk_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk#bulk_config + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -10112,7 +10126,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10127,7 +10141,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10138,9 +10152,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10148,11 +10164,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10164,7 +10180,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10175,9 +10191,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10185,11 +10203,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10206,9 +10224,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10250,9 +10270,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10291,9 +10313,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10313,10 +10337,10 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10325,40 +10349,32 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10373,7 +10389,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10384,9 +10400,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10394,11 +10412,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10410,7 +10428,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10421,9 +10439,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10431,11 +10451,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10452,9 +10472,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10496,9 +10518,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10537,9 +10561,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10559,10 +10585,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage} for - # more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10571,40 +10597,32 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10619,7 +10637,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10630,9 +10648,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10640,11 +10660,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10656,7 +10676,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10667,9 +10687,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10677,11 +10699,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10698,9 +10720,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10742,9 +10766,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10783,9 +10809,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10805,10 +10833,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10817,40 +10845,32 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10865,7 +10885,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10876,9 +10896,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10886,11 +10908,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10902,7 +10924,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10913,9 +10935,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10923,11 +10947,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10944,9 +10968,9 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence } + enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -10988,9 +11012,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11029,9 +11055,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11051,10 +11079,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11063,40 +11091,32 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11111,7 +11131,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11122,9 +11142,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11132,11 +11154,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11148,7 +11170,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11159,9 +11181,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11169,11 +11193,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11190,9 +11214,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11235,9 +11261,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11276,9 +11304,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11298,10 +11328,10 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11310,40 +11340,32 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11358,7 +11380,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11369,9 +11391,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11379,11 +11403,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11395,7 +11419,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11406,9 +11430,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11416,11 +11442,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11437,9 +11463,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11481,9 +11509,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11522,9 +11552,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11544,10 +11576,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11556,40 +11588,32 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11604,7 +11628,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11615,9 +11639,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11625,11 +11651,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11641,7 +11667,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11652,9 +11678,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11662,11 +11690,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11683,9 +11711,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11727,9 +11757,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11768,9 +11800,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11790,10 +11824,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11802,40 +11836,32 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11850,7 +11876,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11861,9 +11887,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11871,11 +11899,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11887,7 +11915,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11898,9 +11926,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11908,11 +11938,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11929,9 +11959,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence + } # @!attribute grouped_allocation_config # @@ -11973,9 +12005,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12014,9 +12048,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12036,10 +12072,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param grouped_allocation_config [Hash{Symbol=>Object}] # @@ -12048,40 +12084,32 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12096,7 +12124,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12107,9 +12135,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12117,11 +12147,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12133,7 +12163,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12144,9 +12174,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12154,11 +12186,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12175,9 +12207,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence + } # @!attribute grouped_with_prorated_minimum_config # @@ -12220,9 +12254,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12261,9 +12297,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12283,10 +12321,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # @@ -12295,40 +12333,32 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12343,7 +12373,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12354,9 +12384,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12364,11 +12396,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12380,7 +12412,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12391,9 +12423,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12401,11 +12435,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12427,9 +12461,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12466,9 +12502,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12507,9 +12545,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12529,52 +12569,44 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration} for more + # details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12589,7 +12621,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12600,9 +12632,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12610,11 +12644,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12626,7 +12660,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12637,9 +12671,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12647,11 +12683,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12668,9 +12704,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12713,9 +12751,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12754,9 +12794,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12776,10 +12818,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -12788,40 +12830,32 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12836,7 +12870,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12847,9 +12881,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12857,11 +12893,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12873,7 +12909,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12884,9 +12920,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12894,11 +12932,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12915,9 +12953,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12960,9 +13000,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13001,9 +13043,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13023,10 +13067,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -13035,40 +13079,32 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13083,7 +13119,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13094,9 +13130,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13104,11 +13142,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13120,7 +13158,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13131,9 +13169,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13141,11 +13181,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13162,9 +13202,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence + } # @!attribute cumulative_grouped_bulk_config # @@ -13207,9 +13249,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13248,9 +13292,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13270,10 +13316,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -13282,40 +13328,32 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13330,7 +13368,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13341,9 +13379,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13351,11 +13391,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13367,7 +13407,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13378,9 +13418,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13388,11 +13430,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13409,9 +13451,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -13454,9 +13498,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13495,9 +13541,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13517,10 +13565,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -13529,40 +13577,32 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13577,7 +13617,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13588,9 +13628,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13598,11 +13640,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13614,7 +13656,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13625,9 +13667,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13635,11 +13679,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13656,9 +13700,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence + } # @!attribute grouped_with_metered_minimum_config # @@ -13701,9 +13747,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13742,9 +13790,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13764,10 +13814,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum} + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # @@ -13776,40 +13826,32 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13824,7 +13866,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13835,9 +13877,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13845,11 +13889,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13861,7 +13905,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13872,9 +13916,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13882,11 +13928,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13903,9 +13949,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -13948,9 +13996,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13989,9 +14039,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -14011,10 +14063,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -14023,40 +14075,32 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -14071,7 +14115,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14082,9 +14126,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -14092,11 +14138,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14108,7 +14154,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14119,9 +14165,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14129,11 +14177,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14150,9 +14198,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence + } # @!attribute grouped_tiered_package_config # @@ -14194,9 +14244,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -14235,9 +14287,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -14257,10 +14311,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage} - # for more details. + # {Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # @@ -14269,40 +14323,32 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#cadence + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -14317,7 +14363,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14328,9 +14374,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -14338,11 +14386,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14354,7 +14402,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14365,9 +14413,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14375,11 +14425,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14393,7 +14443,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage)] + # @return [Array(Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage)] end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 9b268aaa..d8ea4be3 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -88,8 +88,8 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -214,32 +214,24 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -252,17 +244,14 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -275,7 +264,6 @@ class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionCreateResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionCreateResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -390,14 +378,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -453,12 +439,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -520,10 +504,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -591,12 +573,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -658,10 +638,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -707,13 +685,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -826,7 +801,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -884,7 +858,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -964,7 +937,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1012,7 +984,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1092,8 +1063,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1122,27 +1093,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1218,39 +1182,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_fetch_costs_params.rb b/lib/orb/models/subscription_fetch_costs_params.rb index 9a6d01f9..0f8240eb 100644 --- a/lib/orb/models/subscription_fetch_costs_params.rb +++ b/lib/orb/models/subscription_fetch_costs_params.rb @@ -31,8 +31,8 @@ class SubscriptionFetchCostsParams < Orb::Internal::Type::BaseModel # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @return [Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode, nil] - optional :view_mode, enum: -> { Orb::Models::SubscriptionFetchCostsParams::ViewMode }, nil?: true + # @return [Symbol, Orb::SubscriptionFetchCostsParams::ViewMode, nil] + optional :view_mode, enum: -> { Orb::SubscriptionFetchCostsParams::ViewMode }, nil?: true # @!method initialize(currency: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) # Some parameter documentations has been truncated, see @@ -44,8 +44,7 @@ class SubscriptionFetchCostsParams < Orb::Internal::Type::BaseModel # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/subscription_fetch_costs_response.rb b/lib/orb/models/subscription_fetch_costs_response.rb index dccb6911..a58ef902 100644 --- a/lib/orb/models/subscription_fetch_costs_response.rb +++ b/lib/orb/models/subscription_fetch_costs_response.rb @@ -56,8 +56,8 @@ class PerPriceCost < Orb::Internal::Type::BaseModel # @!attribute price # The price object # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute price_id # The price the cost is associated with @@ -84,7 +84,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel optional :quantity, Float, nil?: true # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil) - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The price object + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The price object # # @param price_id [String] The price the cost is associated with # diff --git a/lib/orb/models/subscription_fetch_schedule_params.rb b/lib/orb/models/subscription_fetch_schedule_params.rb index 349565ec..d2727853 100644 --- a/lib/orb/models/subscription_fetch_schedule_params.rb +++ b/lib/orb/models/subscription_fetch_schedule_params.rb @@ -45,7 +45,6 @@ class SubscriptionFetchScheduleParams < Orb::Internal::Type::BaseModel # {Orb::Models::SubscriptionFetchScheduleParams} for more details. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # diff --git a/lib/orb/models/subscription_fetch_schedule_response.rb b/lib/orb/models/subscription_fetch_schedule_response.rb index ff7245e0..51298345 100644 --- a/lib/orb/models/subscription_fetch_schedule_response.rb +++ b/lib/orb/models/subscription_fetch_schedule_response.rb @@ -57,7 +57,6 @@ class Plan < Orb::Internal::Type::BaseModel # @param id [String, nil] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param name [String, nil] end diff --git a/lib/orb/models/subscription_fetch_usage_params.rb b/lib/orb/models/subscription_fetch_usage_params.rb index bdbd598c..0ec26dba 100644 --- a/lib/orb/models/subscription_fetch_usage_params.rb +++ b/lib/orb/models/subscription_fetch_usage_params.rb @@ -28,8 +28,8 @@ class SubscriptionFetchUsageParams < Orb::Internal::Type::BaseModel # @!attribute granularity # This determines the windowing of usage reporting. # - # @return [Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity, nil] - optional :granularity, enum: -> { Orb::Models::SubscriptionFetchUsageParams::Granularity }, nil?: true + # @return [Symbol, Orb::SubscriptionFetchUsageParams::Granularity, nil] + optional :granularity, enum: -> { Orb::SubscriptionFetchUsageParams::Granularity }, nil?: true # @!attribute group_by # Groups per-price usage by the key provided. @@ -65,21 +65,20 @@ class SubscriptionFetchUsageParams < Orb::Internal::Type::BaseModel # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @return [Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode, nil] - optional :view_mode, enum: -> { Orb::Models::SubscriptionFetchUsageParams::ViewMode }, nil?: true + # @return [Symbol, Orb::SubscriptionFetchUsageParams::ViewMode, nil] + optional :view_mode, enum: -> { Orb::SubscriptionFetchUsageParams::ViewMode }, nil?: true # @!method initialize(billable_metric_id: nil, first_dimension_key: nil, first_dimension_value: nil, granularity: nil, group_by: nil, second_dimension_key: nil, second_dimension_value: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionFetchUsageParams} for more details. # # @param billable_metric_id [String, nil] When specified in conjunction with `group_by`, this parameter filters usage to a - # ... # # @param first_dimension_key [String, nil] # # @param first_dimension_value [String, nil] # - # @param granularity [Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting. + # @param granularity [Symbol, Orb::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting. # # @param group_by [String, nil] Groups per-price usage by the key provided. # @@ -91,8 +90,7 @@ class SubscriptionFetchUsageParams < Orb::Internal::Type::BaseModel # # @param timeframe_start [Time, nil] Usage returned is inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/subscription_list_params.rb b/lib/orb/models/subscription_list_params.rb index 7ffe6c73..a01a98c2 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -52,8 +52,8 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # @!attribute status # - # @return [Symbol, Orb::Models::SubscriptionListParams::Status, nil] - optional :status, enum: -> { Orb::Models::SubscriptionListParams::Status }, nil?: true + # @return [Symbol, Orb::SubscriptionListParams::Status, nil] + optional :status, enum: -> { Orb::SubscriptionListParams::Status }, nil?: true # @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see @@ -68,7 +68,6 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [Array, nil] # @@ -76,7 +75,7 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil] + # @param status [Symbol, Orb::SubscriptionListParams::Status, nil] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index b3324e30..7ef4e1f8 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -10,15 +10,15 @@ class SubscriptionPriceIntervalsParams < Orb::Internal::Type::BaseModel # @!attribute add # A list of price intervals to add to the subscription. # - # @return [Array, nil] - optional :add, -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add] } + # @return [Array, nil] + optional :add, -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add] } # @!attribute add_adjustments # A list of adjustments to add to the subscription. # - # @return [Array, nil] + # @return [Array, nil] optional :add_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment] } + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::AddAdjustment] } # @!attribute allow_invoice_credit_or_void # If false, this request will fail if it would void an issued invoice or create a @@ -31,30 +31,29 @@ class SubscriptionPriceIntervalsParams < Orb::Internal::Type::BaseModel # @!attribute edit # A list of price intervals to edit on the subscription. # - # @return [Array, nil] - optional :edit, -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Edit] } + # @return [Array, nil] + optional :edit, -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Edit] } # @!attribute edit_adjustments # A list of adjustments to edit on the subscription. # - # @return [Array, nil] + # @return [Array, nil] optional :edit_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] } + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::EditAdjustment] } # @!method initialize(add: nil, add_adjustments: nil, allow_invoice_credit_or_void: nil, edit: nil, edit_adjustments: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionPriceIntervalsParams} for more details. # - # @param add [Array] A list of price intervals to add to the subscription. + # @param add [Array] A list of price intervals to add to the subscription. # - # @param add_adjustments [Array] A list of adjustments to add to the subscription. + # @param add_adjustments [Array] A list of adjustments to add to the subscription. # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # - # @param edit [Array] A list of price intervals to edit on the subscription. + # @param edit [Array] A list of price intervals to edit on the subscription. # - # @param edit_adjustments [Array] A list of adjustments to edit on the subscription. + # @param edit_adjustments [Array] A list of adjustments to edit on the subscription. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -63,31 +62,35 @@ class Add < Orb::Internal::Type::BaseModel # The start date of the price interval. This is the date that the price will start # billing on the subscription. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate] - required :start_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::StartDate } + # @return [Time, Symbol, Orb::BillingCycleRelativeDate] + required :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::StartDate } # @!attribute allocation_price # The definition of a new allocation price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice, nil] optional :allocation_price, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice + }, nil?: true # @!attribute discounts # A list of discounts to initialize on the price interval. # - # @return [Array, nil] + # @return [Array, nil] optional :discounts, - -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount] }, + -> { + Orb::Internal::Type::ArrayOf[union: Orb::SubscriptionPriceIntervalsParams::Add::Discount] + }, nil?: true # @!attribute end_date # The end date of the price interval. This is the date that the price will stop # billing on the subscription. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :end_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate }, nil?: true + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] + optional :end_date, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::EndDate }, nil?: true # @!attribute external_price_id # The external price id of the price to add to the subscription. @@ -107,9 +110,11 @@ class Add < Orb::Internal::Type::BaseModel # @!attribute fixed_fee_quantity_transitions # A list of fixed fee quantity transitions to initialize on the price interval. # - # @return [Array, nil] + # @return [Array, nil] optional :fixed_fee_quantity_transitions, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition] + }, nil?: true # @!attribute maximum_amount @@ -129,8 +134,8 @@ class Add < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk, nil] - optional :price, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price }, nil?: true + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk, nil] + optional :price, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price }, nil?: true # @!attribute price_id # The id of the price to add to the subscription. @@ -151,54 +156,48 @@ class Add < Orb::Internal::Type::BaseModel # @!method initialize(start_date:, allocation_price: nil, discounts: nil, end_date: nil, external_price_id: nil, filter: nil, fixed_fee_quantity_transitions: nil, maximum_amount: nil, minimum_amount: nil, price: nil, price_id: nil, usage_customer_ids: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add} for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add} for more details. # - # @param start_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate] The start date of the price interval. This is the date that the price will start - # ... + # @param start_date [Time, Symbol, Orb::BillingCycleRelativeDate] The start date of the price interval. This is the date that the price will start # - # @param allocation_price [Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. + # @param allocation_price [Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. # - # @param discounts [Array, nil] A list of discounts to initialize on the price interval. + # @param discounts [Array, nil] A list of discounts to initialize on the price interval. # - # @param end_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] The end date of the price interval. This is the date that the price will stop bi - # ... + # @param end_date [Time, Symbol, Orb::BillingCycleRelativeDate, nil] The end date of the price interval. This is the date that the price will stop bi # # @param external_price_id [String, nil] The external price id of the price to add to the subscription. # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # - # @param fixed_fee_quantity_transitions [Array, nil] A list of fixed fee quantity transitions to initialize on the price interval. + # @param fixed_fee_quantity_transitions [Array, nil] A list of fixed fee quantity transitions to initialize on the price interval. # # @param maximum_amount [Float, nil] The maximum amount that will be billed for this price interval for a given billi - # ... # # @param minimum_amount [Float, nil] The minimum amount that will be billed for this price interval for a given billi - # ... # - # @param price [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # The start date of the price interval. This is the date that the price will start # billing on the subscription. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add#start_date + # @see Orb::SubscriptionPriceIntervalsParams::Add#start_date module StartDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add#allocation_price + # @see Orb::SubscriptionPriceIntervalsParams::Add#allocation_price class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute amount # An amount of the currency to allocate to the customer at the specified cadence. @@ -209,9 +208,8 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence at which to allocate the amount to the customer. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence] - required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -229,24 +227,21 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice} for more details. # # The definition of a new allocation price to create and add to the subscription. # # @param amount [String] An amount of the currency to allocate to the customer at the specified cadence. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. # # @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill - # ... # # @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove - # ... # The cadence at which to allocate the amount to the customer. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice#cadence module Cadence extend Orb::Internal::Type::Enum @@ -267,11 +262,11 @@ module Discount discriminator :discount_type - variant :amount, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount } + variant :amount, -> { Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount } - variant :percentage, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage } + variant :percentage, -> { Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage } - variant :usage, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage } + variant :usage, -> { Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage } class Amount < Orb::Internal::Type::BaseModel # @!attribute amount_discount @@ -306,11 +301,10 @@ class Percentage < Orb::Internal::Type::BaseModel # @!method initialize(percentage_discount:, discount_type: :percentage) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage} for - # more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage} for more + # details. # # @param percentage_discount [Float] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param discount_type [Symbol, :percentage] end @@ -330,32 +324,30 @@ class Usage < Orb::Internal::Type::BaseModel # @!method initialize(usage_discount:, discount_type: :usage) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage} for more details. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage)] + # @return [Array(Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage)] end # The end date of the price interval. This is the date that the price will stop # billing on the subscription. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add#end_date + # @see Orb::SubscriptionPriceIntervalsParams::Add#end_date module EndDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel @@ -379,92 +371,102 @@ class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # The definition of a new price to create and add to the subscription. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add#price + # @see Orb::SubscriptionPriceIntervalsParams::Add#price module Price extend Orb::Internal::Type::Union discriminator :model_type - variant :unit, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit } + variant :unit, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit } - variant :package, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package } + variant :package, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Package } - variant :matrix, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix } + variant :matrix, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix } variant :matrix_with_allocation, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation } - variant :tiered, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered } + variant :tiered, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps } + variant :tiered_bps, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps } - variant :bps, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps } + variant :bps, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps } - variant :bulk_bps, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps } + variant :bulk_bps, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps } - variant :bulk, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk } + variant :bulk, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk } variant :threshold_total_amount, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount } - variant :tiered_package, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage } + variant :tiered_package, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage } - variant :grouped_tiered, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered } + variant :grouped_tiered, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered } variant :max_group_tiered_package, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage } variant :tiered_with_minimum, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum + } variant :package_with_allocation, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation } variant :tiered_package_with_minimum, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum } variant :unit_with_percent, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent + } variant :tiered_with_proration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration } variant :unit_with_proration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration + } variant :grouped_allocation, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation + } variant :grouped_with_prorated_minimum, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum } variant :grouped_with_metered_minimum, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum } variant :matrix_with_display_name, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName } variant :bulk_with_proration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration + } variant :grouped_tiered_package, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing } variant :cumulative_grouped_bulk, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -491,8 +493,8 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig] - required :unit_config, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig } + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig] + required :unit_config, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -512,9 +514,11 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -546,9 +550,11 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -561,10 +567,9 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -572,37 +577,31 @@ class Unit < Orb::Internal::Type::BaseModel # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig] + # @param unit_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -617,7 +616,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit#unit_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -629,7 +628,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -640,9 +639,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -650,11 +651,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -666,7 +667,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -677,9 +678,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -687,11 +690,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -708,9 +711,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -737,9 +742,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig] required :package_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -759,9 +766,11 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -793,9 +802,11 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -808,10 +819,9 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Package} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -819,37 +829,31 @@ class Package < Orb::Internal::Type::BaseModel # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig] + # @param package_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -864,7 +868,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package#package_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -881,16 +885,15 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig} for + # more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -901,9 +904,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -911,11 +916,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -927,7 +932,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -938,9 +943,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -948,11 +955,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -969,8 +976,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -986,9 +993,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig] required :matrix_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig + } # @!attribute model_type # @@ -1019,9 +1028,11 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1053,9 +1064,11 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1068,48 +1081,41 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1124,7 +1130,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix#matrix_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1141,16 +1147,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -1169,17 +1177,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1190,9 +1197,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1200,11 +1209,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1216,7 +1225,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1227,9 +1236,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1237,11 +1248,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1258,9 +1269,11 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1276,9 +1289,11 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!attribute matrix_with_allocation_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig] required :matrix_with_allocation_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig + } # @!attribute model_type # @@ -1309,9 +1324,11 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1343,9 +1360,11 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1358,48 +1377,42 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, matrix_with_allocation_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_allocation_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :matrix_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1414,7 +1427,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#matrix_with_allocation_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#matrix_with_allocation_config class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute allocation # Allocation to be used to calculate the price @@ -1437,11 +1450,11 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, -> do Orb::Internal::Type::ArrayOf[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue ] end @@ -1452,7 +1465,7 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -1471,17 +1484,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1492,9 +1504,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1502,11 +1516,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1518,7 +1532,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1529,9 +1543,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1539,11 +1555,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1560,8 +1576,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1588,9 +1604,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig] required :tiered_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig } + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1610,9 +1628,11 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1644,9 +1664,11 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1659,10 +1681,9 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -1670,37 +1691,31 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1715,17 +1730,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered#tiered_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -1755,7 +1772,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1766,9 +1783,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1776,11 +1795,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1792,7 +1811,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1803,9 +1822,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1813,11 +1834,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1834,9 +1855,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -1863,9 +1886,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig] required :tiered_bps_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1885,9 +1908,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1919,9 +1944,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1934,10 +1961,9 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps} for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -1945,37 +1971,31 @@ class TieredBps < Orb::Internal::Type::BaseModel # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1990,23 +2010,24 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#tiered_bps_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2044,7 +2065,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2055,9 +2076,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2065,11 +2088,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2081,7 +2104,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2092,9 +2115,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2102,11 +2127,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2122,14 +2147,14 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig] - required :bps_config, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig } + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig] + required :bps_config, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2172,9 +2197,9 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration }, + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration }, nil?: true # @!attribute conversion_rate @@ -2206,9 +2231,11 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2221,12 +2248,11 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, currency:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps} for more details. # - # @param bps_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig] + # @param bps_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -2235,32 +2261,26 @@ class Bps < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps#bps_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -2282,7 +2302,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2297,7 +2317,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2308,9 +2328,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2318,11 +2340,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2334,7 +2356,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2345,9 +2367,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2355,11 +2379,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2375,16 +2399,18 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig] required :bulk_bps_config, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig } + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2427,9 +2453,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2461,9 +2489,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2476,12 +2506,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, currency:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps} for more details. # - # @param bulk_bps_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -2490,48 +2519,43 @@ class BulkBps < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#bulk_bps_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig} for + # more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2563,7 +2587,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2578,7 +2602,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2589,9 +2613,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2599,11 +2625,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2615,7 +2641,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2626,9 +2652,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2636,11 +2664,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2656,14 +2684,14 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig] - required :bulk_config, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig } + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig] + required :bulk_config, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence } + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2706,9 +2734,11 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2740,9 +2770,11 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2755,12 +2787,11 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, currency:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk} for more details. # - # @param bulk_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -2769,42 +2800,38 @@ class Bulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk#bulk_config + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -2828,7 +2855,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2843,7 +2870,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2854,9 +2881,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2864,11 +2893,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2880,7 +2909,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2891,9 +2920,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2901,11 +2932,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2922,9 +2953,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -2972,9 +3005,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3006,9 +3041,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3021,10 +3058,10 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -3035,34 +3072,28 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3077,7 +3108,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3088,9 +3119,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3098,11 +3131,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3114,7 +3147,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3125,9 +3158,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3135,11 +3170,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3156,9 +3191,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3206,9 +3243,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3240,9 +3279,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3255,10 +3296,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage} for - # more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -3269,34 +3310,28 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3311,7 +3346,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3322,9 +3357,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3332,11 +3369,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3348,7 +3385,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3359,9 +3396,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3369,11 +3408,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3390,9 +3429,11 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3440,9 +3481,11 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3474,9 +3517,11 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3489,10 +3534,10 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, grouped_tiered_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered} for - # more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -3503,34 +3548,28 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3545,7 +3584,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3556,9 +3595,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3566,11 +3607,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3582,7 +3623,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3593,9 +3634,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3603,11 +3646,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3624,9 +3667,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3675,9 +3720,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3709,9 +3756,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3724,10 +3773,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -3738,34 +3787,28 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3780,7 +3823,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3791,9 +3834,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3801,11 +3846,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3817,7 +3862,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3828,9 +3873,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3838,11 +3885,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3859,9 +3906,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -3909,9 +3958,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3943,9 +3994,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3958,10 +4011,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -3972,34 +4025,28 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4014,7 +4061,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4025,9 +4072,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4035,11 +4084,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4051,7 +4100,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4062,9 +4111,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4072,11 +4123,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4093,9 +4144,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4144,9 +4197,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4178,9 +4233,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4193,10 +4250,10 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -4207,34 +4264,28 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4249,7 +4300,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4260,9 +4311,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4270,11 +4323,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4286,7 +4339,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4297,9 +4350,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4307,11 +4362,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4328,9 +4383,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4379,9 +4436,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4413,9 +4472,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4428,10 +4489,10 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_package_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -4442,34 +4503,28 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_package_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4484,7 +4539,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4495,9 +4550,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4505,11 +4562,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4521,7 +4578,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4532,9 +4589,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4542,11 +4601,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4563,9 +4622,9 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence } + enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4613,9 +4672,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4647,9 +4708,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4662,10 +4725,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent} for - # more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -4676,34 +4739,28 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4718,7 +4775,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4729,9 +4786,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4739,11 +4798,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4755,7 +4814,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4766,9 +4825,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4776,11 +4837,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4797,9 +4858,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -4847,9 +4910,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4881,9 +4946,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4896,10 +4963,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -4910,34 +4977,28 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4952,7 +5013,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4963,9 +5024,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4973,11 +5036,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4989,7 +5052,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5000,9 +5063,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5010,11 +5075,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5031,9 +5096,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5081,9 +5148,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5115,9 +5184,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5130,10 +5201,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -5144,34 +5215,28 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5186,7 +5251,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5197,9 +5262,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5207,11 +5274,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5223,7 +5290,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5234,9 +5301,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5244,11 +5313,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5265,9 +5334,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5315,9 +5386,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5349,9 +5422,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5364,10 +5439,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -5378,34 +5453,28 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5420,7 +5489,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5431,9 +5500,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5441,11 +5512,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5457,7 +5528,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5468,9 +5539,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5478,11 +5551,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5499,9 +5572,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5550,9 +5625,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5584,9 +5661,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5599,10 +5678,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -5613,34 +5692,28 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5655,7 +5728,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5666,9 +5739,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5676,11 +5751,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5692,7 +5767,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5703,9 +5778,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5713,11 +5790,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5734,9 +5811,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -5785,9 +5864,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5819,9 +5900,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5834,10 +5917,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -5848,34 +5931,28 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5890,7 +5967,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5901,9 +5978,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5911,11 +5990,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5927,7 +6006,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5938,9 +6017,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5948,11 +6029,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5969,9 +6050,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6020,9 +6103,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6054,9 +6139,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6069,10 +6156,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -6083,34 +6170,28 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6125,7 +6206,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6136,9 +6217,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6146,11 +6229,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6162,7 +6245,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6173,9 +6256,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6183,11 +6268,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6209,9 +6294,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6254,9 +6341,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6288,9 +6377,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6303,12 +6394,12 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, currency:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration} for more + # details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -6317,34 +6408,28 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6359,7 +6444,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6370,9 +6455,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6380,11 +6467,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6396,7 +6483,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6407,9 +6494,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6417,11 +6506,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6438,9 +6527,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6488,9 +6579,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6522,9 +6615,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6537,10 +6632,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -6551,34 +6646,28 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6593,7 +6682,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6604,9 +6693,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6614,11 +6705,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6630,7 +6721,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6641,9 +6732,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6651,11 +6744,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6672,9 +6765,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6723,9 +6818,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6757,9 +6854,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6772,10 +6871,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -6786,34 +6885,28 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6828,7 +6921,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6839,9 +6932,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6849,11 +6944,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6865,7 +6960,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6876,9 +6971,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6886,11 +6983,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6907,9 +7004,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -6958,9 +7057,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6992,9 +7093,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -7007,10 +7110,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, currency:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing} + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # @@ -7021,34 +7124,28 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7063,7 +7160,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7074,9 +7171,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7084,11 +7183,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7100,7 +7199,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7111,9 +7210,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7121,11 +7222,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7142,9 +7243,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence + } # @!attribute cumulative_grouped_bulk_config # @@ -7193,9 +7296,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -7227,9 +7332,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -7242,10 +7349,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, currency:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -7256,34 +7363,28 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#cadence + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7298,7 +7399,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7309,9 +7410,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7319,11 +7422,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7335,7 +7438,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7346,9 +7449,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7356,11 +7461,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7374,7 +7479,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk)] + # @return [Array(Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk)] end end @@ -7382,9 +7487,8 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @!attribute adjustment # The definition of a new adjustment to create and add to the subscription. # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] - required :adjustment, - union: -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment } + # @return [Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] + required :adjustment, union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment } # @!attribute start_date # The start date of the adjustment interval. This is the date that the adjustment @@ -7392,9 +7496,8 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate] - required :start_date, - union: -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate } + # @return [Time, Symbol, Orb::BillingCycleRelativeDate] + required :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate } # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment @@ -7402,43 +7505,41 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] optional :end_date, - union: -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate }, + union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate }, nil?: true # @!method initialize(adjustment:, start_date:, end_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment} for more details. + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment} for more details. # - # @param adjustment [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. + # @param adjustment [Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. # - # @param start_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate] The start date of the adjustment interval. This is the date that the adjustment - # ... + # @param start_date [Time, Symbol, Orb::BillingCycleRelativeDate] The start date of the adjustment interval. This is the date that the adjustment # - # @param end_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] The end date of the adjustment interval. This is the date that the adjustment wi - # ... + # @param end_date [Time, Symbol, Orb::BillingCycleRelativeDate, nil] The end date of the adjustment interval. This is the date that the adjustment wi # The definition of a new adjustment to create and add to the subscription. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#adjustment + # @see Orb::SubscriptionPriceIntervalsParams::AddAdjustment#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :percentage_discount, - -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount } + -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount } variant :usage_discount, - -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount } + -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount } variant :amount_discount, - -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount } + -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount } - variant :minimum, -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum } + variant :minimum, -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum } - variant :maximum, -> { Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum } + variant :maximum, -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum } class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute adjustment_type @@ -7466,7 +7567,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount} + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7474,7 +7575,6 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param percentage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :percentage_discount] end @@ -7505,7 +7605,7 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount} + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7513,7 +7613,6 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param usage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -7544,7 +7643,7 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount} + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount} # for more details. # # @param amount_discount [String] @@ -7552,7 +7651,6 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :amount_discount] end @@ -7589,8 +7687,8 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum} for + # more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # @@ -7599,7 +7697,6 @@ class Minimum < Orb::Internal::Type::BaseModel # @param minimum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :minimum] end @@ -7630,21 +7727,20 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum} - # for more details. + # {Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum} for + # more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param maximum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :maximum] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum)] + # @return [Array(Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum)] end # The start date of the adjustment interval. This is the date that the adjustment @@ -7652,16 +7748,16 @@ class Maximum < Orb::Internal::Type::BaseModel # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#start_date + # @see Orb::SubscriptionPriceIntervalsParams::AddAdjustment#start_date module StartDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end # The end date of the adjustment interval. This is the date that the adjustment @@ -7669,16 +7765,16 @@ module StartDate # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#end_date + # @see Orb::SubscriptionPriceIntervalsParams::AddAdjustment#end_date module EndDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end end @@ -7701,8 +7797,8 @@ class Edit < Orb::Internal::Type::BaseModel # The updated end date of this price interval. If not specified, the start date # will not be updated. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :end_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate }, nil?: true + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] + optional :end_date, union: -> { Orb::SubscriptionPriceIntervalsParams::Edit::EndDate }, nil?: true # @!attribute filter # An additional filter to apply to usage queries. This filter must be expressed as @@ -7718,17 +7814,19 @@ class Edit < Orb::Internal::Type::BaseModel # that this list will overwrite all existing fixed fee quantity transitions on the # price interval. # - # @return [Array, nil] + # @return [Array, nil] optional :fixed_fee_quantity_transitions, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition] + }, nil?: true # @!attribute start_date # The updated start date of this price interval. If not specified, the start date # will not be updated. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :start_date, union: -> { Orb::Models::SubscriptionPriceIntervalsParams::Edit::StartDate } + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] + optional :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::Edit::StartDate } # @!attribute usage_customer_ids # A list of customer IDs whose usage events will be aggregated and billed under @@ -7743,41 +7841,35 @@ class Edit < Orb::Internal::Type::BaseModel # @!method initialize(price_interval_id:, billing_cycle_day: nil, end_date: nil, filter: nil, fixed_fee_quantity_transitions: nil, start_date: nil, usage_customer_ids: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Edit} for more details. + # {Orb::SubscriptionPriceIntervalsParams::Edit} for more details. # # @param price_interval_id [String] The id of the price interval to edit. # # @param billing_cycle_day [Integer, nil] The updated billing cycle day for this price interval. If not specified, the bil - # ... # - # @param end_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] The updated end date of this price interval. If not specified, the start date wi - # ... + # @param end_date [Time, Symbol, Orb::BillingCycleRelativeDate, nil] The updated end date of this price interval. If not specified, the start date wi # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # - # @param fixed_fee_quantity_transitions [Array, nil] A list of fixed fee quantity transitions to use for this price interval. Note th - # ... + # @param fixed_fee_quantity_transitions [Array, nil] A list of fixed fee quantity transitions to use for this price interval. Note th # - # @param start_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate] The updated start date of this price interval. If not specified, the start date - # ... + # @param start_date [Time, Symbol, Orb::BillingCycleRelativeDate] The updated start date of this price interval. If not specified, the start date # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # The updated end date of this price interval. If not specified, the start date # will not be updated. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Edit#end_date + # @see Orb::SubscriptionPriceIntervalsParams::Edit#end_date module EndDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel @@ -7802,16 +7894,16 @@ class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # The updated start date of this price interval. If not specified, the start date # will not be updated. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Edit#start_date + # @see Orb::SubscriptionPriceIntervalsParams::Edit#start_date module StartDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end end @@ -7826,60 +7918,56 @@ class EditAdjustment < Orb::Internal::Type::BaseModel # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] optional :end_date, - union: -> { Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate }, + union: -> { Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate }, nil?: true # @!attribute start_date # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. # - # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] - optional :start_date, - union: -> { Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate } + # @return [Time, Symbol, Orb::BillingCycleRelativeDate, nil] + optional :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate } # @!method initialize(adjustment_interval_id:, end_date: nil, start_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment} for more - # details. + # {Orb::SubscriptionPriceIntervalsParams::EditAdjustment} for more details. # # @param adjustment_interval_id [String] The id of the adjustment interval to edit. # - # @param end_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] The updated end date of this adjustment interval. If not specified, the start da - # ... + # @param end_date [Time, Symbol, Orb::BillingCycleRelativeDate, nil] The updated end date of this adjustment interval. If not specified, the start da # - # @param start_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate] The updated start date of this adjustment interval. If not specified, the start - # ... + # @param start_date [Time, Symbol, Orb::BillingCycleRelativeDate] The updated start date of this adjustment interval. If not specified, the start # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment#end_date + # @see Orb::SubscriptionPriceIntervalsParams::EditAdjustment#end_date module EndDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. # - # @see Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment#start_date + # @see Orb::SubscriptionPriceIntervalsParams::EditAdjustment#start_date module StartDate extend Orb::Internal::Type::Union variant Time - variant enum: -> { Orb::Models::BillingCycleRelativeDate } + variant enum: -> { Orb::BillingCycleRelativeDate } # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + # @return [Array(Time, Symbol, Orb::BillingCycleRelativeDate)] end end end diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index 0760122d..f3c25041 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -88,8 +88,8 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -218,32 +218,24 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -256,17 +248,14 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -279,7 +268,6 @@ class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -396,14 +384,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -459,12 +445,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -526,10 +510,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -597,12 +579,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -664,10 +644,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -713,13 +691,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -832,7 +807,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -890,7 +864,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -971,7 +944,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1020,7 +992,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1100,8 +1071,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1131,27 +1102,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1227,39 +1191,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index a5a7cca8..1a85e6ac 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -9,25 +9,25 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # @!attribute change_option # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption] - required :change_option, enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption } + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ChangeOption] + required :change_option, enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ChangeOption } # @!attribute add_adjustments # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :add_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment] }, nil?: true # @!attribute add_prices # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :add_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice] }, nil?: true # @!attribute align_billing_with_plan_change_date @@ -50,16 +50,16 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # start of the month. Defaults to `unchanged` which keeps subscription's existing # billing cycle alignment. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] optional :billing_cycle_alignment, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment }, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment }, nil?: true # @!attribute billing_cycle_anchor_configuration # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] optional :billing_cycle_anchor_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration }, + -> { Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration }, nil?: true # @!attribute change_date @@ -161,18 +161,20 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :remove_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment] + }, nil?: true # @!attribute remove_prices # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :remove_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice] }, nil?: true # @!attribute replace_adjustments @@ -180,18 +182,20 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # (Only available for accounts that have migrated off of legacy subscription # overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :replace_adjustments, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment] + }, nil?: true # @!attribute replace_prices # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) # - # @return [Array, nil] + # @return [Array, nil] optional :replace_prices, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice] }, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice] }, nil?: true # @!attribute trial_duration_days @@ -217,77 +221,57 @@ class SubscriptionSchedulePlanChangeParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionSchedulePlanChangeParams} for more details. # - # @param change_option [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption] + # @param change_option [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ChangeOption] # - # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco - # ... + # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco # - # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts - # ... + # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts # # @param align_billing_with_plan_change_date [Boolean, nil] [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be al - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # - # @param billing_cycle_alignment [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta - # ... + # @param billing_cycle_alignment [Symbol, Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta # - # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] + # @param billing_cycle_anchor_configuration [Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] # # @param change_date [Time, nil] The date that the plan change should take effect. This parameter can only be pas - # ... # # @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found - # ... # # @param credits_overage_rate [Float, nil] # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # # @param initial_phase_order [Integer, nil] The phase of the plan to start with # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # # @param per_credit_overage_amount [Float, nil] # # @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi - # ... # # @param plan_version_number [Integer, nil] Specifies which version of the plan to change to. If null, the default version w - # ... # # @param price_overrides [Array, nil] Optionally provide a list of overrides for prices on the plan # - # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun - # ... + # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun # - # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th - # ... + # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th # - # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. - # ... + # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. # - # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava - # ... + # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava # # @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -306,9 +290,11 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @!attribute adjustment # The definition of a new adjustment to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] required :adjustment, - union: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment } + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment + } # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment @@ -333,41 +319,44 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @!method initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment} for more - # details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment} for more details. # - # @param adjustment [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. + # @param adjustment [Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. # # @param end_date [Time, nil] The end date of the adjustment interval. This is the date that the adjustment wi - # ... # # @param plan_phase_order [Integer, nil] The phase to add this adjustment to. # # @param start_date [Time, nil] The start date of the adjustment interval. This is the date that the adjustment - # ... # The definition of a new adjustment to create and add to the subscription. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment#adjustment + # @see Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :percentage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount + } variant :usage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount } variant :amount_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount } variant :minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum + } variant :maximum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + } class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute adjustment_type @@ -395,7 +384,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -403,7 +392,6 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param percentage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :percentage_discount] end @@ -434,7 +422,7 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -442,7 +430,6 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param usage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -473,7 +460,7 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount} # for more details. # # @param amount_discount [String] @@ -481,7 +468,6 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :amount_discount] end @@ -518,7 +504,7 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum} + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -528,7 +514,6 @@ class Minimum < Orb::Internal::Type::BaseModel # @param minimum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :minimum] end @@ -559,7 +544,7 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum} + # {Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -567,13 +552,12 @@ class Maximum < Orb::Internal::Type::BaseModel # @param maximum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :maximum] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum)] + # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum)] end end @@ -581,9 +565,9 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute allocation_price # The definition of a new allocation price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, nil] optional :allocation_price, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice }, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice }, nil?: true # @!attribute discounts @@ -592,9 +576,11 @@ class AddPrice < Orb::Internal::Type::BaseModel # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. # - # @return [Array, nil] + # @return [Array, nil] optional :discounts, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount] + }, nil?: true # @!attribute end_date @@ -638,10 +624,8 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage, nil] - optional :price, - union: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price }, - nil?: true + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage, nil] + optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price }, nil?: true # @!attribute price_id # The id of the price to add to the subscription. @@ -659,34 +643,29 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!method initialize(allocation_price: nil, discounts: nil, end_date: nil, external_price_id: nil, maximum_amount: nil, minimum_amount: nil, plan_phase_order: nil, price: nil, price_id: nil, start_date: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice} for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice} for more details. # - # @param allocation_price [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. + # @param allocation_price [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. # - # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this - # ... + # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # # @param end_date [Time, nil] The end date of the price interval. This is the date that the price will stop bi - # ... # # @param external_price_id [String, nil] The external price id of the price to add to the subscription. # # @param maximum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # ... # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # ... # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # # @param start_date [Time, nil] The start date of the price interval. This is the date that the price will start - # ... - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice#allocation_price + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice#allocation_price class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute amount # An amount of the currency to allocate to the customer at the specified cadence. @@ -697,9 +676,9 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence at which to allocate the amount to the customer. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -717,24 +696,22 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice} for more + # details. # # The definition of a new allocation price to create and add to the subscription. # # @param amount [String] An amount of the currency to allocate to the customer at the specified cadence. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. # # @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill - # ... # # @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove - # ... # The cadence at which to allocate the amount to the customer. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice#cadence module Cadence extend Orb::Internal::Type::Enum @@ -753,9 +730,9 @@ module Cadence class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType] required :discount_type, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -779,20 +756,18 @@ class Discount < Orb::Internal::Type::BaseModel # @!method initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount} for more + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount} for more # details. # - # @param discount_type [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType] + # @param discount_type [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType] # # @param amount_discount [String, nil] Only available if discount_type is `amount`. # # @param percentage_discount [Float, nil] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param usage_discount [Float, nil] Only available if discount_type is `usage`. Number of usage units that this disc - # ... - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount#discount_type + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -807,86 +782,96 @@ module DiscountType # The definition of a new price to create and add to the subscription. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice#price + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice#price module Price extend Orb::Internal::Type::Union discriminator :model_type - variant :unit, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit } + variant :unit, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit } - variant :package, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package } + variant :package, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package } - variant :matrix, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix } + variant :matrix, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix } - variant :tiered, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered } + variant :tiered, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered } - variant :tiered_bps, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps } + variant :tiered_bps, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps } - variant :bps, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps } + variant :bps, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps } - variant :bulk_bps, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps } + variant :bulk_bps, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps } - variant :bulk, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk } + variant :bulk, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk } variant :threshold_total_amount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount } variant :tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage + } variant :tiered_with_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum } variant :unit_with_percent, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent } variant :package_with_allocation, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation } variant :tiered_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration } variant :unit_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration } variant :grouped_allocation, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation } variant :grouped_with_prorated_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum + } variant :bulk_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing + } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing + } variant :cumulative_grouped_bulk, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk } variant :max_group_tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage } variant :grouped_with_metered_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum } variant :matrix_with_display_name, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName } variant :grouped_tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -907,9 +892,11 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig] required :unit_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -929,9 +916,11 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -970,9 +959,11 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -992,52 +983,44 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig] + # @param unit_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1052,7 +1035,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#unit_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -1064,7 +1047,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1075,9 +1058,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1085,11 +1070,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1101,7 +1086,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1112,9 +1097,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1122,11 +1109,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1143,9 +1130,9 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1166,9 +1153,9 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig] required :package_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1188,9 +1175,11 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1229,9 +1218,11 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1251,52 +1242,44 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig] + # @param package_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1311,7 +1294,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#package_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -1328,16 +1311,15 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig} # for more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1348,9 +1330,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1358,11 +1342,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1374,7 +1358,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1385,9 +1369,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1395,11 +1381,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1416,9 +1402,9 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1428,9 +1414,9 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig] required :matrix_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig } # @!attribute model_type # @@ -1461,9 +1447,11 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1502,9 +1490,11 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1524,52 +1514,44 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1584,7 +1566,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#matrix_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1601,16 +1583,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -1629,17 +1613,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1650,9 +1633,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1660,11 +1645,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1676,7 +1661,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1687,9 +1672,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1697,11 +1684,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1718,9 +1705,9 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -1741,9 +1728,9 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig] required :tiered_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -1763,9 +1750,11 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -1804,9 +1793,11 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -1826,52 +1817,44 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1886,17 +1869,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#tiered_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -1926,7 +1911,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1937,9 +1922,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -1947,11 +1934,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -1963,7 +1950,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -1974,9 +1961,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1984,11 +1973,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2005,9 +1994,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -2028,9 +2019,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig] required :tiered_bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -2050,9 +2043,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2091,9 +2086,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2113,52 +2110,44 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2173,23 +2162,24 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#tiered_bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2227,7 +2217,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2238,9 +2228,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2248,11 +2240,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2264,7 +2256,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2275,9 +2267,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2285,11 +2279,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2305,16 +2299,20 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig] required :bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig + } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -2351,9 +2349,11 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2392,9 +2392,11 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2414,50 +2416,42 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps} for more + # details. # - # @param bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig] + # @param bps_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -2479,7 +2473,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2494,7 +2488,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2505,9 +2499,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2515,11 +2511,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2531,7 +2527,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2542,9 +2538,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2552,11 +2550,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2572,16 +2570,16 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig] required :bulk_bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -2618,9 +2616,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2659,9 +2659,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2681,66 +2683,59 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps} for more + # details. # - # @param bulk_bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#bulk_bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -2772,7 +2767,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2787,7 +2782,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2798,9 +2793,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -2808,11 +2805,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2824,7 +2821,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -2835,9 +2832,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2845,11 +2844,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -2865,16 +2864,20 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig] required :bulk_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig + } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -2911,9 +2914,11 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -2952,9 +2957,11 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -2974,60 +2981,54 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk} for more + # details. # - # @param bulk_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#bulk_config + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -3051,7 +3052,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3066,7 +3067,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3077,9 +3078,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3087,11 +3090,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3103,7 +3106,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3114,9 +3117,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3124,11 +3129,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3145,9 +3150,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3189,9 +3196,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3230,9 +3239,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3252,10 +3263,10 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3264,40 +3275,32 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3312,7 +3315,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3323,9 +3326,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3333,11 +3338,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3349,7 +3354,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3360,9 +3365,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3370,11 +3377,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3391,9 +3398,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3435,9 +3444,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3476,9 +3487,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3498,10 +3511,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3510,40 +3523,32 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3558,7 +3563,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3569,9 +3574,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3579,11 +3586,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3595,7 +3602,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3606,9 +3613,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3616,11 +3625,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3637,9 +3646,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3681,9 +3692,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3722,9 +3735,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3744,10 +3759,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -3756,40 +3771,32 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3804,7 +3811,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3815,9 +3822,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -3825,11 +3834,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3841,7 +3850,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -3852,9 +3861,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3862,11 +3873,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -3883,9 +3894,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -3927,9 +3940,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -3968,9 +3983,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -3990,10 +4007,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4002,40 +4019,32 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4050,7 +4059,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4061,9 +4070,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4071,11 +4082,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4087,7 +4098,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4098,9 +4109,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4108,11 +4121,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4129,9 +4142,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -4174,9 +4189,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4215,9 +4232,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4237,10 +4256,10 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4249,40 +4268,32 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4297,7 +4308,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4308,9 +4319,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4318,11 +4331,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4334,7 +4347,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4345,9 +4358,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4355,11 +4370,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4376,9 +4391,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -4420,9 +4437,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4461,9 +4480,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4483,10 +4504,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4495,40 +4516,32 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4543,7 +4556,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4554,9 +4567,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4564,11 +4579,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4580,7 +4595,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4591,9 +4606,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4601,11 +4618,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4622,9 +4639,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -4666,9 +4685,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4707,9 +4728,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4729,10 +4752,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -4741,40 +4764,32 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4789,7 +4804,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4800,9 +4815,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -4810,11 +4827,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4826,7 +4843,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -4837,9 +4854,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -4847,11 +4866,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -4868,9 +4887,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence + } # @!attribute grouped_allocation_config # @@ -4912,9 +4933,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -4953,9 +4976,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -4975,10 +5000,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param grouped_allocation_config [Hash{Symbol=>Object}] # @@ -4987,40 +5012,32 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5035,7 +5052,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5046,9 +5063,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5056,11 +5075,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5072,7 +5091,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5083,9 +5102,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5093,11 +5114,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5114,9 +5135,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence + } # @!attribute grouped_with_prorated_minimum_config # @@ -5159,9 +5182,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5200,9 +5225,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5222,10 +5249,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # @@ -5234,40 +5261,32 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5282,7 +5301,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5293,9 +5312,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5303,11 +5324,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5319,7 +5340,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5330,9 +5351,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5340,11 +5363,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5366,9 +5389,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5405,9 +5430,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5446,9 +5473,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5468,52 +5497,44 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration} # for more details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5528,7 +5549,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5539,9 +5560,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5549,11 +5572,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5565,7 +5588,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5576,9 +5599,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5586,11 +5611,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5607,9 +5632,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5652,9 +5679,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5693,9 +5722,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5715,10 +5746,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5727,40 +5758,32 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5775,7 +5798,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5786,9 +5809,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -5796,11 +5821,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5812,7 +5837,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -5823,9 +5848,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -5833,11 +5860,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -5854,9 +5881,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -5899,9 +5928,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -5940,9 +5971,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -5962,10 +5995,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -5974,40 +6007,32 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6022,7 +6047,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6033,9 +6058,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6043,11 +6070,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6059,7 +6086,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6070,9 +6097,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6080,11 +6109,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6101,9 +6130,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence + } # @!attribute cumulative_grouped_bulk_config # @@ -6146,9 +6177,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6187,9 +6220,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6209,10 +6244,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -6221,40 +6256,32 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6269,7 +6296,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6280,9 +6307,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6290,11 +6319,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6306,7 +6335,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6317,9 +6346,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6327,11 +6358,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6348,9 +6379,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -6393,9 +6426,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6434,9 +6469,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6456,10 +6493,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -6468,40 +6505,32 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6516,7 +6545,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6527,9 +6556,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6537,11 +6568,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6553,7 +6584,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6564,9 +6595,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6574,11 +6607,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6595,9 +6628,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence + } # @!attribute grouped_with_metered_minimum_config # @@ -6640,9 +6675,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6681,9 +6718,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6703,10 +6742,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # @@ -6715,40 +6754,32 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6763,7 +6794,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6774,9 +6805,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -6784,11 +6817,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6800,7 +6833,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -6811,9 +6844,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -6821,11 +6856,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -6842,9 +6877,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -6887,9 +6924,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -6928,9 +6967,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -6950,10 +6991,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -6962,40 +7003,32 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7010,7 +7043,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7021,9 +7054,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7031,11 +7066,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7047,7 +7082,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7058,9 +7093,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7068,11 +7105,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7089,9 +7126,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence + } # @!attribute grouped_tiered_package_config # @@ -7133,9 +7172,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -7174,9 +7215,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -7196,10 +7239,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage} + # {Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # @@ -7208,40 +7251,32 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7256,7 +7291,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7267,9 +7302,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -7277,11 +7314,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7293,7 +7330,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -7304,9 +7341,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -7314,11 +7353,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -7332,7 +7371,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage)] + # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage)] end end @@ -7377,17 +7416,14 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # @!method initialize(day:, month: nil, year: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration} for + # more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end class RemoveAdjustment < Orb::Internal::Type::BaseModel @@ -7424,9 +7460,9 @@ class ReplaceAdjustment < Orb::Internal::Type::BaseModel # @!attribute adjustment # The definition of a new adjustment to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] required :adjustment, - union: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment } + union: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment } # @!attribute replaces_adjustment_id # The id of the adjustment on the plan to replace in the subscription. @@ -7435,32 +7471,42 @@ class ReplaceAdjustment < Orb::Internal::Type::BaseModel required :replaces_adjustment_id, String # @!method initialize(adjustment:, replaces_adjustment_id:) - # @param adjustment [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. + # @param adjustment [Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] The definition of a new adjustment to create and add to the subscription. # # @param replaces_adjustment_id [String] The id of the adjustment on the plan to replace in the subscription. # The definition of a new adjustment to create and add to the subscription. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment#adjustment + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment#adjustment module Adjustment extend Orb::Internal::Type::Union discriminator :adjustment_type variant :percentage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount + } variant :usage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount + } variant :amount_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount + } variant :minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum + } variant :maximum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + } class PercentageDiscount < Orb::Internal::Type::BaseModel # @!attribute adjustment_type @@ -7488,7 +7534,7 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, percentage_discount:, is_invoice_level: nil, adjustment_type: :percentage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7496,7 +7542,6 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param percentage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :percentage_discount] end @@ -7527,7 +7572,7 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, usage_discount:, is_invoice_level: nil, adjustment_type: :usage_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7535,7 +7580,6 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param usage_discount [Float] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -7566,7 +7610,7 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @!method initialize(amount_discount:, applies_to_price_ids:, is_invoice_level: nil, adjustment_type: :amount_discount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount} # for more details. # # @param amount_discount [String] @@ -7574,7 +7618,6 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :amount_discount] end @@ -7611,7 +7654,7 @@ class Minimum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, item_id:, minimum_amount:, is_invoice_level: nil, adjustment_type: :minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7621,7 +7664,6 @@ class Minimum < Orb::Internal::Type::BaseModel # @param minimum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :minimum] end @@ -7652,7 +7694,7 @@ class Maximum < Orb::Internal::Type::BaseModel # @!method initialize(applies_to_price_ids:, maximum_amount:, is_invoice_level: nil, adjustment_type: :maximum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum} # for more details. # # @param applies_to_price_ids [Array] The set of price IDs to which this adjustment applies. @@ -7660,13 +7702,12 @@ class Maximum < Orb::Internal::Type::BaseModel # @param maximum_amount [String] # # @param is_invoice_level [Boolean] When false, this adjustment will be applied to a single price. Otherwise, it wil - # ... # # @param adjustment_type [Symbol, :maximum] end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum)] + # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum)] end end @@ -7680,9 +7721,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute allocation_price # The definition of a new allocation price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, nil] optional :allocation_price, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice }, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice }, nil?: true # @!attribute discounts @@ -7691,9 +7732,11 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. # - # @return [Array, nil] + # @return [Array, nil] optional :discounts, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount] }, + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount] + }, nil?: true # @!attribute external_price_id @@ -7729,9 +7772,11 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage, nil] optional :price, - union: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price }, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price + }, nil?: true # @!attribute price_id @@ -7742,31 +7787,27 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!method initialize(replaces_price_id:, allocation_price: nil, discounts: nil, external_price_id: nil, fixed_price_quantity: nil, maximum_amount: nil, minimum_amount: nil, price: nil, price_id: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice} for more - # details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice} for more details. # # @param replaces_price_id [String] The id of the price on the plan to replace in the subscription. # - # @param allocation_price [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. + # @param allocation_price [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, nil] The definition of a new allocation price to create and add to the subscription. # - # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the r - # ... + # @param discounts [Array, nil] [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the r # # @param external_price_id [String, nil] The external price id of the price to add to the subscription. # # @param fixed_price_quantity [Float, nil] The new quantity of the price, if the price is a fixed price. # # @param maximum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # ... # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # ... # - # @param price [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice#allocation_price + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice#allocation_price class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute amount # An amount of the currency to allocate to the customer at the specified cadence. @@ -7777,9 +7818,11 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence at which to allocate the amount to the customer. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence + } # @!attribute currency # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -7797,24 +7840,22 @@ class AllocationPrice < Orb::Internal::Type::BaseModel # @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice} for + # more details. # # The definition of a new allocation price to create and add to the subscription. # # @param amount [String] An amount of the currency to allocate to the customer at the specified cadence. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence] The cadence at which to allocate the amount to the customer. # # @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill - # ... # # @param expires_at_end_of_cadence [Boolean] Whether the allocated amount should expire at the end of the cadence or roll ove - # ... # The cadence at which to allocate the amount to the customer. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7833,9 +7874,11 @@ module Cadence class Discount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType] required :discount_type, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType + } # @!attribute amount_discount # Only available if discount_type is `amount`. @@ -7859,20 +7902,18 @@ class Discount < Orb::Internal::Type::BaseModel # @!method initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount} for - # more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount} for more + # details. # - # @param discount_type [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType] + # @param discount_type [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType] # # @param amount_discount [String, nil] Only available if discount_type is `amount`. # # @param percentage_discount [Float, nil] Only available if discount_type is `percentage`. This is a number between 0 and - # ... # # @param usage_discount [Float, nil] Only available if discount_type is `usage`. Number of usage units that this disc - # ... - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount#discount_type + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount#discount_type module DiscountType extend Orb::Internal::Type::Enum @@ -7887,87 +7928,99 @@ module DiscountType # The definition of a new price to create and add to the subscription. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice#price + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice#price module Price extend Orb::Internal::Type::Union discriminator :model_type - variant :unit, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit } + variant :unit, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit } - variant :package, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package } + variant :package, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package } - variant :matrix, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix } + variant :matrix, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix } - variant :tiered, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered } + variant :tiered, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered } variant :tiered_bps, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps + } - variant :bps, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps } + variant :bps, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps } - variant :bulk_bps, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps } + variant :bulk_bps, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps } - variant :bulk, -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk } + variant :bulk, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk } variant :threshold_total_amount, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount } variant :tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage } variant :tiered_with_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum } variant :unit_with_percent, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent } variant :package_with_allocation, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation } variant :tiered_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration } variant :grouped_allocation, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation } variant :grouped_with_prorated_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum + } variant :bulk_with_proration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration } variant :scalable_matrix_with_unit_pricing, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing + } variant :scalable_matrix_with_tiered_pricing, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing + } variant :cumulative_grouped_bulk, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk } variant :max_group_tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage } variant :grouped_with_metered_minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum + } variant :matrix_with_display_name, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName } variant :grouped_tiered_package, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage } class Unit < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -7988,9 +8041,9 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute unit_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig] required :unit_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -8010,9 +8063,11 @@ class Unit < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8051,9 +8106,11 @@ class Unit < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8073,52 +8130,44 @@ class Unit < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit} for more + # details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig] + # @param unit_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8133,7 +8182,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#unit_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#unit_config class UnitConfig < Orb::Internal::Type::BaseModel # @!attribute unit_amount # Rate per unit of usage @@ -8145,7 +8194,7 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @param unit_amount [String] Rate per unit of usage end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8156,9 +8205,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8166,11 +8217,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8182,7 +8233,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8193,9 +8244,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8203,11 +8256,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8224,9 +8277,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8247,9 +8302,11 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute package_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig] required :package_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -8269,9 +8326,11 @@ class Package < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8310,9 +8369,11 @@ class Package < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8332,52 +8393,44 @@ class Package < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig] + # @param package_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8392,7 +8445,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#package_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#package_config class PackageConfig < Orb::Internal::Type::BaseModel # @!attribute package_amount # A currency amount to rate usage by @@ -8409,16 +8462,15 @@ class PackageConfig < Orb::Internal::Type::BaseModel # @!method initialize(package_amount:, package_size:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig} # for more details. # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide - # ... end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8429,9 +8481,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8439,11 +8493,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8455,7 +8509,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8466,9 +8520,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8476,11 +8532,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8497,9 +8553,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8509,9 +8567,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute matrix_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig] required :matrix_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig + } # @!attribute model_type # @@ -8542,9 +8602,11 @@ class Matrix < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8583,9 +8645,11 @@ class Matrix < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8605,52 +8669,44 @@ class Matrix < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig] + # @param matrix_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig] # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8665,7 +8721,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#matrix_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#matrix_config class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -8682,16 +8738,18 @@ class MatrixConfig < Orb::Internal::Type::BaseModel # @!attribute matrix_values # Matrix values for specified matrix grouping keys # - # @return [Array] + # @return [Array] required :matrix_values, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values for specified matrix grouping keys class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values @@ -8710,17 +8768,16 @@ class MatrixValue < Orb::Internal::Type::BaseModel # @!method initialize(dimension_values:, unit_amount:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue} # for more details. # # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r - # ... # # @param unit_amount [String] Unit price for the specified dimension_values end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8731,9 +8788,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -8741,11 +8800,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8757,7 +8816,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -8768,9 +8827,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -8778,11 +8839,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -8799,9 +8860,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -8822,9 +8885,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute tiered_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig] required :tiered_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -8844,9 +8909,11 @@ class Tiered < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -8885,9 +8952,11 @@ class Tiered < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -8907,52 +8976,44 @@ class Tiered < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig] + # @param tiered_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -8967,17 +9028,19 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#tiered_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#tiered_config class TieredConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for rating based on total usage quantities into the specified tier # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier class Tier < Orb::Internal::Type::BaseModel # @!attribute first_unit @@ -9007,7 +9070,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9018,9 +9081,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9028,11 +9093,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9044,7 +9109,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9055,9 +9120,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9065,11 +9132,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9086,9 +9153,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -9109,9 +9178,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!attribute tiered_bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] required :tiered_bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig + } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -9131,9 +9202,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9172,9 +9245,11 @@ class TieredBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9194,52 +9269,44 @@ class TieredBps < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps} for + # more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # - # @param tiered_bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] + # @param tiered_bps_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_bps] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9254,23 +9321,24 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#tiered_bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#tiered_bps_config class TieredBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # ... + # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -9308,7 +9376,7 @@ class Tier < Orb::Internal::Type::BaseModel end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9319,9 +9387,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9329,11 +9399,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9345,7 +9415,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9356,9 +9426,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9366,11 +9438,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9386,16 +9458,16 @@ module DurationUnit class Bps < Orb::Internal::Type::BaseModel # @!attribute bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig] required :bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence } + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence } # @!attribute item_id # The id of the item the price will be associated with. @@ -9432,9 +9504,11 @@ class Bps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9473,9 +9547,11 @@ class Bps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9495,50 +9571,42 @@ class Bps < Orb::Internal::Type::BaseModel # @!method initialize(bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps} for more + # details. # - # @param bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig] + # @param bps_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bps] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#bps_config class BpsConfig < Orb::Internal::Type::BaseModel # @!attribute bps # Basis point take rate per event @@ -9560,7 +9628,7 @@ class BpsConfig < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9575,7 +9643,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9586,9 +9654,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9596,11 +9666,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9612,7 +9682,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9623,9 +9693,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9633,11 +9705,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9653,16 +9725,20 @@ module DurationUnit class BulkBps < Orb::Internal::Type::BaseModel # @!attribute bulk_bps_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] required :bulk_bps_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig } + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig + } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -9699,9 +9775,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -9740,9 +9818,11 @@ class BulkBps < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -9762,66 +9842,59 @@ class BulkBps < Orb::Internal::Type::BaseModel # @!method initialize(bulk_bps_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_bps) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps} for + # more details. # - # @param bulk_bps_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] + # @param bulk_bps_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_bps] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#bulk_bps_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#bulk_bps_config class BulkBpsConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + } # @!method initialize(tiers:) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig} # for more details. # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - # ... + # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie class Tier < Orb::Internal::Type::BaseModel # @!attribute bps @@ -9853,7 +9926,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#cadence module Cadence extend Orb::Internal::Type::Enum @@ -9868,7 +9941,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9879,9 +9952,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -9889,11 +9964,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9905,7 +9980,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -9916,9 +9991,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -9926,11 +10003,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -9946,16 +10023,18 @@ module DurationUnit class Bulk < Orb::Internal::Type::BaseModel # @!attribute bulk_config # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig] required :bulk_config, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig } + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig } # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -9992,9 +10071,11 @@ class Bulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10033,9 +10114,11 @@ class Bulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10055,60 +10138,54 @@ class Bulk < Orb::Internal::Type::BaseModel # @!method initialize(bulk_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk} - # for more details. + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk} for more + # details. # - # @param bulk_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig] + # @param bulk_config [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk] - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#bulk_config + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#bulk_config class BulkConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Bulk tiers for rating based on total usage volume # - # @return [Array] + # @return [Array] required :tiers, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + } # @!method initialize(tiers:) - # @param tiers [Array] Bulk tiers for rating based on total usage volume + # @param tiers [Array] Bulk tiers for rating based on total usage volume class Tier < Orb::Internal::Type::BaseModel # @!attribute unit_amount @@ -10132,7 +10209,7 @@ class Tier < Orb::Internal::Type::BaseModel # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10147,7 +10224,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10158,9 +10235,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10168,11 +10247,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10184,7 +10263,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10195,9 +10274,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10205,11 +10286,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10226,9 +10307,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10270,9 +10353,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10311,9 +10396,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10333,10 +10420,10 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, threshold_total_amount_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10345,40 +10432,32 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @param threshold_total_amount_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :threshold_total_amount] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10393,7 +10472,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10404,9 +10483,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10414,11 +10495,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10430,7 +10511,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10441,9 +10522,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10451,11 +10534,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10472,9 +10555,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10516,9 +10601,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10557,9 +10644,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10579,10 +10668,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_package_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10591,40 +10680,32 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @param tiered_package_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10639,7 +10720,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10650,9 +10731,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10660,11 +10743,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10676,7 +10759,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10687,9 +10770,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10697,11 +10782,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10718,9 +10803,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -10762,9 +10849,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -10803,9 +10892,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -10825,10 +10916,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -10837,40 +10928,32 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @param tiered_with_minimum_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -10885,7 +10968,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10896,9 +10979,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -10906,11 +10991,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10922,7 +11007,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -10933,9 +11018,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -10943,11 +11030,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -10964,9 +11051,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11008,9 +11097,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11049,9 +11140,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11071,10 +11164,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_percent_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11083,40 +11176,32 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @param unit_with_percent_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_percent] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11131,7 +11216,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11142,9 +11227,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11152,11 +11239,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11168,7 +11255,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11179,9 +11266,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11189,11 +11278,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11210,9 +11299,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11255,9 +11346,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11296,9 +11389,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11318,10 +11413,10 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, package_with_allocation_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11330,40 +11425,32 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @param package_with_allocation_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :package_with_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11378,7 +11465,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11389,9 +11476,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11399,11 +11488,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11415,7 +11504,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11426,9 +11515,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11436,11 +11527,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11457,9 +11548,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11501,9 +11594,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11542,9 +11637,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11564,10 +11661,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11576,40 +11673,32 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @param tiered_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :tiered_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11624,7 +11713,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11635,9 +11724,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11645,11 +11736,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11661,7 +11752,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11672,9 +11763,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11682,11 +11775,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11703,9 +11796,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -11747,9 +11842,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -11788,9 +11885,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -11810,10 +11909,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, unit_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -11822,40 +11921,32 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @param unit_with_proration_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :unit_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -11870,7 +11961,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11881,9 +11972,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -11891,11 +11984,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11907,7 +12000,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -11918,9 +12011,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -11928,11 +12023,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -11949,9 +12044,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence + } # @!attribute grouped_allocation_config # @@ -11993,9 +12090,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12034,9 +12133,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12056,10 +12157,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_allocation_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence] The cadence to bill for this price on. # # @param grouped_allocation_config [Hash{Symbol=>Object}] # @@ -12068,40 +12169,32 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_allocation] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12116,7 +12209,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12127,9 +12220,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12137,11 +12232,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12153,7 +12248,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12164,9 +12259,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12174,11 +12271,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12195,9 +12292,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence + } # @!attribute grouped_with_prorated_minimum_config # @@ -12240,9 +12339,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12281,9 +12382,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12303,10 +12406,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_prorated_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] # @@ -12315,40 +12418,32 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_prorated_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12363,7 +12458,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12374,9 +12469,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12384,11 +12481,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12400,7 +12497,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12411,9 +12508,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12421,11 +12520,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12447,9 +12546,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12486,9 +12587,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12527,9 +12630,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12549,52 +12654,44 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!method initialize(bulk_with_proration_config:, cadence:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration} # for more details. # # @param bulk_with_proration_config [Hash{Symbol=>Object}] # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :bulk_with_proration] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12609,7 +12706,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12620,9 +12717,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12630,11 +12729,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12646,7 +12745,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12657,9 +12756,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12667,11 +12768,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12688,9 +12789,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12733,9 +12836,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -12774,9 +12879,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -12796,10 +12903,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_unit_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -12808,40 +12915,32 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -12856,7 +12955,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12867,9 +12966,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -12877,11 +12978,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12893,7 +12994,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -12904,9 +13005,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -12914,11 +13017,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -12935,9 +13038,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -12980,9 +13085,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13021,9 +13128,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13043,10 +13152,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, name:, scalable_matrix_with_tiered_pricing_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -13055,40 +13164,32 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13103,7 +13204,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13114,9 +13215,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13124,11 +13227,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13140,7 +13243,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13151,9 +13254,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13161,11 +13266,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13182,9 +13287,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence + } # @!attribute cumulative_grouped_bulk_config # @@ -13227,9 +13334,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13268,9 +13377,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13290,10 +13401,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, cumulative_grouped_bulk_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence] The cadence to bill for this price on. # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # @@ -13302,40 +13413,32 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :cumulative_grouped_bulk] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13350,7 +13453,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13361,9 +13464,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13371,11 +13476,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13387,7 +13492,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13398,9 +13503,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13408,11 +13515,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13429,9 +13536,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -13474,9 +13583,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13515,9 +13626,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13537,10 +13650,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, max_group_tiered_package_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -13549,40 +13662,32 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :max_group_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13597,7 +13702,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13608,9 +13713,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13618,11 +13725,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13634,7 +13741,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13645,9 +13752,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13655,11 +13764,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13676,9 +13785,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence + } # @!attribute grouped_with_metered_minimum_config # @@ -13721,9 +13832,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -13762,9 +13875,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -13784,10 +13899,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_with_metered_minimum_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence] The cadence to bill for this price on. # # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] # @@ -13796,40 +13911,32 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_with_metered_minimum] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -13844,7 +13951,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13855,9 +13962,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -13865,11 +13974,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13881,7 +13990,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -13892,9 +14001,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -13902,11 +14013,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -13923,9 +14034,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence + } # @!attribute item_id # The id of the item the price will be associated with. @@ -13968,9 +14081,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -14009,9 +14124,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -14031,10 +14148,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, item_id:, matrix_with_display_name_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # @@ -14043,40 +14160,32 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :matrix_with_display_name] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -14091,7 +14200,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14102,9 +14211,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -14112,11 +14223,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14128,7 +14239,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14139,9 +14250,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14149,11 +14262,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14170,9 +14283,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # The cadence to bill for this price on. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] required :cadence, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence + } # @!attribute grouped_tiered_package_config # @@ -14214,9 +14329,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # For custom cadence: specifies the duration of the billing period in days or # months. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] optional :billing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + }, nil?: true # @!attribute conversion_rate @@ -14255,9 +14372,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] + # @return [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] optional :invoicing_cycle_configuration, - -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration }, + -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + }, nil?: true # @!attribute metadata @@ -14277,10 +14396,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!method initialize(cadence:, grouped_tiered_package_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, currency: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage} + # {Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage} # for more details. # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence] The cadence to bill for this price on. # # @param grouped_tiered_package_config [Hash{Symbol=>Object}] # @@ -14289,40 +14408,32 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @param name [String] The name of the price. # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # ... # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # ... # # @param model_type [Symbol, :grouped_tiered_package] # The cadence to bill for this price on. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#cadence + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -14337,7 +14448,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#billing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#billing_cycle_configuration class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14348,9 +14459,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # For custom cadence: specifies the duration of the billing period in days or @@ -14358,11 +14471,11 @@ class BillingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14374,7 +14487,7 @@ module DurationUnit end end - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#invoicing_cycle_configuration + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage#invoicing_cycle_configuration class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration # The duration of the billing period. @@ -14385,9 +14498,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # @!attribute duration_unit # The unit of billing period duration. # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] + # @return [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] required :duration_unit, - enum: -> { Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit } + enum: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + } # @!method initialize(duration:, duration_unit:) # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -14395,11 +14510,11 @@ class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel # # @param duration [Integer] The duration of the billing period. # - # @param duration_unit [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. + # @param duration_unit [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit] The unit of billing period duration. # The unit of billing period duration. # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit + # @see Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration#duration_unit module DurationUnit extend Orb::Internal::Type::Enum @@ -14413,7 +14528,7 @@ module DurationUnit end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage)] + # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage)] end end end diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index 2cbf6fe6..7e1680d1 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -88,8 +88,8 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -218,32 +218,24 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -256,17 +248,14 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -279,7 +268,6 @@ class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -396,14 +384,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -459,12 +445,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -526,10 +510,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -597,12 +579,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -664,10 +644,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -713,13 +691,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -833,7 +808,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -891,7 +865,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -972,7 +945,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1021,7 +993,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1101,8 +1072,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1132,27 +1103,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1228,39 +1192,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_trigger_phase_params.rb b/lib/orb/models/subscription_trigger_phase_params.rb index 34686a07..5a289b71 100644 --- a/lib/orb/models/subscription_trigger_phase_params.rb +++ b/lib/orb/models/subscription_trigger_phase_params.rb @@ -27,10 +27,8 @@ class SubscriptionTriggerPhaseParams < Orb::Internal::Type::BaseModel # {Orb::Models::SubscriptionTriggerPhaseParams} for more details. # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # # @param effective_date [Date, nil] The date on which the phase change should take effect. If not provided, defaults - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index aabd162a..19599bb8 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -88,8 +88,8 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -218,32 +218,24 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -256,17 +248,14 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -279,7 +268,6 @@ class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -396,14 +384,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -459,12 +445,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -526,10 +510,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -597,12 +579,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -664,10 +644,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -713,13 +691,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -832,7 +807,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -890,7 +864,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -971,7 +944,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1020,7 +992,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1100,8 +1071,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1130,27 +1101,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1226,39 +1190,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index 89903742..ee14f99d 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -88,8 +88,8 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -218,32 +218,24 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -256,17 +248,14 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -279,7 +268,6 @@ class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseMode # @param trial_info [Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -396,14 +384,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -459,12 +445,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -526,10 +510,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -597,12 +579,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -664,10 +644,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -713,13 +691,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -833,7 +808,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -891,7 +865,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -972,7 +945,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1021,7 +993,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1101,8 +1072,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1132,27 +1103,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1228,39 +1192,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end 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 62a4487f..0aca6f86 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 @@ -88,8 +88,8 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -219,32 +219,24 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -257,17 +249,14 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -280,7 +269,6 @@ class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Typ # @param trial_info [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -397,14 +385,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -460,12 +446,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -527,10 +511,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -598,12 +580,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -665,10 +645,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -714,13 +692,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -836,7 +811,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -894,7 +868,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -975,7 +948,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1024,7 +996,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1108,8 +1079,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1139,27 +1110,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1235,39 +1199,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end 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 a8715c9d..ad49669e 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -88,8 +88,8 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -219,32 +219,24 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -257,17 +249,14 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -280,7 +269,6 @@ class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::Ba # @param trial_info [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -397,14 +385,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -460,12 +446,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -527,10 +511,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -598,12 +580,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -665,10 +645,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -714,13 +692,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -836,7 +811,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -894,7 +868,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -975,7 +948,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1024,7 +996,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1104,8 +1075,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1135,27 +1106,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1231,39 +1195,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb index 88dbe554..6701de79 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -31,8 +31,8 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::Internal::Type::BaseModel # specified, this defaults to `effective_date`. Otherwise, this defaults to # `immediate` unless it's explicitly set to `upcoming_invoice`. # - # @return [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption, nil] - optional :change_option, enum: -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption } + # @return [Symbol, Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption, nil] + optional :change_option, enum: -> { Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption } # @!attribute effective_date # The date that the quantity change should take effect, localized to the @@ -51,13 +51,10 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::Internal::Type::BaseModel # @param quantity [Float] # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # - # @param change_option [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif - # ... + # @param change_option [Symbol, Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif # # @param effective_date [Date, nil] The date that the quantity change should take effect, localized to the customer' - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] 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 5a946738..c623b73b 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -88,8 +88,8 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -218,32 +218,24 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -256,17 +248,14 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -279,7 +268,6 @@ class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseMode # @param trial_info [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -396,14 +384,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -459,12 +445,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -526,10 +510,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -597,12 +579,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -664,10 +644,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -713,13 +691,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -833,7 +808,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -891,7 +865,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -972,7 +945,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1021,7 +993,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1101,8 +1072,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1132,27 +1103,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1228,39 +1192,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_update_params.rb b/lib/orb/models/subscription_update_params.rb index 47a6f2e4..707f3615 100644 --- a/lib/orb/models/subscription_update_params.rb +++ b/lib/orb/models/subscription_update_params.rb @@ -52,19 +52,14 @@ class SubscriptionUpdateParams < Orb::Internal::Type::BaseModel # {Orb::Models::SubscriptionUpdateParams} for more details. # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index 047524c9..a81ef5dc 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -11,8 +11,8 @@ class SubscriptionUpdateTrialParams < Orb::Internal::Type::BaseModel # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. # - # @return [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate] - required :trial_end_date, union: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate } + # @return [Time, Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate] + required :trial_end_date, union: -> { Orb::SubscriptionUpdateTrialParams::TrialEndDate } # @!attribute shift # If true, shifts subsequent price and adjustment intervals (preserving their @@ -25,11 +25,9 @@ class SubscriptionUpdateTrialParams < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionUpdateTrialParams} for more details. # - # @param trial_end_date [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end - # ... + # @param trial_end_date [Time, Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end # # @param shift [Boolean] If true, shifts subsequent price and adjustment intervals (preserving their dura - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] @@ -40,7 +38,7 @@ module TrialEndDate variant Time - variant const: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE } + variant const: -> { Orb::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE } # @!method self.variants # @return [Array(Time, Symbol)] diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index acd2037b..63f0c649 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -88,8 +88,8 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. # - # @return [Orb::Models::Customer] - required :customer, -> { Orb::Models::Customer } + # @return [Orb::Customer] + required :customer, -> { Orb::Customer } # @!attribute default_invoice_memo # Determines the default memo on this subscriptions' invoices. Note that if this @@ -168,8 +168,8 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). # - # @return [Orb::Models::Plan] - required :plan, -> { Orb::Models::Plan } + # @return [Orb::Plan] + required :plan, -> { Orb::Plan } # @!attribute price_intervals # The price intervals for this subscription. @@ -216,32 +216,24 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # @param id [String] # # @param active_plan_phase_order [Integer, nil] The current plan phase that is active, only if the subscription's plan has phase - # ... # # @param adjustment_intervals [Array] The adjustment intervals for this subscription sorted by the start_date of the a - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration] # # @param billing_cycle_day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param created_at [Time] # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # - # @param customer [Orb::Models::Customer] A customer is a buyer of your products, and the other party to the billing relat - # ... + # @param customer [Orb::Customer] A customer is a buyer of your products, and the other party to the billing relat # # @param default_invoice_memo [String, nil] Determines the default memo on this subscriptions' invoices. Note that if this i - # ... # # @param discount_intervals [Array] The discount intervals for this subscription sorted by the start_date. # @@ -254,17 +246,14 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # @param maximum_intervals [Array] The maximum intervals for this subscription sorted by the start_date. # # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # ... # # @param minimum_intervals [Array] The minimum intervals for this subscription sorted by the start_date. # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param pending_subscription_change [Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange, nil] A pending subscription change if one exists on this subscription. # - # @param plan [Orb::Models::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be - # ... + # @param plan [Orb::Plan] The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # # @param price_intervals [Array] The price intervals for this subscription. # @@ -277,7 +266,6 @@ class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel # @param trial_info [Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo] # # @param changed_resources [Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources, nil] The resources that were changed as part of this operation. Only present when fet - # ... class AdjustmentInterval < Orb::Internal::Type::BaseModel # @!attribute id @@ -394,14 +382,12 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # # @param reason [String, nil] The reason for the adjustment. # # @param usage_discount [Float] The number of usage units by which to discount the price this adjustment applies - # ... # # @param adjustment_type [Symbol, :usage_discount] end @@ -457,12 +443,10 @@ class AmountDiscount < Orb::Internal::Type::BaseModel # @param id [String] # # @param amount_discount [String] The amount by which to discount the prices this adjustment applies to in a given - # ... # # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -524,10 +508,8 @@ class PercentageDiscount < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -595,12 +577,10 @@ class Minimum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -662,10 +642,8 @@ class Maximum < Orb::Internal::Type::BaseModel # @param applies_to_price_ids [Array] The price IDs that this adjustment applies to. # # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha - # ... # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus - # ... # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # @@ -711,13 +689,10 @@ class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel # for more details. # # @param day [Integer] The day of the month on which the billing cycle is anchored. If the maximum numb - # ... # # @param month [Integer, nil] The month on which the billing cycle is anchored (e.g. a quarterly price anchore - # ... # # @param year [Integer, nil] The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc - # ... end module DiscountInterval @@ -830,7 +805,6 @@ class Percentage < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the discount interval. # # @param percentage_discount [Float] Only available if discount_type is `percentage`.This is a number between 0 and 1 - # ... # # @param start_date [Time] The start date of the discount interval. # @@ -888,7 +862,6 @@ class Usage < Orb::Internal::Type::BaseModel # @param start_date [Time] The start date of the discount interval. # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param discount_type [Symbol, :usage] end @@ -969,7 +942,6 @@ class MaximumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the maximum interval. # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the maximum interval. end @@ -1018,7 +990,6 @@ class MinimumInterval < Orb::Internal::Type::BaseModel # @param end_date [Time, nil] The end date of the minimum interval. # # @param minimum_amount [String] The minimum amount to charge in a given billing period for the price intervals t - # ... # # @param start_date [Time] The start date of the minimum interval. end @@ -1098,8 +1069,8 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - required :price, union: -> { Orb::Models::Price } + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] + required :price, union: -> { Orb::Price } # @!attribute start_date # The start date of the price interval. This is the date that Orb starts billing @@ -1128,27 +1099,20 @@ class PriceInterval < Orb::Internal::Type::BaseModel # @param billing_cycle_day [Integer] The day of the month that Orb bills for this price # # @param current_billing_period_end_date [Time, nil] The end of the current billing period. This is an exclusive timestamp, such that - # ... # # @param current_billing_period_start_date [Time, nil] The start date of the current billing period. This is an inclusive timestamp; th - # ... # # @param end_date [Time, nil] The end date of the price interval. This is the date that Orb stops billing for - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan - # ... # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu - # ... + # @param price [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @!attribute effective_date @@ -1224,39 +1188,39 @@ class ChangedResources < Orb::Internal::Type::BaseModel # @!attribute created_credit_notes # The credit notes that were created as part of this operation. # - # @return [Array] - required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :created_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. # - # @return [Array] - required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote] } + # @return [Array] + required :voided_credit_notes, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNote] } # @!attribute voided_invoices # The invoices that were voided as part of this operation. # - # @return [Array] - required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Invoice] } + # @return [Array] + required :voided_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. # - # @param created_credit_notes [Array] The credit notes that were created as part of this operation. + # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # - # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. + # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # - # @param voided_invoices [Array] The invoices that were voided as part of this operation. + # @param voided_invoices [Array] The invoices that were voided as part of this operation. end end end diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index d5691a64..abc22d99 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -6,45 +6,48 @@ module Models module SubscriptionUsage extend Orb::Internal::Type::Union - variant -> { Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage } + variant -> { Orb::SubscriptionUsage::UngroupedSubscriptionUsage } - variant -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage } + variant -> { Orb::SubscriptionUsage::GroupedSubscriptionUsage } class UngroupedSubscriptionUsage < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] + # @return [Array] required :data, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] } + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data] } # @!method initialize(data:) - # @param data [Array] + # @param data [Array] class Data < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric] + # @return [Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric] required :billable_metric, - -> { Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric } + -> { + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric + } # @!attribute usage # - # @return [Array] + # @return [Array] required :usage, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] + } # @!attribute view_mode # - # @return [Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode] - required :view_mode, - enum: -> { Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode } + # @return [Symbol, Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode] + required :view_mode, enum: -> { Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode } # @!method initialize(billable_metric:, usage:, view_mode:) - # @param billable_metric [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric] - # @param usage [Array] - # @param view_mode [Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode] + # @param billable_metric [Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric] + # @param usage [Array] + # @param view_mode [Symbol, Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode] - # @see Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data#billable_metric + # @see Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -83,7 +86,7 @@ class Usage < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] end - # @see Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data#view_mode + # @see Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data#view_mode module ViewMode extend Orb::Internal::Type::Enum @@ -99,49 +102,53 @@ module ViewMode class GroupedSubscriptionUsage < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] + # @return [Array] required :data, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data] } + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data] } # @!attribute pagination_metadata # - # @return [Orb::Models::PaginationMetadata, nil] - optional :pagination_metadata, -> { Orb::Models::PaginationMetadata }, nil?: true + # @return [Orb::PaginationMetadata, nil] + optional :pagination_metadata, -> { Orb::PaginationMetadata }, nil?: true # @!method initialize(data:, pagination_metadata: nil) - # @param data [Array] - # @param pagination_metadata [Orb::Models::PaginationMetadata, nil] + # @param data [Array] + # @param pagination_metadata [Orb::PaginationMetadata, nil] class Data < Orb::Internal::Type::BaseModel # @!attribute billable_metric # - # @return [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric] + # @return [Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric] required :billable_metric, - -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric } + -> { + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric + } # @!attribute metric_group # - # @return [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup] - required :metric_group, -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup } + # @return [Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup] + required :metric_group, -> { Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup } # @!attribute usage # - # @return [Array] + # @return [Array] required :usage, - -> { Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] } + -> { + Orb::Internal::Type::ArrayOf[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] + } # @!attribute view_mode # - # @return [Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode] - required :view_mode, enum: -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode } + # @return [Symbol, Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode] + required :view_mode, enum: -> { Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode } # @!method initialize(billable_metric:, metric_group:, usage:, view_mode:) - # @param billable_metric [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric] - # @param metric_group [Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup] - # @param usage [Array] - # @param view_mode [Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode] + # @param billable_metric [Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric] + # @param metric_group [Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup] + # @param usage [Array] + # @param view_mode [Symbol, Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode] - # @see Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data#billable_metric + # @see Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data#billable_metric class BillableMetric < Orb::Internal::Type::BaseModel # @!attribute id # @@ -158,7 +165,7 @@ class BillableMetric < Orb::Internal::Type::BaseModel # @param name [String] end - # @see Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data#metric_group + # @see Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data#metric_group class MetricGroup < Orb::Internal::Type::BaseModel # @!attribute property_key # @@ -197,7 +204,7 @@ class Usage < Orb::Internal::Type::BaseModel # @param timeframe_start [Time] end - # @see Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data#view_mode + # @see Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data#view_mode module ViewMode extend Orb::Internal::Type::Enum @@ -211,7 +218,7 @@ module ViewMode end # @!method self.variants - # @return [Array(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage)] + # @return [Array(Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage)] end end end diff --git a/lib/orb/models/subscriptions.rb b/lib/orb/models/subscriptions.rb index 13580ca9..0e6cfb3d 100644 --- a/lib/orb/models/subscriptions.rb +++ b/lib/orb/models/subscriptions.rb @@ -5,17 +5,17 @@ module Models class SubscriptionsAPI < Orb::Internal::Type::BaseModel # @!attribute data # - # @return [Array] - required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Models::Subscription] } + # @return [Array] + required :data, -> { Orb::Internal::Type::ArrayOf[Orb::Subscription] } # @!attribute pagination_metadata # - # @return [Orb::Models::PaginationMetadata] - required :pagination_metadata, -> { Orb::Models::PaginationMetadata } + # @return [Orb::PaginationMetadata] + required :pagination_metadata, -> { Orb::PaginationMetadata } # @!method initialize(data:, pagination_metadata:) - # @param data [Array] - # @param pagination_metadata [Orb::Models::PaginationMetadata] + # @param data [Array] + # @param pagination_metadata [Orb::PaginationMetadata] end end end diff --git a/lib/orb/models/trial_discount.rb b/lib/orb/models/trial_discount.rb index c9356939..3abd2c05 100644 --- a/lib/orb/models/trial_discount.rb +++ b/lib/orb/models/trial_discount.rb @@ -12,8 +12,8 @@ class TrialDiscount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::TrialDiscount::DiscountType] - required :discount_type, enum: -> { Orb::Models::TrialDiscount::DiscountType } + # @return [Symbol, Orb::TrialDiscount::DiscountType] + required :discount_type, enum: -> { Orb::TrialDiscount::DiscountType } # @!attribute reason # @@ -33,13 +33,12 @@ class TrialDiscount < Orb::Internal::Type::BaseModel optional :trial_percentage_discount, Float, nil?: true # @!method initialize(applies_to_price_ids:, discount_type:, reason: nil, trial_amount_discount: nil, trial_percentage_discount: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::TrialDiscount} for more details. + # Some parameter documentations has been truncated, see {Orb::TrialDiscount} for + # more details. # # @param applies_to_price_ids [Array] List of price_ids that this discount applies to. For plan/plan phase discounts, - # ... # - # @param discount_type [Symbol, Orb::Models::TrialDiscount::DiscountType] + # @param discount_type [Symbol, Orb::TrialDiscount::DiscountType] # # @param reason [String, nil] # @@ -47,7 +46,7 @@ class TrialDiscount < Orb::Internal::Type::BaseModel # # @param trial_percentage_discount [Float, nil] Only available if discount_type is `trial` - # @see Orb::Models::TrialDiscount#discount_type + # @see Orb::TrialDiscount#discount_type module DiscountType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/usage_discount.rb b/lib/orb/models/usage_discount.rb index 3a5bfc2d..ac436c50 100644 --- a/lib/orb/models/usage_discount.rb +++ b/lib/orb/models/usage_discount.rb @@ -12,8 +12,8 @@ class UsageDiscount < Orb::Internal::Type::BaseModel # @!attribute discount_type # - # @return [Symbol, Orb::Models::UsageDiscount::DiscountType] - required :discount_type, enum: -> { Orb::Models::UsageDiscount::DiscountType } + # @return [Symbol, Orb::UsageDiscount::DiscountType] + required :discount_type, enum: -> { Orb::UsageDiscount::DiscountType } # @!attribute usage_discount # Only available if discount_type is `usage`. Number of usage units that this @@ -28,20 +28,18 @@ class UsageDiscount < Orb::Internal::Type::BaseModel optional :reason, String, nil?: true # @!method initialize(applies_to_price_ids:, discount_type:, usage_discount:, reason: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::UsageDiscount} for more details. + # Some parameter documentations has been truncated, see {Orb::UsageDiscount} for + # more details. # # @param applies_to_price_ids [Array] List of price_ids that this discount applies to. For plan/plan phase discounts, - # ... # - # @param discount_type [Symbol, Orb::Models::UsageDiscount::DiscountType] + # @param discount_type [Symbol, Orb::UsageDiscount::DiscountType] # # @param usage_discount [Float] Only available if discount_type is `usage`. Number of usage units that this disc - # ... # # @param reason [String, nil] - # @see Orb::Models::UsageDiscount#discount_type + # @see Orb::UsageDiscount#discount_type module DiscountType extend Orb::Internal::Type::Enum diff --git a/lib/orb/resources/alerts.rb b/lib/orb/resources/alerts.rb index f3782696..c67cf72c 100644 --- a/lib/orb/resources/alerts.rb +++ b/lib/orb/resources/alerts.rb @@ -10,14 +10,14 @@ class Alerts # @param alert_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertRetrieveParams def retrieve(alert_id, params = {}) @client.request( method: :get, path: ["alerts/%1$s", alert_id], - model: Orb::Models::Alert, + model: Orb::Alert, options: params[:request_options] ) end @@ -28,20 +28,20 @@ def retrieve(alert_id, params = {}) # # @param alert_configuration_id [String] # - # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertUpdateParams def update(alert_configuration_id, params) - parsed, options = Orb::Models::AlertUpdateParams.dump_request(params) + parsed, options = Orb::AlertUpdateParams.dump_request(params) @client.request( method: :put, path: ["alerts/%1$s", alert_configuration_id], body: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -72,7 +72,6 @@ def update(alert_configuration_id, params) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [String, nil] Fetch alerts scoped to this customer_id # @@ -84,11 +83,11 @@ def update(alert_configuration_id, params) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::AlertListParams def list(params = {}) - parsed, options = Orb::Models::AlertListParams.dump_request(params) + parsed, options = Orb::AlertListParams.dump_request(params) @client.request( method: :get, path: "alerts", @@ -99,7 +98,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -119,22 +118,22 @@ def list(params = {}) # # @param currency [String] The case sensitive currency or custom pricing unit to use for this alert. # - # @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type. # - # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertCreateForCustomerParams def create_for_customer(customer_id, params) - parsed, options = Orb::Models::AlertCreateForCustomerParams.dump_request(params) + parsed, options = Orb::AlertCreateForCustomerParams.dump_request(params) @client.request( method: :post, path: ["alerts/customer_id/%1$s", customer_id], body: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -154,22 +153,22 @@ def create_for_customer(customer_id, params) # # @param currency [String] The case sensitive currency or custom pricing unit to use for this alert. # - # @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type. # - # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array, nil] The thresholds that define the values at which the alert will be triggered. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertCreateForExternalCustomerParams def create_for_external_customer(external_customer_id, params) - parsed, options = Orb::Models::AlertCreateForExternalCustomerParams.dump_request(params) + parsed, options = Orb::AlertCreateForExternalCustomerParams.dump_request(params) @client.request( method: :post, path: ["alerts/external_customer_id/%1$s", external_customer_id], body: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -190,24 +189,24 @@ def create_for_external_customer(external_customer_id, params) # # @param subscription_id [String] # - # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. + # @param thresholds [Array] The thresholds that define the values at which the alert will be triggered. # - # @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type. + # @param type [Symbol, Orb::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type. # # @param metric_id [String, nil] The metric to track usage for. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertCreateForSubscriptionParams def create_for_subscription(subscription_id, params) - parsed, options = Orb::Models::AlertCreateForSubscriptionParams.dump_request(params) + parsed, options = Orb::AlertCreateForSubscriptionParams.dump_request(params) @client.request( method: :post, path: ["alerts/subscription_id/%1$s", subscription_id], body: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -224,16 +223,16 @@ def create_for_subscription(subscription_id, params) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertDisableParams def disable(alert_configuration_id, params = {}) - parsed, options = Orb::Models::AlertDisableParams.dump_request(params) + parsed, options = Orb::AlertDisableParams.dump_request(params) @client.request( method: :post, path: ["alerts/%1$s/disable", alert_configuration_id], query: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end @@ -250,16 +249,16 @@ def disable(alert_configuration_id, params = {}) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Alert] + # @return [Orb::Alert] # # @see Orb::Models::AlertEnableParams def enable(alert_configuration_id, params = {}) - parsed, options = Orb::Models::AlertEnableParams.dump_request(params) + parsed, options = Orb::AlertEnableParams.dump_request(params) @client.request( method: :post, path: ["alerts/%1$s/enable", alert_configuration_id], query: parsed, - model: Orb::Models::Alert, + model: Orb::Alert, options: options ) end diff --git a/lib/orb/resources/coupons.rb b/lib/orb/resources/coupons.rb index f586704b..eb979942 100644 --- a/lib/orb/resources/coupons.rb +++ b/lib/orb/resources/coupons.rb @@ -14,30 +14,22 @@ class Coupons # # @overload create(discount:, redemption_code:, duration_in_months: nil, max_redemptions: nil, request_options: {}) # - # @param discount [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount] + # @param discount [Orb::CouponCreateParams::Discount::Percentage, Orb::CouponCreateParams::Discount::Amount] # # @param redemption_code [String] This string can be used to redeem this coupon for a given subscription. # # @param duration_in_months [Integer, nil] This allows for a coupon's discount to apply for a limited time (determined in m - # ... # # @param max_redemptions [Integer, nil] The maximum number of redemptions allowed for this coupon before it is exhausted - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Coupon] + # @return [Orb::Coupon] # # @see Orb::Models::CouponCreateParams def create(params) - parsed, options = Orb::Models::CouponCreateParams.dump_request(params) - @client.request( - method: :post, - path: "coupons", - body: parsed, - model: Orb::Models::Coupon, - options: options - ) + parsed, options = Orb::CouponCreateParams.dump_request(params) + @client.request(method: :post, path: "coupons", body: parsed, model: Orb::Coupon, options: options) end # Some parameter documentations has been truncated, see @@ -53,28 +45,26 @@ def create(params) # @overload list(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param redemption_code [String, nil] Filter to coupons matching this redemption code. # # @param show_archived [Boolean, nil] Show archived coupons as well (by default, this endpoint only returns active cou - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::CouponListParams def list(params = {}) - parsed, options = Orb::Models::CouponListParams.dump_request(params) + parsed, options = Orb::CouponListParams.dump_request(params) @client.request( method: :get, path: "coupons", query: parsed, page: Orb::Internal::Page, - model: Orb::Models::Coupon, + model: Orb::Coupon, options: options ) end @@ -88,14 +78,14 @@ def list(params = {}) # @param coupon_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Coupon] + # @return [Orb::Coupon] # # @see Orb::Models::CouponArchiveParams def archive(coupon_id, params = {}) @client.request( method: :post, path: ["coupons/%1$s/archive", coupon_id], - model: Orb::Models::Coupon, + model: Orb::Coupon, options: params[:request_options] ) end @@ -109,14 +99,14 @@ def archive(coupon_id, params = {}) # @param coupon_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Coupon] + # @return [Orb::Coupon] # # @see Orb::Models::CouponFetchParams def fetch(coupon_id, params = {}) @client.request( method: :get, path: ["coupons/%1$s", coupon_id], - model: Orb::Models::Coupon, + model: Orb::Coupon, options: params[:request_options] ) end diff --git a/lib/orb/resources/coupons/subscriptions.rb b/lib/orb/resources/coupons/subscriptions.rb index 90443b38..db6e7b3a 100644 --- a/lib/orb/resources/coupons/subscriptions.rb +++ b/lib/orb/resources/coupons/subscriptions.rb @@ -17,23 +17,22 @@ class Subscriptions # @param coupon_id [String] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::Coupons::SubscriptionListParams def list(coupon_id, params = {}) - parsed, options = Orb::Models::Coupons::SubscriptionListParams.dump_request(params) + parsed, options = Orb::Coupons::SubscriptionListParams.dump_request(params) @client.request( method: :get, path: ["coupons/%1$s/subscriptions", coupon_id], query: parsed, page: Orb::Internal::Page, - model: Orb::Models::Subscription, + model: Orb::Subscription, options: options ) end diff --git a/lib/orb/resources/credit_notes.rb b/lib/orb/resources/credit_notes.rb index 9308325e..d3efccf9 100644 --- a/lib/orb/resources/credit_notes.rb +++ b/lib/orb/resources/credit_notes.rb @@ -8,24 +8,24 @@ class CreditNotes # # @overload create(line_items:, memo: nil, reason: nil, request_options: {}) # - # @param line_items [Array] + # @param line_items [Array] # # @param memo [String, nil] An optional memo to attach to the credit note. # - # @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason, nil] An optional reason for the credit note. + # @param reason [Symbol, Orb::CreditNoteCreateParams::Reason, nil] An optional reason for the credit note. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::CreditNote] + # @return [Orb::CreditNote] # # @see Orb::Models::CreditNoteCreateParams def create(params) - parsed, options = Orb::Models::CreditNoteCreateParams.dump_request(params) + parsed, options = Orb::CreditNoteCreateParams.dump_request(params) @client.request( method: :post, path: "credit_notes", body: parsed, - model: Orb::Models::CreditNote, + model: Orb::CreditNote, options: options ) end @@ -48,17 +48,16 @@ def create(params) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::CreditNoteListParams def list(params = {}) - parsed, options = Orb::Models::CreditNoteListParams.dump_request(params) + parsed, options = Orb::CreditNoteListParams.dump_request(params) @client.request( method: :get, path: "credit_notes", @@ -69,7 +68,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::CreditNote, + model: Orb::CreditNote, options: options ) end @@ -82,14 +81,14 @@ def list(params = {}) # @param credit_note_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::CreditNote] + # @return [Orb::CreditNote] # # @see Orb::Models::CreditNoteFetchParams def fetch(credit_note_id, params = {}) @client.request( method: :get, path: ["credit_notes/%1$s", credit_note_id], - model: Orb::Models::CreditNote, + model: Orb::CreditNote, options: params[:request_options] ) end diff --git a/lib/orb/resources/customers.rb b/lib/orb/resources/customers.rb index bacef08a..618ca5b0 100644 --- a/lib/orb/resources/customers.rb +++ b/lib/orb/resources/customers.rb @@ -31,63 +31,53 @@ class Customers # @overload create(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {}) # # @param email [String] A valid customer email, to be used for notifications. When Orb triggers payment - # ... # # @param name [String] The full name of the customer # - # @param accounting_sync_configuration [Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerCreateParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerCreateParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerCreateParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] An optional user-defined ID for this customer resource, used throughout the syst - # ... # - # @param hierarchy [Orb::Models::CustomerCreateParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerCreateParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # - # @param payment_provider [Symbol, Orb::Models::CustomerCreateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerCreateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerCreateParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerCreateParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerCreateParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerCreateParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerCreateParams::TaxConfiguration::Avalara, Orb::CustomerCreateParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param timezone [String, nil] A timezone identifier from the IANA timezone database, such as `"America/Los_Ang - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Customer] + # @return [Orb::Customer] # # @see Orb::Models::CustomerCreateParams def create(params) - parsed, options = Orb::Models::CustomerCreateParams.dump_request(params) + parsed, options = Orb::CustomerCreateParams.dump_request(params) @client.request( method: :post, path: "customers", body: parsed, - model: Orb::Models::Customer, + model: Orb::Customer, options: options ) end @@ -105,60 +95,52 @@ def create(params) # # @param customer_id [String] # - # @param accounting_sync_configuration [Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerUpdateParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerUpdateParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerUpdateParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email [String, nil] A valid customer email, to be used for invoicing and notifications. # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no - # ... # - # @param hierarchy [Orb::Models::CustomerUpdateParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerUpdateParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param name [String, nil] The full name of the customer # - # @param payment_provider [Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerUpdateParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerUpdateParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerUpdateParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerUpdateParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerUpdateParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::CustomerUpdateParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Customer] + # @return [Orb::Customer] # # @see Orb::Models::CustomerUpdateParams def update(customer_id, params = {}) - parsed, options = Orb::Models::CustomerUpdateParams.dump_request(params) + parsed, options = Orb::CustomerUpdateParams.dump_request(params) @client.request( method: :put, path: ["customers/%1$s", customer_id], body: parsed, - model: Orb::Models::Customer, + model: Orb::Customer, options: options ) end @@ -184,17 +166,16 @@ def update(customer_id, params = {}) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::CustomerListParams def list(params = {}) - parsed, options = Orb::Models::CustomerListParams.dump_request(params) + parsed, options = Orb::CustomerListParams.dump_request(params) @client.request( method: :get, path: "customers", @@ -205,7 +186,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::Customer, + model: Orb::Customer, options: options ) end @@ -255,14 +236,14 @@ def delete(customer_id, params = {}) # @param customer_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Customer] + # @return [Orb::Customer] # # @see Orb::Models::CustomerFetchParams def fetch(customer_id, params = {}) @client.request( method: :get, path: ["customers/%1$s", customer_id], - model: Orb::Models::Customer, + model: Orb::Customer, options: params[:request_options] ) end @@ -278,14 +259,14 @@ def fetch(customer_id, params = {}) # @param external_customer_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Customer] + # @return [Orb::Customer] # # @see Orb::Models::CustomerFetchByExternalIDParams def fetch_by_external_id(external_customer_id, params = {}) @client.request( method: :get, path: ["customers/external_customer_id/%1$s", external_customer_id], - model: Orb::Models::Customer, + model: Orb::Customer, options: params[:request_options] ) end @@ -353,60 +334,52 @@ def sync_payment_methods_from_gateway_by_external_customer_id(external_customer_ # # @param id [String] # - # @param accounting_sync_configuration [Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] + # @param accounting_sync_configuration [Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, nil] # # @param additional_emails [Array, nil] Additional email addresses for this customer. If populated, these email addresse - # ... # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch - # ... # - # @param billing_address [Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, nil] + # @param billing_address [Orb::CustomerUpdateByExternalIDParams::BillingAddress, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not - # ... # # @param email [String, nil] A valid customer email, to be used for invoicing and notifications. # # @param email_delivery [Boolean, nil] # # @param external_customer_id [String, nil] The external customer ID. This can only be set if empty and the customer has no - # ... # - # @param hierarchy [Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, nil] The hierarchical relationships for this customer. + # @param hierarchy [Orb::CustomerUpdateByExternalIDParams::Hierarchy, nil] The hierarchical relationships for this customer. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param name [String, nil] The full name of the customer # - # @param payment_provider [Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe - # ... + # @param payment_provider [Symbol, Orb::CustomerUpdateByExternalIDParams::PaymentProvider, nil] This is used for creating charges or invoices in an external system via Orb. Whe # # @param payment_provider_id [String, nil] The ID of this customer in an external payments solution, such as Stripe. This i - # ... # - # @param reporting_configuration [Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] + # @param reporting_configuration [Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration, nil] # - # @param shipping_address [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil] + # @param shipping_address [Orb::CustomerUpdateByExternalIDParams::ShippingAddress, nil] # - # @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] + # @param tax_configuration [Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil] # - # @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad - # ... + # @param tax_id [Orb::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Customer] + # @return [Orb::Customer] # # @see Orb::Models::CustomerUpdateByExternalIDParams def update_by_external_id(id, params = {}) - parsed, options = Orb::Models::CustomerUpdateByExternalIDParams.dump_request(params) + parsed, options = Orb::CustomerUpdateByExternalIDParams.dump_request(params) @client.request( method: :put, path: ["customers/external_customer_id/%1$s", id], body: parsed, - model: Orb::Models::Customer, + model: Orb::Customer, options: options ) end diff --git a/lib/orb/resources/customers/balance_transactions.rb b/lib/orb/resources/customers/balance_transactions.rb index f8c96c54..de217912 100644 --- a/lib/orb/resources/customers/balance_transactions.rb +++ b/lib/orb/resources/customers/balance_transactions.rb @@ -13,7 +13,7 @@ class BalanceTransactions # # @param amount [String] # - # @param type [Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type] + # @param type [Symbol, Orb::Customers::BalanceTransactionCreateParams::Type] # # @param description [String, nil] An optional description that can be specified around this entry. # @@ -23,7 +23,7 @@ class BalanceTransactions # # @see Orb::Models::Customers::BalanceTransactionCreateParams def create(customer_id, params) - parsed, options = Orb::Models::Customers::BalanceTransactionCreateParams.dump_request(params) + parsed, options = Orb::Customers::BalanceTransactionCreateParams.dump_request(params) @client.request( method: :post, path: ["customers/%1$s/balance_transactions", customer_id], @@ -70,7 +70,6 @@ def create(customer_id, params) # @param customer_id [String] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -88,7 +87,7 @@ def create(customer_id, params) # # @see Orb::Models::Customers::BalanceTransactionListParams def list(customer_id, params = {}) - parsed, options = Orb::Models::Customers::BalanceTransactionListParams.dump_request(params) + parsed, options = Orb::Customers::BalanceTransactionListParams.dump_request(params) @client.request( method: :get, path: ["customers/%1$s/balance_transactions", customer_id], diff --git a/lib/orb/resources/customers/costs.rb b/lib/orb/resources/customers/costs.rb index 55631fc4..bad81d10 100644 --- a/lib/orb/resources/customers/costs.rb +++ b/lib/orb/resources/customers/costs.rb @@ -135,8 +135,7 @@ class Costs # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::Customers::CostListParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::Customers::CostListParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -144,7 +143,7 @@ class Costs # # @see Orb::Models::Customers::CostListParams def list(customer_id, params = {}) - parsed, options = Orb::Models::Customers::CostListParams.dump_request(params) + parsed, options = Orb::Customers::CostListParams.dump_request(params) @client.request( method: :get, path: ["customers/%1$s/costs", customer_id], @@ -285,8 +284,7 @@ def list(customer_id, params = {}) # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::Customers::CostListByExternalIDParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -294,7 +292,7 @@ def list(customer_id, params = {}) # # @see Orb::Models::Customers::CostListByExternalIDParams def list_by_external_id(external_customer_id, params = {}) - parsed, options = Orb::Models::Customers::CostListByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::CostListByExternalIDParams.dump_request(params) @client.request( method: :get, path: ["customers/external_customer_id/%1$s/costs", external_customer_id], diff --git a/lib/orb/resources/customers/credits.rb b/lib/orb/resources/customers/credits.rb index 09a030df..bf31038d 100644 --- a/lib/orb/resources/customers/credits.rb +++ b/lib/orb/resources/customers/credits.rb @@ -28,10 +28,8 @@ class Credits # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param include_all_blocks [Boolean] If set to True, all expired and depleted blocks, as well as active block will be - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -41,7 +39,7 @@ class Credits # # @see Orb::Models::Customers::CreditListParams def list(customer_id, params = {}) - parsed, options = Orb::Models::Customers::CreditListParams.dump_request(params) + parsed, options = Orb::Customers::CreditListParams.dump_request(params) @client.request( method: :get, path: ["customers/%1$s/credits", customer_id], @@ -70,10 +68,8 @@ def list(customer_id, params = {}) # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param include_all_blocks [Boolean] If set to True, all expired and depleted blocks, as well as active block will be - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -83,7 +79,7 @@ def list(customer_id, params = {}) # # @see Orb::Models::Customers::CreditListByExternalIDParams def list_by_external_id(external_customer_id, params = {}) - parsed, options = Orb::Models::Customers::CreditListByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::CreditListByExternalIDParams.dump_request(params) @client.request( method: :get, path: ["customers/external_customer_id/%1$s/credits", external_customer_id], diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index 08eec621..1945a663 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -105,11 +105,10 @@ class Ledger # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # - # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus, nil] + # @param entry_status [Symbol, Orb::Customers::Credits::LedgerListParams::EntryStatus, nil] # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType, nil] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerListParams::EntryType, nil] # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -121,7 +120,7 @@ class Ledger # # @see Orb::Models::Customers::Credits::LedgerListParams def list(customer_id, params = {}) - parsed, options = Orb::Models::Customers::Credits::LedgerListParams.dump_request(params) + parsed, options = Orb::Customers::Credits::LedgerListParams.dump_request(params) @client.request( method: :get, path: ["customers/%1$s/credits/ledger", customer_id], @@ -256,36 +255,28 @@ def list(customer_id, params = {}) # @param customer_id [String] # # @param amount [Float] The number of credits to effect. Note that this is required for increment, decre - # ... # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::EntryType] # # @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire # # @param target_expiry_date [Date] A future date (specified in YYYY-MM-DD format) used for expiration change, denot - # ... # # @param block_id [String] The ID of the block to reverse a decrement from. # # @param currency [String, nil] The currency or custom pricing unit to use for this ledger entry. If this is a r - # ... # # @param description [String, nil] Optional metadata that can be specified when adding ledger results via the API. - # ... # # @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde - # ... + # @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur - # ... # - # @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. + # @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -293,7 +284,7 @@ def list(customer_id, params = {}) # # @see Orb::Models::Customers::Credits::LedgerCreateEntryParams def create_entry(customer_id, params) - parsed, options = Orb::Models::Customers::Credits::LedgerCreateEntryParams.dump_request(params) + parsed, options = Orb::Customers::Credits::LedgerCreateEntryParams.dump_request(params) @client.request( method: :post, path: ["customers/%1$s/credits/ledger_entry", customer_id], @@ -423,36 +414,28 @@ def create_entry(customer_id, params) # @param external_customer_id [String] # # @param amount [Float] The number of credits to effect. Note that this is required for increment, decre - # ... # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] # # @param expiry_date [Time, nil] An ISO 8601 format date that identifies the origination credit block to expire # # @param target_expiry_date [Date] A future date (specified in YYYY-MM-DD format) used for expiration change, denot - # ... # # @param block_id [String] The ID of the block to reverse a decrement from. # # @param currency [String, nil] The currency or custom pricing unit to use for this ledger entry. If this is a r - # ... # # @param description [String, nil] Optional metadata that can be specified when adding ledger results via the API. - # ... # # @param effective_date [Time, nil] An ISO 8601 format date that denotes when this credit balance should become avai - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde - # ... + # @param invoice_settings [Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] Passing `invoice_settings` automatically generates an invoice for the newly adde # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param per_unit_cost_basis [String, nil] Can only be specified when entry_type=increment. How much, in the customer's cur - # ... # - # @param void_reason [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. + # @param void_reason [Symbol, Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] Can only be specified when `entry_type=void`. The reason for the void. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -460,8 +443,7 @@ def create_entry(customer_id, params) # # @see Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams def create_entry_by_external_id(external_customer_id, params) - parsed, options = - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) @client.request( method: :post, path: ["customers/external_customer_id/%1$s/credits/ledger_entry", external_customer_id], @@ -572,11 +554,10 @@ def create_entry_by_external_id(external_customer_id, params) # @param currency [String, nil] The ledger currency or custom pricing unit to use. # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # - # @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] + # @param entry_status [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus, nil] # - # @param entry_type [Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] + # @param entry_type [Symbol, Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType, nil] # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -588,7 +569,7 @@ def create_entry_by_external_id(external_customer_id, params) # # @see Orb::Models::Customers::Credits::LedgerListByExternalIDParams def list_by_external_id(external_customer_id, params = {}) - parsed, options = Orb::Models::Customers::Credits::LedgerListByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::Credits::LedgerListByExternalIDParams.dump_request(params) @client.request( method: :get, path: ["customers/external_customer_id/%1$s/credits/ledger", external_customer_id], diff --git a/lib/orb/resources/customers/credits/top_ups.rb b/lib/orb/resources/customers/credits/top_ups.rb index b3f23a40..b56a4169 100644 --- a/lib/orb/resources/customers/credits/top_ups.rb +++ b/lib/orb/resources/customers/credits/top_ups.rb @@ -23,22 +23,18 @@ class TopUps # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. + # @param invoice_settings [Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param active_from [Time, nil] The date from which the top-up is active. If unspecified, the top-up is active i - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # - # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after. + # @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] The unit of expires_after. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -46,7 +42,7 @@ class TopUps # # @see Orb::Models::Customers::Credits::TopUpCreateParams def create(customer_id, params) - parsed, options = Orb::Models::Customers::Credits::TopUpCreateParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpCreateParams.dump_request(params) @client.request( method: :post, path: ["customers/%1$s/credits/top_ups", customer_id], @@ -66,7 +62,6 @@ def create(customer_id, params) # @param customer_id [String] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -76,7 +71,7 @@ def create(customer_id, params) # # @see Orb::Models::Customers::Credits::TopUpListParams def list(customer_id, params = {}) - parsed, options = Orb::Models::Customers::Credits::TopUpListParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpListParams.dump_request(params) @client.request( method: :get, path: ["customers/%1$s/credits/top_ups", customer_id], @@ -100,7 +95,7 @@ def list(customer_id, params = {}) # # @see Orb::Models::Customers::Credits::TopUpDeleteParams def delete(top_up_id, params) - parsed, options = Orb::Models::Customers::Credits::TopUpDeleteParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpDeleteParams.dump_request(params) customer_id = parsed.delete(:customer_id) do raise ArgumentError.new("missing required path argument #{_1}") @@ -132,22 +127,18 @@ def delete(top_up_id, params) # @param amount [String] The amount to increment when the threshold is reached. # # @param currency [String] The currency or custom pricing unit to use for this top-up. If this is a real-wo - # ... # - # @param invoice_settings [Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. + # @param invoice_settings [Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings] Settings for invoices generated by triggered top-ups. # # @param per_unit_cost_basis [String] How much, in the customer's currency, to charge for each unit. # # @param threshold [String] The threshold at which to trigger the top-up. If the balance is at or below this - # ... # # @param active_from [Time, nil] The date from which the top-up is active. If unspecified, the top-up is active i - # ... # # @param expires_after [Integer, nil] The number of days or months after which the top-up expires. If unspecified, it - # ... # - # @param expires_after_unit [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after. + # @param expires_after_unit [Symbol, Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] The unit of expires_after. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -155,7 +146,7 @@ def delete(top_up_id, params) # # @see Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams def create_by_external_id(external_customer_id, params) - parsed, options = Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpCreateByExternalIDParams.dump_request(params) @client.request( method: :post, path: ["customers/external_customer_id/%1$s/credits/top_ups", external_customer_id], @@ -178,7 +169,7 @@ def create_by_external_id(external_customer_id, params) # # @see Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams def delete_by_external_id(top_up_id, params) - parsed, options = Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpDeleteByExternalIDParams.dump_request(params) external_customer_id = parsed.delete(:external_customer_id) do raise ArgumentError.new("missing required path argument #{_1}") @@ -205,7 +196,6 @@ def delete_by_external_id(top_up_id, params) # @param external_customer_id [String] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -215,7 +205,7 @@ def delete_by_external_id(top_up_id, params) # # @see Orb::Models::Customers::Credits::TopUpListByExternalIDParams def list_by_external_id(external_customer_id, params = {}) - parsed, options = Orb::Models::Customers::Credits::TopUpListByExternalIDParams.dump_request(params) + parsed, options = Orb::Customers::Credits::TopUpListByExternalIDParams.dump_request(params) @client.request( method: :get, path: ["customers/external_customer_id/%1$s/credits/top_ups", external_customer_id], diff --git a/lib/orb/resources/dimensional_price_groups.rb b/lib/orb/resources/dimensional_price_groups.rb index 5ec2c65e..0e3d187f 100644 --- a/lib/orb/resources/dimensional_price_groups.rb +++ b/lib/orb/resources/dimensional_price_groups.rb @@ -29,20 +29,19 @@ class DimensionalPriceGroups # @param external_dimensional_price_group_id [String, nil] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::DimensionalPriceGroup] + # @return [Orb::DimensionalPriceGroup] # # @see Orb::Models::DimensionalPriceGroupCreateParams def create(params) - parsed, options = Orb::Models::DimensionalPriceGroupCreateParams.dump_request(params) + parsed, options = Orb::DimensionalPriceGroupCreateParams.dump_request(params) @client.request( method: :post, path: "dimensional_price_groups", body: parsed, - model: Orb::Models::DimensionalPriceGroup, + model: Orb::DimensionalPriceGroup, options: options ) end @@ -54,14 +53,14 @@ def create(params) # @param dimensional_price_group_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::DimensionalPriceGroup] + # @return [Orb::DimensionalPriceGroup] # # @see Orb::Models::DimensionalPriceGroupRetrieveParams def retrieve(dimensional_price_group_id, params = {}) @client.request( method: :get, path: ["dimensional_price_groups/%1$s", dimensional_price_group_id], - model: Orb::Models::DimensionalPriceGroup, + model: Orb::DimensionalPriceGroup, options: params[:request_options] ) end @@ -74,23 +73,22 @@ def retrieve(dimensional_price_group_id, params = {}) # @overload list(cursor: nil, limit: nil, request_options: {}) # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::DimensionalPriceGroupListParams def list(params = {}) - parsed, options = Orb::Models::DimensionalPriceGroupListParams.dump_request(params) + parsed, options = Orb::DimensionalPriceGroupListParams.dump_request(params) @client.request( method: :get, path: "dimensional_price_groups", query: parsed, page: Orb::Internal::Page, - model: Orb::Models::DimensionalPriceGroup, + model: Orb::DimensionalPriceGroup, options: options ) end diff --git a/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb b/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb index e3dd1c62..6e499895 100644 --- a/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +++ b/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb @@ -11,7 +11,7 @@ class ExternalDimensionalPriceGroupID # @param external_dimensional_price_group_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::DimensionalPriceGroup] + # @return [Orb::DimensionalPriceGroup] # # @see Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams def retrieve(external_dimensional_price_group_id, params = {}) @@ -21,7 +21,7 @@ def retrieve(external_dimensional_price_group_id, params = {}) "dimensional_price_groups/external_dimensional_price_group_id/%1$s", external_dimensional_price_group_id ], - model: Orb::Models::DimensionalPriceGroup, + model: Orb::DimensionalPriceGroup, options: params[:request_options] ) end diff --git a/lib/orb/resources/events.rb b/lib/orb/resources/events.rb index 5297e5db..7635421f 100644 --- a/lib/orb/resources/events.rb +++ b/lib/orb/resources/events.rb @@ -65,15 +65,12 @@ class Events # @param event_name [String] A name to meaningfully identify the action or event type. # # @param properties [Object] A dictionary of custom properties. Values in this dictionary must be numeric, bo - # ... # # @param timestamp [Time] An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen - # ... # # @param customer_id [String, nil] The Orb Customer identifier # # @param external_customer_id [String, nil] An alias for the Orb customer, whose mapping is specified when creating the cust - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -81,7 +78,7 @@ class Events # # @see Orb::Models::EventUpdateParams def update(event_id, params) - parsed, options = Orb::Models::EventUpdateParams.dump_request(params) + parsed, options = Orb::EventUpdateParams.dump_request(params) @client.request( method: :put, path: ["events/%1$s", event_id], @@ -359,13 +356,11 @@ def deprecate(event_id, params = {}) # # @overload ingest(events:, backfill_id: nil, debug: nil, request_options: {}) # - # @param events [Array] Body param: + # @param events [Array] Body param: # # @param backfill_id [String, nil] Query param: If this ingestion request is part of a backfill, this parameter tie - # ... # # @param debug [Boolean] Query param: Flag to enable additional debug information in the endpoint respons - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -373,7 +368,7 @@ def deprecate(event_id, params = {}) # # @see Orb::Models::EventIngestParams def ingest(params) - parsed, options = Orb::Models::EventIngestParams.dump_request(params) + parsed, options = Orb::EventIngestParams.dump_request(params) query_params = [:backfill_id, :debug] @client.request( method: :post, @@ -407,13 +402,10 @@ def ingest(params) # @overload search(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) # # @param event_ids [Array] This is an explicit array of IDs to filter by. Note that an event's ID is the id - # ... # # @param timeframe_end [Time, nil] The end of the timeframe, exclusive, in which to search events. If not specified - # ... # # @param timeframe_start [Time, nil] The start of the timeframe, inclusive, in which to search events. If not specifi - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -421,7 +413,7 @@ def ingest(params) # # @see Orb::Models::EventSearchParams def search(params) - parsed, options = Orb::Models::EventSearchParams.dump_request(params) + parsed, options = Orb::EventSearchParams.dump_request(params) @client.request( method: :post, path: "events/search", diff --git a/lib/orb/resources/events/backfills.rb b/lib/orb/resources/events/backfills.rb index 57708a91..3e979fb7 100644 --- a/lib/orb/resources/events/backfills.rb +++ b/lib/orb/resources/events/backfills.rb @@ -48,25 +48,18 @@ class Backfills # @overload create(timeframe_end:, timeframe_start:, close_time: nil, customer_id: nil, deprecation_filter: nil, external_customer_id: nil, replace_existing_events: nil, request_options: {}) # # @param timeframe_end [Time] The (exclusive) end of the usage timeframe affected by this backfill. By default - # ... # # @param timeframe_start [Time] The (inclusive) start of the usage timeframe affected by this backfill. By defau - # ... # # @param close_time [Time, nil] The time at which no more events will be accepted for this backfill. The backfil - # ... # # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. Omitting - # ... # # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # # @param external_customer_id [String, nil] The external customer ID of the customer to which this backfill is scoped. Omitt - # ... # # @param replace_existing_events [Boolean] If true, replaces all existing events in the timeframe with the newly ingested e - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -74,7 +67,7 @@ class Backfills # # @see Orb::Models::Events::BackfillCreateParams def create(params) - parsed, options = Orb::Models::Events::BackfillCreateParams.dump_request(params) + parsed, options = Orb::Events::BackfillCreateParams.dump_request(params) @client.request( method: :post, path: "events/backfills", @@ -98,7 +91,6 @@ def create(params) # @overload list(cursor: nil, limit: nil, request_options: {}) # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -108,7 +100,7 @@ def create(params) # # @see Orb::Models::Events::BackfillListParams def list(params = {}) - parsed, options = Orb::Models::Events::BackfillListParams.dump_request(params) + parsed, options = Orb::Events::BackfillListParams.dump_request(params) @client.request( method: :get, path: "events/backfills", diff --git a/lib/orb/resources/events/volume.rb b/lib/orb/resources/events/volume.rb index 2daa572e..45bb26f4 100644 --- a/lib/orb/resources/events/volume.rb +++ b/lib/orb/resources/events/volume.rb @@ -24,28 +24,25 @@ class Volume # @overload list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) # # @param timeframe_start [Time] The start of the timeframe, inclusive, in which to return event volume. All date - # ... # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param timeframe_end [Time] The end of the timeframe, exclusive, in which to return event volume. If not spe - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Events::EventVolumes] + # @return [Orb::Events::EventVolumes] # # @see Orb::Models::Events::VolumeListParams def list(params) - parsed, options = Orb::Models::Events::VolumeListParams.dump_request(params) + parsed, options = Orb::Events::VolumeListParams.dump_request(params) @client.request( method: :get, path: "events/volume", query: parsed, - model: Orb::Models::Events::EventVolumes, + model: Orb::Events::EventVolumes, options: options ) end diff --git a/lib/orb/resources/invoice_line_items.rb b/lib/orb/resources/invoice_line_items.rb index 55264add..0b481ecb 100644 --- a/lib/orb/resources/invoice_line_items.rb +++ b/lib/orb/resources/invoice_line_items.rb @@ -18,7 +18,6 @@ class InvoiceLineItems # @param invoice_id [String] The id of the Invoice to add this line item. # # @param name [String] The item name associated with this line item. If an item with the same name exis - # ... # # @param quantity [Float] The number of units on the line item # @@ -30,7 +29,7 @@ class InvoiceLineItems # # @see Orb::Models::InvoiceLineItemCreateParams def create(params) - parsed, options = Orb::Models::InvoiceLineItemCreateParams.dump_request(params) + parsed, options = Orb::InvoiceLineItemCreateParams.dump_request(params) @client.request( method: :post, path: "invoice_line_items", diff --git a/lib/orb/resources/invoices.rb b/lib/orb/resources/invoices.rb index 8c978916..2633e7f0 100644 --- a/lib/orb/resources/invoices.rb +++ b/lib/orb/resources/invoices.rb @@ -11,46 +11,33 @@ class Invoices # @overload create(currency:, invoice_date:, line_items:, net_terms:, customer_id: nil, discount: nil, external_customer_id: nil, memo: nil, metadata: nil, will_auto_issue: nil, request_options: {}) # # @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i - # ... # # @param invoice_date [Time] Optional invoice date to set. Must be in the past, if not set, `invoice_date` is - # ... # - # @param line_items [Array] + # @param line_items [Array] # # @param net_terms [Integer] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param customer_id [String, nil] The id of the `Customer` to create this invoice for. One of `customer_id` and `e - # ... # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice. + # @param discount [Orb::PercentageDiscount, Orb::TrialDiscount, Orb::UsageDiscount, Orb::AmountDiscount, nil] An optional discount to attach to the invoice. # # @param external_customer_id [String, nil] The `external_customer_id` of the `Customer` to create this invoice for. One of - # ... # # @param memo [String, nil] An optional memo to attach to the invoice. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceCreateParams def create(params) - parsed, options = Orb::Models::InvoiceCreateParams.dump_request(params) - @client.request( - method: :post, - path: "invoices", - body: parsed, - model: Orb::Models::Invoice, - options: options - ) + parsed, options = Orb::InvoiceCreateParams.dump_request(params) + @client.request(method: :post, path: "invoices", body: parsed, model: Orb::Invoice, options: options) end # Some parameter documentations has been truncated, see @@ -67,20 +54,19 @@ def create(params) # @param invoice_id [String] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceUpdateParams def update(invoice_id, params = {}) - parsed, options = Orb::Models::InvoiceUpdateParams.dump_request(params) + parsed, options = Orb::InvoiceUpdateParams.dump_request(params) @client.request( method: :put, path: ["invoices/%1$s", invoice_id], body: parsed, - model: Orb::Models::Invoice, + model: Orb::Invoice, options: options ) end @@ -111,16 +97,14 @@ def update(invoice_id, params = {}) # @param amount_lt [String, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [String, nil] # - # @param date_type [Symbol, Orb::Models::InvoiceListParams::DateType, nil] + # @param date_type [Symbol, Orb::InvoiceListParams::DateType, nil] # # @param due_date [Date, nil] # # @param due_date_window [String, nil] Filters invoices by their due dates within a specific time range in the past. Sp - # ... # # @param due_date_gt [Date, nil] # @@ -140,17 +124,17 @@ def update(invoice_id, params = {}) # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Array, nil] + # @param status [Array, nil] # # @param subscription_id [String, nil] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::InvoiceListParams def list(params = {}) - parsed, options = Orb::Models::InvoiceListParams.dump_request(params) + parsed, options = Orb::InvoiceListParams.dump_request(params) @client.request( method: :get, path: "invoices", @@ -165,7 +149,7 @@ def list(params = {}) invoice_date_lte: "invoice_date[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::Invoice, + model: Orb::Invoice, options: options ) end @@ -178,14 +162,14 @@ def list(params = {}) # @param invoice_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceFetchParams def fetch(invoice_id, params = {}) @client.request( method: :get, path: ["invoices/%1$s", invoice_id], - model: Orb::Models::Invoice, + model: Orb::Invoice, options: params[:request_options] ) end @@ -203,7 +187,7 @@ def fetch(invoice_id, params = {}) # # @see Orb::Models::InvoiceFetchUpcomingParams def fetch_upcoming(params) - parsed, options = Orb::Models::InvoiceFetchUpcomingParams.dump_request(params) + parsed, options = Orb::InvoiceFetchUpcomingParams.dump_request(params) @client.request( method: :get, path: "invoices/upcoming", @@ -228,20 +212,19 @@ def fetch_upcoming(params) # @param invoice_id [String] # # @param synchronous [Boolean] If true, the invoice will be issued synchronously. If false, the invoice will be - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceIssueParams def issue(invoice_id, params = {}) - parsed, options = Orb::Models::InvoiceIssueParams.dump_request(params) + parsed, options = Orb::InvoiceIssueParams.dump_request(params) @client.request( method: :post, path: ["invoices/%1$s/issue", invoice_id], body: parsed, - model: Orb::Models::Invoice, + model: Orb::Invoice, options: options ) end @@ -261,16 +244,16 @@ def issue(invoice_id, params = {}) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceMarkPaidParams def mark_paid(invoice_id, params) - parsed, options = Orb::Models::InvoiceMarkPaidParams.dump_request(params) + parsed, options = Orb::InvoiceMarkPaidParams.dump_request(params) @client.request( method: :post, path: ["invoices/%1$s/mark_paid", invoice_id], body: parsed, - model: Orb::Models::Invoice, + model: Orb::Invoice, options: options ) end @@ -283,14 +266,14 @@ def mark_paid(invoice_id, params) # @param invoice_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoicePayParams def pay(invoice_id, params = {}) @client.request( method: :post, path: ["invoices/%1$s/pay", invoice_id], - model: Orb::Models::Invoice, + model: Orb::Invoice, options: params[:request_options] ) end @@ -312,14 +295,14 @@ def pay(invoice_id, params = {}) # @param invoice_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Invoice] + # @return [Orb::Invoice] # # @see Orb::Models::InvoiceVoidParams def void(invoice_id, params = {}) @client.request( method: :post, path: ["invoices/%1$s/void", invoice_id], - model: Orb::Models::Invoice, + model: Orb::Invoice, options: params[:request_options] ) end diff --git a/lib/orb/resources/items.rb b/lib/orb/resources/items.rb index 9b4289b5..a6bf1e32 100644 --- a/lib/orb/resources/items.rb +++ b/lib/orb/resources/items.rb @@ -11,12 +11,12 @@ class Items # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Item] + # @return [Orb::Item] # # @see Orb::Models::ItemCreateParams def create(params) - parsed, options = Orb::Models::ItemCreateParams.dump_request(params) - @client.request(method: :post, path: "items", body: parsed, model: Orb::Models::Item, options: options) + parsed, options = Orb::ItemCreateParams.dump_request(params) + @client.request(method: :post, path: "items", body: parsed, model: Orb::Item, options: options) end # This endpoint can be used to update properties on the Item. @@ -24,20 +24,20 @@ def create(params) # @overload update(item_id, external_connections: nil, name: nil, request_options: {}) # # @param item_id [String] - # @param external_connections [Array, nil] + # @param external_connections [Array, nil] # @param name [String, nil] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Item] + # @return [Orb::Item] # # @see Orb::Models::ItemUpdateParams def update(item_id, params = {}) - parsed, options = Orb::Models::ItemUpdateParams.dump_request(params) + parsed, options = Orb::ItemUpdateParams.dump_request(params) @client.request( method: :put, path: ["items/%1$s", item_id], body: parsed, - model: Orb::Models::Item, + model: Orb::Item, options: options ) end @@ -51,23 +51,22 @@ def update(item_id, params = {}) # @overload list(cursor: nil, limit: nil, request_options: {}) # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::ItemListParams def list(params = {}) - parsed, options = Orb::Models::ItemListParams.dump_request(params) + parsed, options = Orb::ItemListParams.dump_request(params) @client.request( method: :get, path: "items", query: parsed, page: Orb::Internal::Page, - model: Orb::Models::Item, + model: Orb::Item, options: options ) end @@ -79,14 +78,14 @@ def list(params = {}) # @param item_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Item] + # @return [Orb::Item] # # @see Orb::Models::ItemFetchParams def fetch(item_id, params = {}) @client.request( method: :get, path: ["items/%1$s", item_id], - model: Orb::Models::Item, + model: Orb::Item, options: params[:request_options] ) end diff --git a/lib/orb/resources/metrics.rb b/lib/orb/resources/metrics.rb index e0eb4d83..17e8a971 100644 --- a/lib/orb/resources/metrics.rb +++ b/lib/orb/resources/metrics.rb @@ -21,20 +21,19 @@ class Metrics # @param sql [String] A sql string defining the metric. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::BillableMetric] + # @return [Orb::BillableMetric] # # @see Orb::Models::MetricCreateParams def create(params) - parsed, options = Orb::Models::MetricCreateParams.dump_request(params) + parsed, options = Orb::MetricCreateParams.dump_request(params) @client.request( method: :post, path: "metrics", body: parsed, - model: Orb::Models::BillableMetric, + model: Orb::BillableMetric, options: options ) end @@ -51,20 +50,19 @@ def create(params) # @param metric_id [String] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::BillableMetric] + # @return [Orb::BillableMetric] # # @see Orb::Models::MetricUpdateParams def update(metric_id, params = {}) - parsed, options = Orb::Models::MetricUpdateParams.dump_request(params) + parsed, options = Orb::MetricUpdateParams.dump_request(params) @client.request( method: :put, path: ["metrics/%1$s", metric_id], body: parsed, - model: Orb::Models::BillableMetric, + model: Orb::BillableMetric, options: options ) end @@ -87,17 +85,16 @@ def update(metric_id, params = {}) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::MetricListParams def list(params = {}) - parsed, options = Orb::Models::MetricListParams.dump_request(params) + parsed, options = Orb::MetricListParams.dump_request(params) @client.request( method: :get, path: "metrics", @@ -108,7 +105,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::BillableMetric, + model: Orb::BillableMetric, options: options ) end @@ -121,14 +118,14 @@ def list(params = {}) # @param metric_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::BillableMetric] + # @return [Orb::BillableMetric] # # @see Orb::Models::MetricFetchParams def fetch(metric_id, params = {}) @client.request( method: :get, path: ["metrics/%1$s", metric_id], - model: Orb::Models::BillableMetric, + model: Orb::BillableMetric, options: params[:request_options] ) end diff --git a/lib/orb/resources/plans.rb b/lib/orb/resources/plans.rb index 6d2b136a..98bb9cdc 100644 --- a/lib/orb/resources/plans.rb +++ b/lib/orb/resources/plans.rb @@ -14,35 +14,29 @@ class Plans # @overload create(currency:, name:, prices:, default_invoice_memo: nil, external_plan_id: nil, metadata: nil, net_terms: nil, status: nil, request_options: {}) # # @param currency [String] An ISO 4217 currency string for invoices generated by subscriptions on this plan - # ... # # @param name [String] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph - # ... + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param default_invoice_memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal. - # ... # # @param external_plan_id [String, nil] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # - # @param status [Symbol, Orb::Models::PlanCreateParams::Status] The status of the plan to create (either active or draft). If not specified, thi - # ... + # @param status [Symbol, Orb::PlanCreateParams::Status] The status of the plan to create (either active or draft). If not specified, thi # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Plan] + # @return [Orb::Plan] # # @see Orb::Models::PlanCreateParams def create(params) - parsed, options = Orb::Models::PlanCreateParams.dump_request(params) - @client.request(method: :post, path: "plans", body: parsed, model: Orb::Models::Plan, options: options) + parsed, options = Orb::PlanCreateParams.dump_request(params) + @client.request(method: :post, path: "plans", body: parsed, model: Orb::Plan, options: options) end # Some parameter documentations has been truncated, see @@ -58,23 +52,21 @@ def create(params) # @param plan_id [String] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Plan] + # @return [Orb::Plan] # # @see Orb::Models::PlanUpdateParams def update(plan_id, params = {}) - parsed, options = Orb::Models::PlanUpdateParams.dump_request(params) + parsed, options = Orb::PlanUpdateParams.dump_request(params) @client.request( method: :put, path: ["plans/%1$s", plan_id], body: parsed, - model: Orb::Models::Plan, + model: Orb::Plan, options: options ) end @@ -99,19 +91,18 @@ def update(plan_id, params = {}) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Symbol, Orb::Models::PlanListParams::Status] The plan status to filter to ('active', 'archived', or 'draft'). + # @param status [Symbol, Orb::PlanListParams::Status] The plan status to filter to ('active', 'archived', or 'draft'). # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::PlanListParams def list(params = {}) - parsed, options = Orb::Models::PlanListParams.dump_request(params) + parsed, options = Orb::PlanListParams.dump_request(params) @client.request( method: :get, path: "plans", @@ -122,7 +113,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::Plan, + model: Orb::Plan, options: options ) end @@ -150,14 +141,14 @@ def list(params = {}) # @param plan_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Plan] + # @return [Orb::Plan] # # @see Orb::Models::PlanFetchParams def fetch(plan_id, params = {}) @client.request( method: :get, path: ["plans/%1$s", plan_id], - model: Orb::Models::Plan, + model: Orb::Plan, options: params[:request_options] ) end diff --git a/lib/orb/resources/plans/external_plan_id.rb b/lib/orb/resources/plans/external_plan_id.rb index aecdbeb3..57acf958 100644 --- a/lib/orb/resources/plans/external_plan_id.rb +++ b/lib/orb/resources/plans/external_plan_id.rb @@ -17,23 +17,21 @@ class ExternalPlanID # @param other_external_plan_id [String] # # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Plan] + # @return [Orb::Plan] # # @see Orb::Models::Plans::ExternalPlanIDUpdateParams def update(other_external_plan_id, params = {}) - parsed, options = Orb::Models::Plans::ExternalPlanIDUpdateParams.dump_request(params) + parsed, options = Orb::Plans::ExternalPlanIDUpdateParams.dump_request(params) @client.request( method: :put, path: ["plans/external_plan_id/%1$s", other_external_plan_id], body: parsed, - model: Orb::Models::Plan, + model: Orb::Plan, options: options ) end @@ -60,14 +58,14 @@ def update(other_external_plan_id, params = {}) # @param external_plan_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Plan] + # @return [Orb::Plan] # # @see Orb::Models::Plans::ExternalPlanIDFetchParams def fetch(external_plan_id, params = {}) @client.request( method: :get, path: ["plans/external_plan_id/%1$s", external_plan_id], - model: Orb::Models::Plan, + model: Orb::Plan, options: params[:request_options] ) end diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index 682e5cc9..9c6f120a 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -22,33 +22,33 @@ class Prices # # @overload create(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, tiered_bps_config:, bps_config:, bulk_bps_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) # - # @param cadence [Symbol, Orb::Models::PriceCreateParams::Cadence] The cadence to bill for this price on. + # @param cadence [Symbol, Orb::PriceCreateParams::Cadence] The cadence to bill for this price on. # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] + # @param model_type [Symbol, Orb::PriceCreateParams::ModelType] # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::PriceCreateParams::UnitConfig] + # @param unit_config [Orb::PriceCreateParams::UnitConfig] # - # @param package_config [Orb::Models::PriceCreateParams::PackageConfig] + # @param package_config [Orb::PriceCreateParams::PackageConfig] # - # @param matrix_config [Orb::Models::PriceCreateParams::MatrixConfig] + # @param matrix_config [Orb::PriceCreateParams::MatrixConfig] # - # @param matrix_with_allocation_config [Orb::Models::PriceCreateParams::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::PriceCreateParams::MatrixWithAllocationConfig] # - # @param tiered_config [Orb::Models::PriceCreateParams::TieredConfig] + # @param tiered_config [Orb::PriceCreateParams::TieredConfig] # - # @param tiered_bps_config [Orb::Models::PriceCreateParams::TieredBpsConfig] + # @param tiered_bps_config [Orb::PriceCreateParams::TieredBpsConfig] # - # @param bps_config [Orb::Models::PriceCreateParams::BpsConfig] + # @param bps_config [Orb::PriceCreateParams::BpsConfig] # - # @param bulk_bps_config [Orb::Models::PriceCreateParams::BulkBpsConfig] + # @param bulk_bps_config [Orb::PriceCreateParams::BulkBpsConfig] # - # @param bulk_config [Orb::Models::PriceCreateParams::BulkConfig] + # @param bulk_config [Orb::PriceCreateParams::BulkConfig] # # @param threshold_total_amount_config [Hash{Symbol=>Object}] # @@ -89,37 +89,31 @@ class Prices # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # ... # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # ... # - # @param billing_cycle_configuration [Orb::Models::PriceCreateParams::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # ... + # @param billing_cycle_configuration [Orb::PriceCreateParams::BillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont # # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. # # @param external_price_id [String, nil] An alias for the price. # # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # ... # # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice # - # @param invoicing_cycle_configuration [Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # ... + # @param invoicing_cycle_configuration [Orb::PriceCreateParams::InvoicingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] # # @see Orb::Models::PriceCreateParams def create(params) - parsed, options = Orb::Models::PriceCreateParams.dump_request(params) - @client.request(method: :post, path: "prices", body: parsed, model: Orb::Models::Price, options: options) + parsed, options = Orb::PriceCreateParams.dump_request(params) + @client.request(method: :post, path: "prices", body: parsed, model: Orb::Price, options: options) end # Some parameter documentations has been truncated, see @@ -134,20 +128,19 @@ def create(params) # @param price_id [String] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] # # @see Orb::Models::PriceUpdateParams def update(price_id, params = {}) - parsed, options = Orb::Models::PriceUpdateParams.dump_request(params) + parsed, options = Orb::PriceUpdateParams.dump_request(params) @client.request( method: :put, path: ["prices/%1$s", price_id], body: parsed, - model: Orb::Models::Price, + model: Orb::Price, options: options ) end @@ -161,23 +154,22 @@ def update(price_id, params = {}) # @overload list(cursor: nil, limit: nil, request_options: {}) # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::PriceListParams def list(params = {}) - parsed, options = Orb::Models::PriceListParams.dump_request(params) + parsed, options = Orb::PriceListParams.dump_request(params) @client.request( method: :get, path: "prices", query: parsed, page: Orb::Internal::Page, - model: Orb::Models::Price, + model: Orb::Price, options: options ) end @@ -220,10 +212,8 @@ def list(params = {}) # @param external_customer_id [String, nil] The external customer ID of the customer to which this evaluation is scoped. # # @param filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie - # ... # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -231,7 +221,7 @@ def list(params = {}) # # @see Orb::Models::PriceEvaluateParams def evaluate(price_id, params) - parsed, options = Orb::Models::PriceEvaluateParams.dump_request(params) + parsed, options = Orb::PriceEvaluateParams.dump_request(params) @client.request( method: :post, path: ["prices/%1$s/evaluate", price_id], @@ -248,14 +238,14 @@ def evaluate(price_id, params) # @param price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] # # @see Orb::Models::PriceFetchParams def fetch(price_id, params = {}) @client.request( method: :get, path: ["prices/%1$s", price_id], - model: Orb::Models::Price, + model: Orb::Price, options: params[:request_options] ) end diff --git a/lib/orb/resources/prices/external_price_id.rb b/lib/orb/resources/prices/external_price_id.rb index 11d213e2..86c068b5 100644 --- a/lib/orb/resources/prices/external_price_id.rb +++ b/lib/orb/resources/prices/external_price_id.rb @@ -16,20 +16,19 @@ class ExternalPriceID # @param external_price_id [String] # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] # # @see Orb::Models::Prices::ExternalPriceIDUpdateParams def update(external_price_id, params = {}) - parsed, options = Orb::Models::Prices::ExternalPriceIDUpdateParams.dump_request(params) + parsed, options = Orb::Prices::ExternalPriceIDUpdateParams.dump_request(params) @client.request( method: :put, path: ["prices/external_price_id/%1$s", external_price_id], body: parsed, - model: Orb::Models::Price, + model: Orb::Price, options: options ) end @@ -43,14 +42,14 @@ def update(external_price_id, params = {}) # @param external_price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + # @return [Orb::Price::Unit, Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::TieredBps, Orb::Price::Bps, Orb::Price::BulkBps, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, Orb::Price::MatrixWithAllocation, Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, Orb::Price::MatrixWithDisplayName, Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk] # # @see Orb::Models::Prices::ExternalPriceIDFetchParams def fetch(external_price_id, params = {}) @client.request( method: :get, path: ["prices/external_price_id/%1$s", external_price_id], - model: Orb::Models::Price, + model: Orb::Price, options: params[:request_options] ) end diff --git a/lib/orb/resources/subscription_changes.rb b/lib/orb/resources/subscription_changes.rb index 63cd223a..3fa6416a 100644 --- a/lib/orb/resources/subscription_changes.rb +++ b/lib/orb/resources/subscription_changes.rb @@ -48,7 +48,7 @@ def retrieve(subscription_change_id, params = {}) # # @see Orb::Models::SubscriptionChangeApplyParams def apply(subscription_change_id, params = {}) - parsed, options = Orb::Models::SubscriptionChangeApplyParams.dump_request(params) + parsed, options = Orb::SubscriptionChangeApplyParams.dump_request(params) @client.request( method: :post, path: ["subscription_changes/%1$s/apply", subscription_change_id], diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index 8373ebbb..84ec1f3c 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -265,85 +265,67 @@ class Subscriptions # # @overload create(add_adjustments: nil, add_prices: nil, align_billing_with_subscription_start_date: nil, auto_collection: nil, aws_region: nil, billing_cycle_anchor_configuration: nil, coupon_redemption_code: nil, credits_overage_rate: nil, customer_id: nil, default_invoice_memo: nil, end_date: nil, external_customer_id: nil, external_marketplace: nil, external_marketplace_reporting_id: nil, external_plan_id: nil, filter: nil, initial_phase_order: nil, invoicing_threshold: nil, metadata: nil, net_terms: nil, per_credit_overage_amount: nil, plan_id: nil, plan_version_number: nil, price_overrides: nil, remove_adjustments: nil, remove_prices: nil, replace_adjustments: nil, replace_prices: nil, start_date: nil, trial_duration_days: nil, usage_customer_ids: nil, request_options: {}) # - # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco - # ... + # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco # - # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts - # ... + # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts # # @param align_billing_with_subscription_start_date [Boolean] # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param aws_region [String, nil] # - # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] + # @param billing_cycle_anchor_configuration [Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration, nil] # # @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found - # ... # # @param credits_overage_rate [Float, nil] # # @param customer_id [String, nil] # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param end_date [Time, nil] # # @param external_customer_id [String, nil] # - # @param external_marketplace [Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace, nil] + # @param external_marketplace [Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace, nil] # # @param external_marketplace_reporting_id [String, nil] # # @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # # @param initial_phase_order [Integer, nil] The phase of the plan to start with # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # # @param per_credit_overage_amount [Float, nil] # # @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi - # ... # # @param plan_version_number [Integer, nil] Specifies which version of the plan to subscribe to. If null, the default versio - # ... # # @param price_overrides [Array, nil] Optionally provide a list of overrides for prices on the plan # - # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun - # ... + # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun # - # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th - # ... + # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th # - # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. - # ... + # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. # - # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava - # ... + # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava # # @param start_date [Time, nil] # # @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -351,7 +333,7 @@ class Subscriptions # # @see Orb::Models::SubscriptionCreateParams def create(params = {}) - parsed, options = Orb::Models::SubscriptionCreateParams.dump_request(params) + parsed, options = Orb::SubscriptionCreateParams.dump_request(params) @client.request( method: :post, path: "subscriptions", @@ -373,32 +355,27 @@ def create(params = {}) # @param subscription_id [String] # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # ... # # @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Subscription] + # @return [Orb::Subscription] # # @see Orb::Models::SubscriptionUpdateParams def update(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionUpdateParams.dump_request(params) + parsed, options = Orb::SubscriptionUpdateParams.dump_request(params) @client.request( method: :put, path: ["subscriptions/%1$s", subscription_id], body: parsed, - model: Orb::Models::Subscription, + model: Orb::Subscription, options: options ) end @@ -427,7 +404,6 @@ def update(subscription_id, params = {}) # @param created_at_lte [Time, nil] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param customer_id [Array, nil] # @@ -435,15 +411,15 @@ def update(subscription_id, params = {}) # # @param limit [Integer] The number of items to fetch. Defaults to 20. # - # @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil] + # @param status [Symbol, Orb::SubscriptionListParams::Status, nil] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::SubscriptionListParams def list(params = {}) - parsed, options = Orb::Models::SubscriptionListParams.dump_request(params) + parsed, options = Orb::SubscriptionListParams.dump_request(params) @client.request( method: :get, path: "subscriptions", @@ -454,7 +430,7 @@ def list(params = {}) created_at_lte: "created_at[lte]" ), page: Orb::Internal::Page, - model: Orb::Models::Subscription, + model: Orb::Subscription, options: options ) end @@ -528,13 +504,11 @@ def list(params = {}) # # @param subscription_id [String] # - # @param cancel_option [Symbol, Orb::Models::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation + # @param cancel_option [Symbol, Orb::SubscriptionCancelParams::CancelOption] Determines the timing of subscription cancellation # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # # @param cancellation_date [Time, nil] The date that the cancellation should take effect. This parameter can only be pa - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -542,7 +516,7 @@ def list(params = {}) # # @see Orb::Models::SubscriptionCancelParams def cancel(subscription_id, params) - parsed, options = Orb::Models::SubscriptionCancelParams.dump_request(params) + parsed, options = Orb::SubscriptionCancelParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/cancel", subscription_id], @@ -560,14 +534,14 @@ def cancel(subscription_id, params) # @param subscription_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Subscription] + # @return [Orb::Subscription] # # @see Orb::Models::SubscriptionFetchParams def fetch(subscription_id, params = {}) @client.request( method: :get, path: ["subscriptions/%1$s", subscription_id], - model: Orb::Models::Subscription, + model: Orb::Subscription, options: params[:request_options] ) end @@ -596,8 +570,7 @@ def fetch(subscription_id, params = {}) # # @param timeframe_start [Time, nil] Costs returned are inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::SubscriptionFetchCostsParams::ViewMode, nil] Controls whether Orb returns cumulative costs since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -605,7 +578,7 @@ def fetch(subscription_id, params = {}) # # @see Orb::Models::SubscriptionFetchCostsParams def fetch_costs(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionFetchCostsParams.dump_request(params) + parsed, options = Orb::SubscriptionFetchCostsParams.dump_request(params) @client.request( method: :get, path: ["subscriptions/%1$s/costs", subscription_id], @@ -628,7 +601,6 @@ def fetch_costs(subscription_id, params = {}) # @param subscription_id [String] # # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned - # ... # # @param limit [Integer] The number of items to fetch. Defaults to 20. # @@ -646,7 +618,7 @@ def fetch_costs(subscription_id, params = {}) # # @see Orb::Models::SubscriptionFetchScheduleParams def fetch_schedule(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionFetchScheduleParams.dump_request(params) + parsed, options = Orb::SubscriptionFetchScheduleParams.dump_request(params) @client.request( method: :get, path: ["subscriptions/%1$s/schedule", subscription_id], @@ -865,13 +837,12 @@ def fetch_schedule(subscription_id, params = {}) # @param subscription_id [String] # # @param billable_metric_id [String, nil] When specified in conjunction with `group_by`, this parameter filters usage to a - # ... # # @param first_dimension_key [String, nil] # # @param first_dimension_value [String, nil] # - # @param granularity [Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting. + # @param granularity [Symbol, Orb::SubscriptionFetchUsageParams::Granularity, nil] This determines the windowing of usage reporting. # # @param group_by [String, nil] Groups per-price usage by the key provided. # @@ -883,21 +854,20 @@ def fetch_schedule(subscription_id, params = {}) # # @param timeframe_start [Time, nil] Usage returned is inclusive of `timeframe_start`. # - # @param view_mode [Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per - # ... + # @param view_mode [Symbol, Orb::SubscriptionFetchUsageParams::ViewMode, nil] Controls whether Orb returns cumulative usage since the start of the billing per # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + # @return [Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage] # # @see Orb::Models::SubscriptionFetchUsageParams def fetch_usage(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionFetchUsageParams.dump_request(params) + parsed, options = Orb::SubscriptionFetchUsageParams.dump_request(params) @client.request( method: :get, path: ["subscriptions/%1$s/usage", subscription_id], query: parsed, - model: Orb::Models::SubscriptionUsage, + model: Orb::SubscriptionUsage, options: options ) end @@ -982,16 +952,15 @@ def fetch_usage(subscription_id, params = {}) # # @param subscription_id [String] # - # @param add [Array] A list of price intervals to add to the subscription. + # @param add [Array] A list of price intervals to add to the subscription. # - # @param add_adjustments [Array] A list of adjustments to add to the subscription. + # @param add_adjustments [Array] A list of adjustments to add to the subscription. # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # - # @param edit [Array] A list of price intervals to edit on the subscription. + # @param edit [Array] A list of price intervals to edit on the subscription. # - # @param edit_adjustments [Array] A list of adjustments to edit on the subscription. + # @param edit_adjustments [Array] A list of adjustments to edit on the subscription. # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -999,7 +968,7 @@ def fetch_usage(subscription_id, params = {}) # # @see Orb::Models::SubscriptionPriceIntervalsParams def price_intervals(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionPriceIntervalsParams.dump_request(params) + parsed, options = Orb::SubscriptionPriceIntervalsParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/price_intervals", subscription_id], @@ -1200,77 +1169,57 @@ def price_intervals(subscription_id, params = {}) # # @param subscription_id [String] # - # @param change_option [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption] + # @param change_option [Symbol, Orb::SubscriptionSchedulePlanChangeParams::ChangeOption] # - # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco - # ... + # @param add_adjustments [Array, nil] Additional adjustments to be added to the subscription. (Only available for acco # - # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts - # ... + # @param add_prices [Array, nil] Additional prices to be added to the subscription. (Only available for accounts # # @param align_billing_with_plan_change_date [Boolean, nil] [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be al - # ... # # @param auto_collection [Boolean, nil] Determines whether issued invoices for this subscription will automatically be c - # ... # - # @param billing_cycle_alignment [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta - # ... + # @param billing_cycle_alignment [Symbol, Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment, nil] Reset billing periods to be aligned with the plan change's effective date or sta # - # @param billing_cycle_anchor_configuration [Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] + # @param billing_cycle_anchor_configuration [Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, nil] # # @param change_date [Time, nil] The date that the plan change should take effect. This parameter can only be pas - # ... # # @param coupon_redemption_code [String, nil] Redemption code to be used for this subscription. If the coupon cannot be found - # ... # # @param credits_overage_rate [Float, nil] # # @param default_invoice_memo [String, nil] Determines the default memo on this subscription's invoices. Note that if this i - # ... # # @param external_plan_id [String, nil] The external_plan_id of the plan that the given subscription should be switched - # ... # # @param filter [String, nil] An additional filter to apply to usage queries. This filter must be expressed as - # ... # # @param initial_phase_order [Integer, nil] The phase of the plan to start with # # @param invoicing_threshold [String, nil] When this subscription's accrued usage reaches this threshold, an invoice will b - # ... # # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d - # ... # # @param per_credit_overage_amount [Float, nil] # # @param plan_id [String, nil] The plan that the given subscription should be switched to. Note that either thi - # ... # # @param plan_version_number [Integer, nil] Specifies which version of the plan to change to. If null, the default version w - # ... # # @param price_overrides [Array, nil] Optionally provide a list of overrides for prices on the plan # - # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun - # ... + # @param remove_adjustments [Array, nil] Plan adjustments to be removed from the subscription. (Only available for accoun # - # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th - # ... + # @param remove_prices [Array, nil] Plan prices to be removed from the subscription. (Only available for accounts th # - # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. - # ... + # @param replace_adjustments [Array, nil] Plan adjustments to be replaced with additional adjustments on the subscription. # - # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava - # ... + # @param replace_prices [Array, nil] Plan prices to be replaced with additional prices on the subscription. (Only ava # # @param trial_duration_days [Integer, nil] The duration of the trial period in days. If not provided, this defaults to the - # ... # # @param usage_customer_ids [Array, nil] A list of customer IDs whose usage events will be aggregated and billed under th - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -1278,7 +1227,7 @@ def price_intervals(subscription_id, params = {}) # # @see Orb::Models::SubscriptionSchedulePlanChangeParams def schedule_plan_change(subscription_id, params) - parsed, options = Orb::Models::SubscriptionSchedulePlanChangeParams.dump_request(params) + parsed, options = Orb::SubscriptionSchedulePlanChangeParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/schedule_plan_change", subscription_id], @@ -1299,10 +1248,8 @@ def schedule_plan_change(subscription_id, params) # @param subscription_id [String] # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # # @param effective_date [Date, nil] The date on which the phase change should take effect. If not provided, defaults - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -1310,7 +1257,7 @@ def schedule_plan_change(subscription_id, params) # # @see Orb::Models::SubscriptionTriggerPhaseParams def trigger_phase(subscription_id, params = {}) - parsed, options = Orb::Models::SubscriptionTriggerPhaseParams.dump_request(params) + parsed, options = Orb::SubscriptionTriggerPhaseParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/trigger_phase", subscription_id], @@ -1362,7 +1309,7 @@ def unschedule_cancellation(subscription_id, params = {}) # # @see Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams def unschedule_fixed_fee_quantity_updates(subscription_id, params) - parsed, options = Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.dump_request(params) + parsed, options = Orb::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/unschedule_fixed_fee_quantity_updates", subscription_id], @@ -1419,13 +1366,10 @@ def unschedule_pending_plan_changes(subscription_id, params = {}) # @param quantity [Float] # # @param allow_invoice_credit_or_void [Boolean, nil] If false, this request will fail if it would void an issued invoice or create a - # ... # - # @param change_option [Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif - # ... + # @param change_option [Symbol, Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption] Determines when the change takes effect. Note that if `effective_date` is specif # # @param effective_date [Date, nil] The date that the quantity change should take effect, localized to the customer' - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -1433,7 +1377,7 @@ def unschedule_pending_plan_changes(subscription_id, params = {}) # # @see Orb::Models::SubscriptionUpdateFixedFeeQuantityParams def update_fixed_fee_quantity(subscription_id, params) - parsed, options = Orb::Models::SubscriptionUpdateFixedFeeQuantityParams.dump_request(params) + parsed, options = Orb::SubscriptionUpdateFixedFeeQuantityParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/update_fixed_fee_quantity", subscription_id], @@ -1469,11 +1413,9 @@ def update_fixed_fee_quantity(subscription_id, params) # # @param subscription_id [String] # - # @param trial_end_date [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end - # ... + # @param trial_end_date [Time, Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate] The new date that the trial should end, or the literal string `immediate` to end # # @param shift [Boolean] If true, shifts subsequent price and adjustment intervals (preserving their dura - # ... # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -1481,7 +1423,7 @@ def update_fixed_fee_quantity(subscription_id, params) # # @see Orb::Models::SubscriptionUpdateTrialParams def update_trial(subscription_id, params) - parsed, options = Orb::Models::SubscriptionUpdateTrialParams.dump_request(params) + parsed, options = Orb::SubscriptionUpdateTrialParams.dump_request(params) @client.request( method: :post, path: ["subscriptions/%1$s/update_trial", subscription_id], diff --git a/rbi/orb/client.rbi b/rbi/orb/client.rbi index 60cade2c..bc5776f3 100644 --- a/rbi/orb/client.rbi +++ b/rbi/orb/client.rbi @@ -60,7 +60,8 @@ module Orb # @api private sig { override.returns(T::Hash[String, String]) } - private def auth_headers; end + private def auth_headers + end # Creates and returns a new client for interacting with the API. sig do @@ -72,8 +73,7 @@ module Orb initial_retry_delay: Float, max_retry_delay: Float, idempotency_header: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Defaults to `ENV["ORB_API_KEY"]` @@ -87,6 +87,7 @@ module Orb initial_retry_delay: Orb::Client::DEFAULT_INITIAL_RETRY_DELAY, max_retry_delay: Orb::Client::DEFAULT_MAX_RETRY_DELAY, idempotency_header: "Idempotency-Key" - ); end + ) + end end end diff --git a/rbi/orb/errors.rbi b/rbi/orb/errors.rbi index 07cb340b..9ec49d9c 100644 --- a/rbi/orb/errors.rbi +++ b/rbi/orb/errors.rbi @@ -29,10 +29,17 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + url:, + status: nil, + body: nil, + request: nil, + response: nil, + message: nil + ) end - def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: nil); end end class APIConnectionError < Orb::Errors::APIError @@ -51,10 +58,16 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end - def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: "Connection error.") + def self.new( + url:, + status: nil, + body: nil, + request: nil, + response: nil, + message: "Connection error." + ) end end @@ -68,10 +81,16 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end - def self.new(url:, status: nil, body: nil, request: nil, response: nil, message: "Request timed out.") + def self.new( + url:, + status: nil, + body: nil, + request: nil, + response: nil, + message: "Request timed out." + ) end end @@ -85,10 +104,10 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.for(url:, status:, body:, request:, response:, message: nil) end - def self.for(url:, status:, body:, request:, response:, message: nil); end sig { returns(Integer) } attr_accessor :status @@ -102,10 +121,10 @@ module Orb request: NilClass, response: NilClass, message: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(url:, status:, body:, request:, response:, message: nil) end - def self.new(url:, status:, body:, request:, response:, message: nil); end end class BadRequestError < Orb::Errors::APIStatusError @@ -137,55 +156,67 @@ module Orb end class InternalServerError < Orb::Errors::APIStatusError - HTTP_STATUS = T.let(500.., T::Range[Integer]) + HTTP_STATUS = T.let((500..), T::Range[Integer]) end class ConstraintViolation < Orb::Errors::BadRequestError - TYPE = "https://docs.withorb.com/reference/error-responses#400-constraint-violation" + TYPE = + "https://docs.withorb.com/reference/error-responses#400-constraint-violation" end class DuplicateResourceCreation < Orb::Errors::BadRequestError - TYPE = "https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation" + TYPE = + "https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation" end class FeatureNotAvailable < Orb::Errors::BadRequestError - TYPE = "https://docs.withorb.com/reference/error-responses#404-feature-not-available" + TYPE = + "https://docs.withorb.com/reference/error-responses#404-feature-not-available" end class RequestValidationError < Orb::Errors::BadRequestError - TYPE = "https://docs.withorb.com/reference/error-responses#400-request-validation-errors" + TYPE = + "https://docs.withorb.com/reference/error-responses#400-request-validation-errors" end class OrbAuthenticationError < Orb::Errors::AuthenticationError - TYPE = "https://docs.withorb.com/reference/error-responses#401-authentication-error" + TYPE = + "https://docs.withorb.com/reference/error-responses#401-authentication-error" end class ResourceNotFound < Orb::Errors::NotFoundError - TYPE = "https://docs.withorb.com/reference/error-responses#404-resource-not-found" + TYPE = + "https://docs.withorb.com/reference/error-responses#404-resource-not-found" end class URLNotFound < Orb::Errors::NotFoundError - TYPE = "https://docs.withorb.com/reference/error-responses#404-url-not-found" + TYPE = + "https://docs.withorb.com/reference/error-responses#404-url-not-found" end class ResourceConflict < Orb::Errors::ConflictError - TYPE = "https://docs.withorb.com/reference/error-responses#409-resource-conflict" + TYPE = + "https://docs.withorb.com/reference/error-responses#409-resource-conflict" end class RequestTooLarge < Orb::Errors::APIStatusError - TYPE = "https://docs.withorb.com/reference/error-responses#413-request-too-large" + TYPE = + "https://docs.withorb.com/reference/error-responses#413-request-too-large" end class ResourceTooLarge < Orb::Errors::APIStatusError - TYPE = "https://docs.withorb.com/reference/error-responses#413-resource-too-large" + TYPE = + "https://docs.withorb.com/reference/error-responses#413-resource-too-large" end class TooManyRequests < Orb::Errors::RateLimitError - TYPE = "https://docs.withorb.com/reference/error-responses#429-too-many-requests" + TYPE = + "https://docs.withorb.com/reference/error-responses#429-too-many-requests" end class OrbInternalServerError < Orb::Errors::InternalServerError - TYPE = "https://docs.withorb.com/reference/error-responses#500-internal-server-error" + TYPE = + "https://docs.withorb.com/reference/error-responses#500-internal-server-error" end end end diff --git a/rbi/orb/file_part.rbi b/rbi/orb/file_part.rbi index fe868cc5..9f9485dd 100644 --- a/rbi/orb/file_part.rbi +++ b/rbi/orb/file_part.rbi @@ -13,22 +13,25 @@ module Orb # @api private sig { returns(String) } - private def read; end + private def read + end sig { params(a: T.anything).returns(String) } - def to_json(*a); end + def to_json(*a) + end sig { params(a: T.anything).returns(String) } - def to_yaml(*a); end + def to_yaml(*a) + end sig do params( content: T.any(Pathname, StringIO, IO, String), filename: T.nilable(String), content_type: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(content, filename: nil, content_type: nil) end - def self.new(content, filename: nil, content_type: nil); end end end diff --git a/rbi/orb/internal/page.rbi b/rbi/orb/internal/page.rbi index 34463855..55af3a85 100644 --- a/rbi/orb/internal/page.rbi +++ b/rbi/orb/internal/page.rbi @@ -15,20 +15,33 @@ module Orb # @api private sig { returns(String) } - def inspect; end + def inspect + end class PaginationMetadata < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :has_more sig { returns(T.nilable(String)) } attr_accessor :next_cursor - sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } - def self.new(has_more:, next_cursor:); end - - sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } - def to_hash; end + sig do + params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(has_more:, next_cursor:) + end + + sig do + override.returns( + { has_more: T::Boolean, next_cursor: T.nilable(String) } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/internal/transport/base_client.rbi b/rbi/orb/internal/transport/base_client.rbi index 6a6c2b97..e230f8a4 100644 --- a/rbi/orb/internal/transport/base_client.rbi +++ b/rbi/orb/internal/transport/base_client.rbi @@ -12,30 +12,44 @@ module Orb { method: Symbol, path: T.any(String, T::Array[String]), - query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - headers: T.nilable( - T::Hash[String, - T.nilable( - T.any( - String, - Integer, - T::Array[T.nilable(T.any(String, Integer))] - ) - )] - ), + query: + T.nilable( + T::Hash[String, T.nilable(T.any(T::Array[String], String))] + ), + headers: + T.nilable( + T::Hash[ + String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + ) + ] + ), body: T.nilable(T.anything), - unwrap: T.nilable( - T.any( - Symbol, - Integer, - T::Array[T.any(Symbol, Integer)], - T.proc.params(arg0: T.anything).returns(T.anything) - ) - ), - page: T.nilable(T::Class[Orb::Internal::Type::BasePage[Orb::Internal::Type::BaseModel]]), + unwrap: + T.nilable( + T.any( + Symbol, + Integer, + T::Array[T.any(Symbol, Integer)], + T.proc.params(arg0: T.anything).returns(T.anything) + ) + ), + page: + T.nilable( + T::Class[ + Orb::Internal::Type::BasePage[ + Orb::Internal::Type::BaseModel + ] + ] + ), stream: T.nilable(T::Class[T.anything]), model: T.nilable(Orb::Internal::Type::Converter::Input), - options: T.nilable(Orb::RequestOpts) + options: T.nilable(Orb::RequestOptions::OrHash) } end @@ -58,20 +72,23 @@ module Orb class << self # @api private - sig { params(req: Orb::Internal::Transport::BaseClient::RequestComponentsShape).void } - def validate!(req); end + sig do + params( + req: Orb::Internal::Transport::BaseClient::RequestComponentsShape + ).void + end + def validate!(req) + end # @api private sig do params( status: Integer, - headers: T.any( - T::Hash[String, String], - Net::HTTPHeader - ) + headers: T.any(T::Hash[String, String], Net::HTTPHeader) ).returns(T::Boolean) end - def should_retry?(status, headers:); end + def should_retry?(status, headers:) + end # @api private sig do @@ -79,20 +96,20 @@ module Orb request: Orb::Internal::Transport::BaseClient::RequestInputShape, status: Integer, response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ) - .returns(Orb::Internal::Transport::BaseClient::RequestInputShape) + ).returns(Orb::Internal::Transport::BaseClient::RequestInputShape) + end + def follow_redirect(request, status:, response_headers:) end - def follow_redirect(request, status:, response_headers:); end # @api private sig do params( status: T.any(Integer, Orb::Errors::APIConnectionError), stream: T.nilable(T::Enumerable[String]) - ) - .void + ).void + end + def reap_connection!(status, stream:) end - def reap_connection!(status, stream:); end end # @api private @@ -107,11 +124,19 @@ module Orb max_retries: Integer, initial_retry_delay: Float, max_retry_delay: Float, - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))], + headers: + T::Hash[ + String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + ) + ], idempotency_header: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( base_url:, @@ -121,26 +146,40 @@ module Orb max_retry_delay: 0.0, headers: {}, idempotency_header: nil - ); end + ) + end + # @api private sig { overridable.returns(T::Hash[String, String]) } - private def auth_headers; end + private def auth_headers + end # @api private sig { returns(String) } - private def generate_idempotency_key; end + private def generate_idempotency_key + end # @api private sig do overridable - .params(req: Orb::Internal::Transport::BaseClient::RequestComponentsShape, opts: Orb::Internal::AnyHash) + .params( + req: Orb::Internal::Transport::BaseClient::RequestComponentsShape, + opts: Orb::Internal::AnyHash + ) .returns(Orb::Internal::Transport::BaseClient::RequestInputShape) end - private def build_request(req, opts); end + private def build_request(req, opts) + end # @api private - sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } - private def retry_delay(headers, retry_count:); end + sig do + params( + headers: T::Hash[String, String], + retry_count: Integer + ).returns(Float) + end + private def retry_delay(headers, retry_count:) + end # @api private sig do @@ -149,10 +188,15 @@ module Orb redirect_count: Integer, retry_count: Integer, send_retry_header: T::Boolean - ) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + private def send_request( + request, + redirect_count:, + retry_count:, + send_retry_header: + ) end - private def send_request(request, redirect_count:, retry_count:, send_retry_header:); end # Execute the request specified by `req`. This is the method that all resource # methods call into. @@ -162,32 +206,43 @@ module Orb params( method: Symbol, path: T.any(String, T::Array[String]), - query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - headers: T.nilable( - T::Hash[String, - T.nilable( - T.any( - String, - Integer, - T::Array[T.nilable(T.any(String, Integer))] - ) - )] - ), + query: + T.nilable( + T::Hash[String, T.nilable(T.any(T::Array[String], String))] + ), + headers: + T.nilable( + T::Hash[ + String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + ) + ] + ), body: T.nilable(T.anything), - unwrap: T.nilable( - T.any( - Symbol, - Integer, - T::Array[T.any(Symbol, Integer)], - T.proc.params(arg0: T.anything).returns(T.anything) - ) - ), - page: T.nilable(T::Class[Orb::Internal::Type::BasePage[Orb::Internal::Type::BaseModel]]), + unwrap: + T.nilable( + T.any( + Symbol, + Integer, + T::Array[T.any(Symbol, Integer)], + T.proc.params(arg0: T.anything).returns(T.anything) + ) + ), + page: + T.nilable( + T::Class[ + Orb::Internal::Type::BasePage[Orb::Internal::Type::BaseModel] + ] + ), stream: T.nilable(T::Class[T.anything]), model: T.nilable(Orb::Internal::Type::Converter::Input), - options: T.nilable(Orb::RequestOpts) - ) - .returns(T.anything) + options: T.nilable(Orb::RequestOptions::OrHash) + ).returns(T.anything) end def request( method, @@ -200,10 +255,13 @@ module Orb stream: nil, model: Orb::Internal::Type::Unknown, options: {} - ); end + ) + end + # @api private sig { returns(String) } - def inspect; end + def inspect + end end end end diff --git a/rbi/orb/internal/transport/pooled_net_requester.rbi b/rbi/orb/internal/transport/pooled_net_requester.rbi index 6e2db75c..f2e72180 100644 --- a/rbi/orb/internal/transport/pooled_net_requester.rbi +++ b/rbi/orb/internal/transport/pooled_net_requester.rbi @@ -23,37 +23,50 @@ module Orb class << self # @api private sig { params(url: URI::Generic).returns(Net::HTTP) } - def connect(url); end + def connect(url) + end # @api private sig { params(conn: Net::HTTP, deadline: Float).void } - def calibrate_socket_timeout(conn, deadline); end + def calibrate_socket_timeout(conn, deadline) + end # @api private sig do params( - request: Orb::Internal::Transport::PooledNetRequester::RequestShape, + request: + Orb::Internal::Transport::PooledNetRequester::RequestShape, blk: T.proc.params(arg0: String).void - ) - .returns([Net::HTTPGenericRequest, T.proc.void]) + ).returns([Net::HTTPGenericRequest, T.proc.void]) + end + def build_request(request, &blk) end - def build_request(request, &blk); end end # @api private - sig { params(url: URI::Generic, deadline: Float, blk: T.proc.params(arg0: Net::HTTP).void).void } - private def with_pool(url, deadline:, &blk); end + sig do + params( + url: URI::Generic, + deadline: Float, + blk: T.proc.params(arg0: Net::HTTP).void + ).void + end + private def with_pool(url, deadline:, &blk) + end # @api private sig do - params(request: Orb::Internal::Transport::PooledNetRequester::RequestShape) - .returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + params( + request: Orb::Internal::Transport::PooledNetRequester::RequestShape + ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]]) + end + def execute(request) end - def execute(request); end # @api private sig { params(size: Integer).returns(T.attached_class) } - def self.new(size: Etc.nprocessors); end + def self.new(size: Etc.nprocessors) + end end end end diff --git a/rbi/orb/internal/type/array_of.rbi b/rbi/orb/internal/type/array_of.rbi index 657737ea..59aa4c47 100644 --- a/rbi/orb/internal/type/array_of.rbi +++ b/rbi/orb/internal/type/array_of.rbi @@ -15,75 +15,83 @@ module Orb sig do params( - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.[](type_info, spec = {}) end - def self.[](type_info, spec = {}); end sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end # @api private sig do override - .params(value: T.any( - T::Array[T.anything], - T.anything - ), - state: Orb::Internal::Type::Converter::CoerceState) + .params( + value: T.any(T::Array[T.anything], T.anything), + state: Orb::Internal::Type::Converter::CoerceState + ) .returns(T.any(T::Array[T.anything], T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do override - .params(value: T.any( - T::Array[T.anything], - T.anything - ), - state: Orb::Internal::Type::Converter::DumpState) + .params( + value: T.any(T::Array[T.anything], T.anything), + state: Orb::Internal::Type::Converter::DumpState + ) .returns(T.any(T::Array[T.anything], T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end # @api private sig { returns(Elem) } - protected def item_type; end + protected def item_type + end # @api private sig { returns(T::Boolean) } - protected def nilable?; end + protected def nilable? + end # @api private sig do params( - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .void + ).void + end + def initialize(type_info, spec = {}) end - def initialize(type_info, spec = {}); end # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end end end end diff --git a/rbi/orb/internal/type/base_model.rbi b/rbi/orb/internal/type/base_model.rbi index aa7eb23a..b73d99a4 100644 --- a/rbi/orb/internal/type/base_model.rbi +++ b/rbi/orb/internal/type/base_model.rbi @@ -8,9 +8,16 @@ module Orb abstract! - KnownFieldShape = T.type_alias do - {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} - end + KnownFieldShape = + T.type_alias do + { + mode: T.nilable(Symbol), + required: T::Boolean, + nilable: T::Boolean + } + end + + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } class << self # @api private @@ -23,12 +30,16 @@ module Orb Symbol, T.all( Orb::Internal::Type::BaseModel::KnownFieldShape, - {type_fn: T.proc.returns(Orb::Internal::Type::Converter::Input)} + { + type_fn: + T.proc.returns(Orb::Internal::Type::Converter::Input) + } ) ] ) end - def known_fields; end + def known_fields + end # @api private sig do @@ -37,114 +48,139 @@ module Orb Symbol, T.all( Orb::Internal::Type::BaseModel::KnownFieldShape, - {type: Orb::Internal::Type::Converter::Input} + { type: Orb::Internal::Type::Converter::Input } ) ] ) end - def fields; end + def fields + end # @api private sig do params( name_sym: Symbol, required: T::Boolean, - type_info: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Orb::Internal::Type::Converter::Input)), - union: T.nilable(T.proc.returns(Orb::Internal::Type::Converter::Input)), - api_name: Symbol, - nil?: T::Boolean - }, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + { + const: + T.nilable( + T.any(NilClass, T::Boolean, Integer, Float, Symbol) + ), + enum: + T.nilable( + T.proc.returns(Orb::Internal::Type::Converter::Input) + ), + union: + T.nilable( + T.proc.returns(Orb::Internal::Type::Converter::Input) + ), + api_name: Symbol, + nil?: T::Boolean + }, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .void + ).void + end + private def add_field(name_sym, required:, type_info:, spec:) end - private def add_field(name_sym, required:, type_info:, spec:); end # @api private sig do params( name_sym: Symbol, - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .void + ).void + end + def required(name_sym, type_info, spec = {}) end - def required(name_sym, type_info, spec = {}); end # @api private sig do params( name_sym: Symbol, - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .void + ).void + end + def optional(name_sym, type_info, spec = {}) end - def optional(name_sym, type_info, spec = {}); end # @api private # # `request_only` attributes not excluded from `.#coerce` when receiving responses # even if well behaved servers should not send them sig { params(blk: T.proc.void).void } - private def request_only(&blk); end + private def request_only(&blk) + end # @api private # # `response_only` attributes are omitted from `.#dump` when making requests sig { params(blk: T.proc.void).void } - private def response_only(&blk); end + private def response_only(&blk) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end class << self # @api private sig do override .params( - value: T.any(Orb::Internal::Type::BaseModel, T::Hash[T.anything, T.anything], T.anything), + value: + T.any( + Orb::Internal::Type::BaseModel, + T::Hash[T.anything, T.anything], + T.anything + ), state: Orb::Internal::Type::Converter::CoerceState ) .returns(T.any(T.attached_class, T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do override - .params(value: T.any( - T.attached_class, - T.anything - ), - state: Orb::Internal::Type::Converter::DumpState) + .params( + value: T.any(T.attached_class, T.anything), + state: Orb::Internal::Type::Converter::DumpState + ) .returns(T.any(T::Hash[T.anything, T.anything], T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end end # Returns the raw value associated with the given key, if found. Otherwise, nil is @@ -154,7 +190,8 @@ module Orb # undocumented features. This method does not parse response data into # higher-level types. Lookup by anything other than a Symbol is an ArgumentError. sig { params(key: Symbol).returns(T.nilable(T.anything)) } - def [](key); end + def [](key) + end # Returns a Hash of the data underlying this object. O(1) # @@ -165,7 +202,8 @@ module Orb # This method is not recursive. The returned value is shared by the object, so it # should not be mutated. sig { overridable.returns(Orb::Internal::AnyHash) } - def to_h; end + def to_h + end # Returns a Hash of the data underlying this object. O(1) # @@ -176,39 +214,60 @@ module Orb # This method is not recursive. The returned value is shared by the object, so it # should not be mutated. sig { overridable.returns(Orb::Internal::AnyHash) } - def to_hash; end + def to_hash + end - sig { params(keys: T.nilable(T::Array[Symbol])).returns(Orb::Internal::AnyHash) } - def deconstruct_keys(keys); end + sig do + params(keys: T.nilable(T::Array[Symbol])).returns( + Orb::Internal::AnyHash + ) + end + def deconstruct_keys(keys) + end class << self # @api private - sig { params(model: Orb::Internal::Type::BaseModel).returns(Orb::Internal::AnyHash) } - def walk(model); end + sig do + params(model: Orb::Internal::Type::BaseModel).returns( + Orb::Internal::AnyHash + ) + end + def walk(model) + end end sig { params(a: T.anything).returns(String) } - def to_json(*a); end + def to_json(*a) + end sig { params(a: T.anything).returns(String) } - def to_yaml(*a); end + def to_yaml(*a) + end # Create a new instance of a model. - sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(T.attached_class) } - def self.new(data = {}); end + sig do + params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns( + T.attached_class + ) + end + def self.new(data = {}) + end class << self # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end end sig { returns(String) } - def to_s; end + def to_s + end # @api private sig { returns(String) } - def inspect; end + def inspect + end end end end diff --git a/rbi/orb/internal/type/base_page.rbi b/rbi/orb/internal/type/base_page.rbi index 0face544..ae1403d0 100644 --- a/rbi/orb/internal/type/base_page.rbi +++ b/rbi/orb/internal/type/base_page.rbi @@ -10,16 +10,20 @@ module Orb Elem = type_member(:out) sig { overridable.returns(T::Boolean) } - def next_page?; end + def next_page? + end sig { overridable.returns(T.self_type) } - def next_page; end + def next_page + end sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } - def auto_paging_each(&blk); end + def auto_paging_each(&blk) + end sig { returns(T::Enumerable[Elem]) } - def to_enum; end + def to_enum + end # @api private sig do @@ -28,10 +32,10 @@ module Orb req: Orb::Internal::Transport::BaseClient::RequestComponentsShape, headers: T.any(T::Hash[String, String], Net::HTTPHeader), page_data: T.anything - ) - .void + ).void + end + def initialize(client:, req:, headers:, page_data:) end - def initialize(client:, req:, headers:, page_data:); end end end end diff --git a/rbi/orb/internal/type/boolean.rbi b/rbi/orb/internal/type/boolean.rbi index cc88e526..5d436888 100644 --- a/rbi/orb/internal/type/boolean.rbi +++ b/rbi/orb/internal/type/boolean.rbi @@ -12,31 +12,37 @@ module Orb abstract! sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end class << self # @api private sig do override - .params(value: T.any( - T::Boolean, - T.anything - ), - state: Orb::Internal::Type::Converter::CoerceState) + .params( + value: T.any(T::Boolean, T.anything), + state: Orb::Internal::Type::Converter::CoerceState + ) .returns(T.any(T::Boolean, T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do override - .params(value: T.any(T::Boolean, T.anything), state: Orb::Internal::Type::Converter::DumpState) + .params( + value: T.any(T::Boolean, T.anything), + state: Orb::Internal::Type::Converter::DumpState + ) .returns(T.any(T::Boolean, T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end end end end diff --git a/rbi/orb/internal/type/converter.rbi b/rbi/orb/internal/type/converter.rbi index 1e434053..60a52c6a 100644 --- a/rbi/orb/internal/type/converter.rbi +++ b/rbi/orb/internal/type/converter.rbi @@ -5,57 +5,82 @@ module Orb module Type # @api private module Converter - Input = T.type_alias { T.any(Orb::Internal::Type::Converter, T::Class[T.anything]) } + Input = + T.type_alias do + T.any(Orb::Internal::Type::Converter, T::Class[T.anything]) + end CoerceState = T.type_alias do { strictness: T.any(T::Boolean, Symbol), - exactness: {yes: Integer, no: Integer, maybe: Integer}, + exactness: { + yes: Integer, + no: Integer, + maybe: Integer + }, branched: Integer } end - DumpState = T.type_alias { {can_retry: T::Boolean} } + DumpState = T.type_alias { { can_retry: T::Boolean } } # @api private sig do overridable - .params(value: T.anything, state: Orb::Internal::Type::Converter::CoerceState) + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::CoerceState + ) .returns(T.anything) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do - overridable.params( - value: T.anything, - state: Orb::Internal::Type::Converter::DumpState - ).returns(T.anything) + overridable + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::DumpState + ) + .returns(T.anything) + end + def dump(value, state:) end - def dump(value, state:); end # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end class << self # @api private sig do params( - spec: T.any( - { - const: T.nilable(T.any(NilClass, T::Boolean, Integer, Float, Symbol)), - enum: T.nilable(T.proc.returns(Orb::Internal::Type::Converter::Input)), - union: T.nilable(T.proc.returns(Orb::Internal::Type::Converter::Input)) - }, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ) - ) - .returns(T.proc.returns(T.anything)) + spec: + T.any( + { + const: + T.nilable( + T.any(NilClass, T::Boolean, Integer, Float, Symbol) + ), + enum: + T.nilable( + T.proc.returns(Orb::Internal::Type::Converter::Input) + ), + union: + T.nilable( + T.proc.returns(Orb::Internal::Type::Converter::Input) + ) + }, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ) + ).returns(T.proc.returns(T.anything)) + end + def self.type_info(spec) end - def self.type_info(spec); end # @api private # @@ -73,8 +98,7 @@ module Orb target: Orb::Internal::Type::Converter::Input, value: T.anything, state: Orb::Internal::Type::Converter::CoerceState - ) - .returns(T.anything) + ).returns(T.anything) end def self.coerce( target, @@ -98,22 +122,33 @@ module Orb # - `no`: the value cannot be converted to the target type. # # See implementation below for more details. - state: {strictness: true, exactness: {yes: 0, no: 0, maybe: 0}, branched: 0} - ); end + state: { + strictness: true, + exactness: { + yes: 0, + no: 0, + maybe: 0 + }, + branched: 0 + } + ) + end + # @api private sig do params( target: Orb::Internal::Type::Converter::Input, value: T.anything, state: Orb::Internal::Type::Converter::DumpState - ) - .returns(T.anything) + ).returns(T.anything) + end + def self.dump(target, value, state: { can_retry: true }) end - def self.dump(target, value, state: {can_retry: true}); end # @api private sig { params(target: T.anything, depth: Integer).returns(String) } - def self.inspect(target, depth:); end + def self.inspect(target, depth:) + end end end end diff --git a/rbi/orb/internal/type/enum.rbi b/rbi/orb/internal/type/enum.rbi index 683f32cc..f84ae124 100644 --- a/rbi/orb/internal/type/enum.rbi +++ b/rbi/orb/internal/type/enum.rbi @@ -19,17 +19,25 @@ module Orb include Orb::Internal::Type::Converter # All of the valid Symbol values for this enum. - sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } - def values; end + sig do + overridable.returns( + T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)] + ) + end + def values + end sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end # @api private # @@ -37,27 +45,31 @@ module Orb # of the enum. sig do override - .params(value: T.any( - String, - Symbol, - T.anything - ), - state: Orb::Internal::Type::Converter::CoerceState) + .params( + value: T.any(String, Symbol, T.anything), + state: Orb::Internal::Type::Converter::CoerceState + ) .returns(T.any(Symbol, T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do override - .params(value: T.any(Symbol, T.anything), state: Orb::Internal::Type::Converter::DumpState) + .params( + value: T.any(Symbol, T.anything), + state: Orb::Internal::Type::Converter::DumpState + ) .returns(T.any(Symbol, T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end end end end diff --git a/rbi/orb/internal/type/file_input.rbi b/rbi/orb/internal/type/file_input.rbi index d19954b1..eb76008a 100644 --- a/rbi/orb/internal/type/file_input.rbi +++ b/rbi/orb/internal/type/file_input.rbi @@ -15,24 +15,25 @@ module Orb abstract! sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end class << self # @api private sig do override - .params(value: T.any( - StringIO, - String, - T.anything - ), - state: Orb::Internal::Type::Converter::CoerceState) + .params( + value: T.any(StringIO, String, T.anything), + state: Orb::Internal::Type::Converter::CoerceState + ) .returns(T.any(StringIO, T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do @@ -43,7 +44,8 @@ module Orb ) .returns(T.any(Pathname, StringIO, IO, String, T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end end end end diff --git a/rbi/orb/internal/type/hash_of.rbi b/rbi/orb/internal/type/hash_of.rbi index 9041321f..3e727b18 100644 --- a/rbi/orb/internal/type/hash_of.rbi +++ b/rbi/orb/internal/type/hash_of.rbi @@ -15,25 +15,29 @@ module Orb sig do params( - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.[](type_info, spec = {}) end - def self.[](type_info, spec = {}); end sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end # @api private sig do @@ -44,7 +48,8 @@ module Orb ) .returns(T.any(Orb::Internal::AnyHash, T.anything)) end - def coerce(value, state:); end + def coerce(value, state:) + end # @api private sig do @@ -55,33 +60,38 @@ module Orb ) .returns(T.any(Orb::Internal::AnyHash, T.anything)) end - def dump(value, state:); end + def dump(value, state:) + end # @api private sig { returns(Elem) } - protected def item_type; end + protected def item_type + end # @api private sig { returns(T::Boolean) } - protected def nilable?; end + protected def nilable? + end # @api private sig do params( - type_info: T.any( - Orb::Internal::AnyHash, - T.proc.returns(Orb::Internal::Type::Converter::Input), - Orb::Internal::Type::Converter::Input - ), + type_info: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(Orb::Internal::Type::Converter::Input), + Orb::Internal::Type::Converter::Input + ), spec: Orb::Internal::AnyHash - ) - .void + ).void + end + def initialize(type_info, spec = {}) end - def initialize(type_info, spec = {}); end # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end end end end diff --git a/rbi/orb/internal/type/request_parameters.rbi b/rbi/orb/internal/type/request_parameters.rbi index 0f10dad2..a741a956 100644 --- a/rbi/orb/internal/type/request_parameters.rbi +++ b/rbi/orb/internal/type/request_parameters.rbi @@ -6,14 +6,22 @@ module Orb # @api private module RequestParameters # Options to specify HTTP behaviour for this request. - sig { returns(Orb::RequestOpts) } - attr_accessor :request_options + sig { returns(Orb::RequestOptions) } + attr_reader :request_options + + sig { params(request_options: Orb::RequestOptions::OrHash).void } + attr_writer :request_options # @api private module Converter # @api private - sig { params(params: T.anything).returns([T.anything, Orb::Internal::AnyHash]) } - def dump_request(params); end + sig do + params(params: T.anything).returns( + [T.anything, Orb::Internal::AnyHash] + ) + end + def dump_request(params) + end end end end diff --git a/rbi/orb/internal/type/union.rbi b/rbi/orb/internal/type/union.rbi index 65ece27c..21c9d4e9 100644 --- a/rbi/orb/internal/type/union.rbi +++ b/rbi/orb/internal/type/union.rbi @@ -10,65 +10,100 @@ module Orb # @api private # # All of the specified variant info for this union. - sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Orb::Internal::Type::Converter::Input)]]) } - private def known_variants; end + sig do + returns( + T::Array[ + [ + T.nilable(Symbol), + T.proc.returns(Orb::Internal::Type::Converter::Input) + ] + ] + ) + end + private def known_variants + end # @api private sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) } - protected def derefed_variants; end + protected def derefed_variants + end # All of the specified variants for this union. sig { overridable.returns(T::Array[T.anything]) } - def variants; end + def variants + end # @api private sig { params(property: Symbol).void } - private def discriminator(property); end + private def discriminator(property) + end # @api private sig do params( - key: T.any(Symbol, Orb::Internal::AnyHash, T.proc.returns(T.anything), T.anything), - spec: T.any(Orb::Internal::AnyHash, T.proc.returns(T.anything), T.anything) - ) - .void + key: + T.any( + Symbol, + Orb::Internal::AnyHash, + T.proc.returns(T.anything), + T.anything + ), + spec: + T.any( + Orb::Internal::AnyHash, + T.proc.returns(T.anything), + T.anything + ) + ).void + end + private def variant(key, spec = nil) end - private def variant(key, spec = nil); end # @api private sig { params(value: T.anything).returns(T.nilable(T.anything)) } - private def resolve_variant(value); end + private def resolve_variant(value) + end sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig { returns(Integer) } - def hash; end + def hash + end # @api private sig do - override.params( - value: T.anything, - state: Orb::Internal::Type::Converter::CoerceState - ).returns(T.anything) + override + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::CoerceState + ) + .returns(T.anything) + end + def coerce(value, state:) end - def coerce(value, state:); end # @api private sig do - override.params( - value: T.anything, - state: Orb::Internal::Type::Converter::DumpState - ).returns(T.anything) + override + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::DumpState + ) + .returns(T.anything) + end + def dump(value, state:) end - def dump(value, state:); end # @api private sig { params(depth: Integer).returns(String) } - def inspect(depth: 0); end + def inspect(depth: 0) + end end end end diff --git a/rbi/orb/internal/type/unknown.rbi b/rbi/orb/internal/type/unknown.rbi index 93bd4287..d6d01721 100644 --- a/rbi/orb/internal/type/unknown.rbi +++ b/rbi/orb/internal/type/unknown.rbi @@ -12,29 +12,37 @@ module Orb abstract! sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end class << self # @api private sig do - override.params( - value: T.anything, - state: Orb::Internal::Type::Converter::CoerceState - ).returns(T.anything) + override + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::CoerceState + ) + .returns(T.anything) + end + def coerce(value, state:) end - def coerce(value, state:); end # @api private sig do - override.params( - value: T.anything, - state: Orb::Internal::Type::Converter::DumpState - ).returns(T.anything) + override + .params( + value: T.anything, + state: Orb::Internal::Type::Converter::DumpState + ) + .returns(T.anything) + end + def dump(value, state:) end - def dump(value, state:); end end end end diff --git a/rbi/orb/internal/util.rbi b/rbi/orb/internal/util.rbi index b6de3b59..54f9a259 100644 --- a/rbi/orb/internal/util.rbi +++ b/rbi/orb/internal/util.rbi @@ -6,60 +6,102 @@ module Orb module Util # @api private sig { returns(Float) } - def self.monotonic_secs; end + def self.monotonic_secs + end class << self # @api private sig { returns(String) } - def arch; end + def arch + end # @api private sig { returns(String) } - def os; end + def os + end end class << self # @api private sig { params(input: T.anything).returns(T::Boolean) } - def primitive?(input); end + def primitive?(input) + end # @api private - sig { params(input: T.any(String, T::Boolean)).returns(T.any(T::Boolean, T.anything)) } - def coerce_boolean(input); end + sig do + params(input: T.any(String, T::Boolean)).returns( + T.any(T::Boolean, T.anything) + ) + end + def coerce_boolean(input) + end # @api private - sig { params(input: T.any(String, T::Boolean)).returns(T.nilable(T::Boolean)) } - def coerce_boolean!(input); end + sig do + params(input: T.any(String, T::Boolean)).returns( + T.nilable(T::Boolean) + ) + end + def coerce_boolean!(input) + end # @api private - sig { params(input: T.any(String, Integer)).returns(T.any(Integer, T.anything)) } - def coerce_integer(input); end + sig do + params(input: T.any(String, Integer)).returns( + T.any(Integer, T.anything) + ) + end + def coerce_integer(input) + end # @api private - sig { params(input: T.any(String, Integer, Float)).returns(T.any(Float, T.anything)) } - def coerce_float(input); end + sig do + params(input: T.any(String, Integer, Float)).returns( + T.any(Float, T.anything) + ) + end + def coerce_float(input) + end # @api private - sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } - def coerce_hash(input); end + sig do + params(input: T.anything).returns( + T.any(T::Hash[T.anything, T.anything], T.anything) + ) + end + def coerce_hash(input) + end # @api private - sig { params(input: T.anything).returns(T.nilable(T::Hash[T.anything, T.anything])) } - def coerce_hash!(input); end + sig do + params(input: T.anything).returns( + T.nilable(T::Hash[T.anything, T.anything]) + ) + end + def coerce_hash!(input) + end end class << self # @api private - sig { params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns(T.anything) } - private def deep_merge_lr(lhs, rhs, concat: false); end + sig do + params(lhs: T.anything, rhs: T.anything, concat: T::Boolean).returns( + T.anything + ) + end + private def deep_merge_lr(lhs, rhs, concat: false) + end # @api private # # Recursively merge one hash with another. If the values at a given key are not # both hashes, just take the new value. sig do - params(values: T::Array[T.anything], sentinel: T.nilable(T.anything), concat: T::Boolean) - .returns(T.anything) + params( + values: T::Array[T.anything], + sentinel: T.nilable(T.anything), + concat: T::Boolean + ).returns(T.anything) end def deep_merge( *values, @@ -67,47 +109,63 @@ module Orb sentinel: nil, # whether to merge sequences by concatenation. concat: false - ); end + ) + end + # @api private sig do params( - data: T.any(Orb::Internal::AnyHash, T::Array[T.anything], T.anything), - pick: T.nilable( - T.any( - Symbol, - Integer, - T::Array[T.any(Symbol, Integer)], - T.proc.params(arg0: T.anything).returns(T.anything) - ) - ), + data: + T.any(Orb::Internal::AnyHash, T::Array[T.anything], T.anything), + pick: + T.nilable( + T.any( + Symbol, + Integer, + T::Array[T.any(Symbol, Integer)], + T.proc.params(arg0: T.anything).returns(T.anything) + ) + ), blk: T.nilable(T.proc.returns(T.anything)) - ) - .returns(T.nilable(T.anything)) + ).returns(T.nilable(T.anything)) + end + def dig(data, pick, &blk) end - def dig(data, pick, &blk); end end class << self # @api private sig { params(uri: URI::Generic).returns(String) } - def uri_origin(uri); end + def uri_origin(uri) + end # @api private sig { params(path: T.any(String, T::Array[String])).returns(String) } - def interpolate_path(path); end + def interpolate_path(path) + end end class << self # @api private - sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } - def decode_query(query); end + sig do + params(query: T.nilable(String)).returns( + T::Hash[String, T::Array[String]] + ) + end + def decode_query(query) + end # @api private sig do - params(query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) - .returns(T.nilable(String)) + params( + query: + T.nilable( + T::Hash[String, T.nilable(T.any(T::Array[String], String))] + ) + ).returns(T.nilable(String)) + end + def encode_query(query) end - def encode_query(query); end end ParsedUriShape = @@ -123,31 +181,53 @@ module Orb class << self # @api private - sig { params(url: T.any(URI::Generic, String)).returns(Orb::Internal::Util::ParsedUriShape) } - def parse_uri(url); end + sig do + params(url: T.any(URI::Generic, String)).returns( + Orb::Internal::Util::ParsedUriShape + ) + end + def parse_uri(url) + end # @api private - sig { params(parsed: Orb::Internal::Util::ParsedUriShape).returns(URI::Generic) } - def unparse_uri(parsed); end + sig do + params(parsed: Orb::Internal::Util::ParsedUriShape).returns( + URI::Generic + ) + end + def unparse_uri(parsed) + end # @api private sig do - params(lhs: Orb::Internal::Util::ParsedUriShape, rhs: Orb::Internal::Util::ParsedUriShape) - .returns(URI::Generic) + params( + lhs: Orb::Internal::Util::ParsedUriShape, + rhs: Orb::Internal::Util::ParsedUriShape + ).returns(URI::Generic) + end + def join_parsed_uri(lhs, rhs) end - def join_parsed_uri(lhs, rhs); end end class << self # @api private sig do params( - headers: T::Hash[String, - T.nilable(T.any(String, Integer, T::Array[T.nilable(T.any(String, Integer))]))] - ) - .returns(T::Hash[String, String]) + headers: + T::Hash[ + String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + ) + ] + ).returns(T::Hash[String, String]) + end + def normalized_headers(*headers) end - def normalized_headers(*headers); end end # @api private @@ -156,38 +236,54 @@ module Orb class ReadIOAdapter # @api private sig { returns(T.nilable(T::Boolean)) } - def close?; end + def close? + end # @api private sig { void } - def close; end + def close + end # @api private sig { params(max_len: T.nilable(Integer)).returns(String) } - private def read_enum(max_len); end + private def read_enum(max_len) + end # @api private - sig { params(max_len: T.nilable(Integer), out_string: T.nilable(String)).returns(T.nilable(String)) } - def read(max_len = nil, out_string = nil); end + sig do + params( + max_len: T.nilable(Integer), + out_string: T.nilable(String) + ).returns(T.nilable(String)) + end + def read(max_len = nil, out_string = nil) + end # @api private sig do params( src: T.any(String, Pathname, StringIO, T::Enumerable[String]), blk: T.proc.params(arg0: String).void - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(src, &blk) end - def self.new(src, &blk); end end class << self - sig { params(blk: T.proc.params(y: Enumerator::Yielder).void).returns(T::Enumerable[String]) } - def writable_enum(&blk); end + sig do + params(blk: T.proc.params(y: Enumerator::Yielder).void).returns( + T::Enumerable[String] + ) + end + def writable_enum(&blk) + end end - JSON_CONTENT = T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp) - JSONL_CONTENT = T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp) + JSON_CONTENT = + T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp) + JSONL_CONTENT = + T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp) class << self # @api private @@ -197,10 +293,15 @@ module Orb val: T.anything, closing: T::Array[T.proc.void], content_type: T.nilable(String) - ) - .void + ).void + end + private def write_multipart_content( + y, + val:, + closing:, + content_type: nil + ) end - private def write_multipart_content(y, val:, closing:, content_type: nil); end # @api private sig do @@ -210,24 +311,33 @@ module Orb key: T.any(Symbol, String), val: T.anything, closing: T::Array[T.proc.void] - ) - .void + ).void + end + private def write_multipart_chunk(y, boundary:, key:, val:, closing:) end - private def write_multipart_chunk(y, boundary:, key:, val:, closing:); end # @api private - sig { params(body: T.anything).returns([String, T::Enumerable[String]]) } - private def encode_multipart_streaming(body); end + sig do + params(body: T.anything).returns([String, T::Enumerable[String]]) + end + private def encode_multipart_streaming(body) + end # @api private - sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } - def encode_content(headers, body); end + sig do + params(headers: T::Hash[String, String], body: T.anything).returns( + T.anything + ) + end + def encode_content(headers, body) + end # @api private # # https://www.iana.org/assignments/character-sets/character-sets.xhtml sig { params(content_type: String, text: String).void } - def force_charset!(content_type, text:); end + def force_charset!(content_type, text:) + end # @api private # @@ -237,10 +347,10 @@ module Orb headers: T.any(T::Hash[String, String], Net::HTTPHeader), stream: T::Enumerable[String], suppress_error: T::Boolean - ) - .returns(T.anything) + ).returns(T.anything) + end + def decode_content(headers, stream:, suppress_error: false) end - def decode_content(headers, stream:, suppress_error: false); end end class << self @@ -248,24 +358,29 @@ module Orb # # https://doc.rust-lang.org/std/iter/trait.FusedIterator.html sig do - params(enum: T::Enumerable[T.anything], external: T::Boolean, close: T.proc.void) - .returns(T::Enumerable[T.anything]) + params( + enum: T::Enumerable[T.anything], + external: T::Boolean, + close: T.proc.void + ).returns(T::Enumerable[T.anything]) + end + def fused_enum(enum, external: false, &close) end - def fused_enum(enum, external: false, &close); end # @api private sig { params(enum: T.nilable(T::Enumerable[T.anything])).void } - def close_fused!(enum); end + def close_fused!(enum) + end # @api private sig do params( enum: T.nilable(T::Enumerable[T.anything]), blk: T.proc.params(arg0: Enumerator::Yielder).void - ) - .returns(T::Enumerable[T.anything]) + ).returns(T::Enumerable[T.anything]) + end + def chain_fused(enum, &blk) end - def chain_fused(enum, &blk); end end ServerSentEvent = @@ -285,8 +400,11 @@ module Orb # # This decoder is responsible for reassembling lines split across multiple # fragments. - sig { params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) } - def decode_lines(enum); end + sig do + params(enum: T::Enumerable[String]).returns(T::Enumerable[String]) + end + def decode_lines(enum) + end # @api private # @@ -294,9 +412,12 @@ module Orb # # Assumes that `lines` has been decoded with `#decode_lines`. sig do - params(lines: T::Enumerable[String]).returns(T::Enumerable[Orb::Internal::Util::ServerSentEvent]) + params(lines: T::Enumerable[String]).returns( + T::Enumerable[Orb::Internal::Util::ServerSentEvent] + ) + end + def decode_sse(lines) end - def decode_sse(lines); end end end end diff --git a/rbi/orb/models.rbi b/rbi/orb/models.rbi index 94f9a4dc..fc20fd8f 100644 --- a/rbi/orb/models.rbi +++ b/rbi/orb/models.rbi @@ -5,9 +5,11 @@ module Orb AlertCreateForCustomerParams = Orb::Models::AlertCreateForCustomerParams - AlertCreateForExternalCustomerParams = Orb::Models::AlertCreateForExternalCustomerParams + AlertCreateForExternalCustomerParams = + Orb::Models::AlertCreateForExternalCustomerParams - AlertCreateForSubscriptionParams = Orb::Models::AlertCreateForSubscriptionParams + AlertCreateForSubscriptionParams = + Orb::Models::AlertCreateForSubscriptionParams AlertDisableParams = Orb::Models::AlertDisableParams @@ -62,19 +64,23 @@ module Orb CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams = Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams - CustomerSyncPaymentMethodsFromGatewayParams = Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams + CustomerSyncPaymentMethodsFromGatewayParams = + Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams - CustomerUpdateByExternalIDParams = Orb::Models::CustomerUpdateByExternalIDParams + CustomerUpdateByExternalIDParams = + Orb::Models::CustomerUpdateByExternalIDParams CustomerUpdateParams = Orb::Models::CustomerUpdateParams DimensionalPriceGroup = Orb::Models::DimensionalPriceGroup - DimensionalPriceGroupCreateParams = Orb::Models::DimensionalPriceGroupCreateParams + DimensionalPriceGroupCreateParams = + Orb::Models::DimensionalPriceGroupCreateParams DimensionalPriceGroupListParams = Orb::Models::DimensionalPriceGroupListParams - DimensionalPriceGroupRetrieveParams = Orb::Models::DimensionalPriceGroupRetrieveParams + DimensionalPriceGroupRetrieveParams = + Orb::Models::DimensionalPriceGroupRetrieveParams DimensionalPriceGroups = Orb::Models::DimensionalPriceGroups @@ -174,7 +180,8 @@ module Orb SubscriptionChangeCancelParams = Orb::Models::SubscriptionChangeCancelParams - SubscriptionChangeRetrieveParams = Orb::Models::SubscriptionChangeRetrieveParams + SubscriptionChangeRetrieveParams = + Orb::Models::SubscriptionChangeRetrieveParams SubscriptionCreateParams = Orb::Models::SubscriptionCreateParams @@ -188,15 +195,18 @@ module Orb SubscriptionListParams = Orb::Models::SubscriptionListParams - SubscriptionPriceIntervalsParams = Orb::Models::SubscriptionPriceIntervalsParams + SubscriptionPriceIntervalsParams = + Orb::Models::SubscriptionPriceIntervalsParams SubscriptionsAPI = Orb::Models::SubscriptionsAPI - SubscriptionSchedulePlanChangeParams = Orb::Models::SubscriptionSchedulePlanChangeParams + SubscriptionSchedulePlanChangeParams = + Orb::Models::SubscriptionSchedulePlanChangeParams SubscriptionTriggerPhaseParams = Orb::Models::SubscriptionTriggerPhaseParams - SubscriptionUnscheduleCancellationParams = Orb::Models::SubscriptionUnscheduleCancellationParams + SubscriptionUnscheduleCancellationParams = + Orb::Models::SubscriptionUnscheduleCancellationParams SubscriptionUnscheduleFixedFeeQuantityUpdatesParams = Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams @@ -204,7 +214,8 @@ module Orb SubscriptionUnschedulePendingPlanChangesParams = Orb::Models::SubscriptionUnschedulePendingPlanChangesParams - SubscriptionUpdateFixedFeeQuantityParams = Orb::Models::SubscriptionUpdateFixedFeeQuantityParams + SubscriptionUpdateFixedFeeQuantityParams = + Orb::Models::SubscriptionUpdateFixedFeeQuantityParams SubscriptionUpdateParams = Orb::Models::SubscriptionUpdateParams diff --git a/rbi/orb/models/alert.rbi b/rbi/orb/models/alert.rbi index 6a4a0ad8..703de82e 100644 --- a/rbi/orb/models/alert.rbi +++ b/rbi/orb/models/alert.rbi @@ -3,6 +3,8 @@ module Orb module Models class Alert < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Also referred to as alert_id in this documentation. sig { returns(String) } attr_accessor :id @@ -16,10 +18,10 @@ module Orb attr_accessor :currency # The customer the alert applies to. - sig { returns(T.nilable(Orb::Models::Alert::Customer)) } + sig { returns(T.nilable(Orb::Alert::Customer)) } attr_reader :customer - sig { params(customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Internal::AnyHash))).void } + sig { params(customer: T.nilable(Orb::Alert::Customer::OrHash)).void } attr_writer :customer # Whether the alert is enabled or disabled. @@ -27,33 +29,35 @@ module Orb attr_accessor :enabled # The metric the alert applies to. - sig { returns(T.nilable(Orb::Models::Alert::Metric)) } + sig { returns(T.nilable(Orb::Alert::Metric)) } attr_reader :metric - sig { params(metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Internal::AnyHash))).void } + sig { params(metric: T.nilable(Orb::Alert::Metric::OrHash)).void } attr_writer :metric # The plan the alert applies to. - sig { returns(T.nilable(Orb::Models::Alert::Plan)) } + sig { returns(T.nilable(Orb::Alert::Plan)) } attr_reader :plan - sig { params(plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Internal::AnyHash))).void } + sig { params(plan: T.nilable(Orb::Alert::Plan::OrHash)).void } attr_writer :plan # The subscription the alert applies to. - sig { returns(T.nilable(Orb::Models::Alert::Subscription)) } + sig { returns(T.nilable(Orb::Alert::Subscription)) } attr_reader :subscription - sig { params(subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Internal::AnyHash))).void } + sig do + params(subscription: T.nilable(Orb::Alert::Subscription::OrHash)).void + end attr_writer :subscription # The thresholds that define the conditions under which the alert will be # triggered. - sig { returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) } + sig { returns(T.nilable(T::Array[Orb::Alert::Threshold])) } attr_accessor :thresholds # The type of alert. This must be a valid alert type. - sig { returns(Orb::Models::Alert::Type::TaggedSymbol) } + sig { returns(Orb::Alert::Type::TaggedSymbol) } attr_accessor :type # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending, @@ -66,15 +70,14 @@ module Orb id: String, created_at: Time, currency: T.nilable(String), - customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Internal::AnyHash)), + customer: T.nilable(Orb::Alert::Customer::OrHash), enabled: T::Boolean, - metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Internal::AnyHash)), - plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Internal::AnyHash)), - subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Internal::AnyHash)), - thresholds: T.nilable(T::Array[T.any(Orb::Models::Alert::Threshold, Orb::Internal::AnyHash)]), - type: Orb::Models::Alert::Type::OrSymbol - ) - .returns(T.attached_class) + metric: T.nilable(Orb::Alert::Metric::OrHash), + plan: T.nilable(Orb::Alert::Plan::OrHash), + subscription: T.nilable(Orb::Alert::Subscription::OrHash), + thresholds: T.nilable(T::Array[Orb::Alert::Threshold::OrHash]), + type: Orb::Alert::Type::OrSymbol + ).returns(T.attached_class) end def self.new( # Also referred to as alert_id in this documentation. @@ -98,27 +101,31 @@ module Orb thresholds:, # The type of alert. This must be a valid alert type. type: - ); end + ) + end + sig do - override - .returns( - { - id: String, - created_at: Time, - currency: T.nilable(String), - customer: T.nilable(Orb::Models::Alert::Customer), - enabled: T::Boolean, - metric: T.nilable(Orb::Models::Alert::Metric), - plan: T.nilable(Orb::Models::Alert::Plan), - subscription: T.nilable(Orb::Models::Alert::Subscription), - thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), - type: Orb::Models::Alert::Type::TaggedSymbol - } - ) + override.returns( + { + id: String, + created_at: Time, + currency: T.nilable(String), + customer: T.nilable(Orb::Alert::Customer), + enabled: T::Boolean, + metric: T.nilable(Orb::Alert::Metric), + plan: T.nilable(Orb::Alert::Plan), + subscription: T.nilable(Orb::Alert::Subscription), + thresholds: T.nilable(T::Array[Orb::Alert::Threshold]), + type: Orb::Alert::Type::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end class Customer < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -126,26 +133,42 @@ module Orb attr_accessor :external_customer_id # The customer the alert applies to. - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end class Metric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # The metric the alert applies to. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class Plan < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :id @@ -168,8 +191,7 @@ module Orb external_plan_id: T.nilable(String), name: T.nilable(String), plan_version: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -179,34 +201,42 @@ module Orb external_plan_id:, name:, plan_version: - ); end + ) + end + sig do - override - .returns( - { - id: T.nilable(String), - external_plan_id: T.nilable(String), - name: T.nilable(String), - plan_version: String - } - ) + override.returns( + { + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String), + plan_version: String + } + ) + end + def to_hash end - def to_hash; end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # The subscription the alert applies to. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class Threshold < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. @@ -221,26 +251,33 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. value: - ); end - sig { override.returns({value: Float}) } - def to_hash; end + ) + end + + sig { override.returns({ value: Float }) } + def to_hash + end end # The type of alert. This must be a valid alert type. module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Alert::Type) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Alert::Type) } OrSymbol = T.type_alias { T.any(Symbol, String) } - CREDIT_BALANCE_DEPLETED = T.let(:credit_balance_depleted, Orb::Models::Alert::Type::TaggedSymbol) - CREDIT_BALANCE_DROPPED = T.let(:credit_balance_dropped, Orb::Models::Alert::Type::TaggedSymbol) - CREDIT_BALANCE_RECOVERED = T.let(:credit_balance_recovered, Orb::Models::Alert::Type::TaggedSymbol) - USAGE_EXCEEDED = T.let(:usage_exceeded, Orb::Models::Alert::Type::TaggedSymbol) - COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::Alert::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Alert::Type::TaggedSymbol]) } - def self.values; end + CREDIT_BALANCE_DEPLETED = + T.let(:credit_balance_depleted, Orb::Alert::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = + T.let(:credit_balance_dropped, Orb::Alert::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = + T.let(:credit_balance_recovered, Orb::Alert::Type::TaggedSymbol) + USAGE_EXCEEDED = T.let(:usage_exceeded, Orb::Alert::Type::TaggedSymbol) + COST_EXCEEDED = T.let(:cost_exceeded, Orb::Alert::Type::TaggedSymbol) + + sig { override.returns(T::Array[Orb::Alert::Type::TaggedSymbol]) } + def self.values + end end end end diff --git a/rbi/orb/models/alert_create_for_customer_params.rbi b/rbi/orb/models/alert_create_for_customer_params.rbi index aa928c2b..70bd8ec8 100644 --- a/rbi/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/orb/models/alert_create_for_customer_params.rbi @@ -6,26 +6,34 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol) } + sig { returns(Orb::AlertCreateForCustomerParams::Type::OrSymbol) } attr_accessor :type # The thresholds that define the values at which the alert will be triggered. - sig { returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) } + sig do + returns( + T.nilable(T::Array[Orb::AlertCreateForCustomerParams::Threshold]) + ) + end attr_accessor :thresholds sig do params( currency: String, - type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, - thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Internal::AnyHash)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + type: Orb::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: + T.nilable( + T::Array[Orb::AlertCreateForCustomerParams::Threshold::OrHash] + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The case sensitive currency or custom pricing unit to use for this alert. @@ -35,39 +43,61 @@ module Orb # The thresholds that define the values at which the alert will be triggered. thresholds: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: String, - type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: String, + type: Orb::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: + T.nilable(T::Array[Orb::AlertCreateForCustomerParams::Threshold]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # The type of alert to create. This must be a valid alert type. module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForCustomerParams::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::AlertCreateForCustomerParams::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } CREDIT_BALANCE_DEPLETED = - T.let(:credit_balance_depleted, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_depleted, + Orb::AlertCreateForCustomerParams::Type::TaggedSymbol + ) CREDIT_BALANCE_DROPPED = - T.let(:credit_balance_dropped, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_dropped, + Orb::AlertCreateForCustomerParams::Type::TaggedSymbol + ) CREDIT_BALANCE_RECOVERED = - T.let(:credit_balance_recovered, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_recovered, + Orb::AlertCreateForCustomerParams::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::AlertCreateForCustomerParams::Type::TaggedSymbol] + ) + end + def self.values + end end class Threshold < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. @@ -82,9 +112,12 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. value: - ); end - sig { override.returns({value: Float}) } - def to_hash; end + ) + end + + sig { override.returns({ value: Float }) } + def to_hash + end end end end diff --git a/rbi/orb/models/alert_create_for_external_customer_params.rbi b/rbi/orb/models/alert_create_for_external_customer_params.rbi index d063e7b3..78b38ba6 100644 --- a/rbi/orb/models/alert_create_for_external_customer_params.rbi +++ b/rbi/orb/models/alert_create_for_external_customer_params.rbi @@ -6,28 +6,38 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol) } + sig { returns(Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol) } attr_accessor :type # The thresholds that define the values at which the alert will be triggered. - sig { returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) } + sig do + returns( + T.nilable( + T::Array[Orb::AlertCreateForExternalCustomerParams::Threshold] + ) + ) + end attr_accessor :thresholds sig do params( currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, - thresholds: T.nilable( - T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Internal::AnyHash)] - ), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + type: Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: + T.nilable( + T::Array[ + Orb::AlertCreateForExternalCustomerParams::Threshold::OrHash + ] + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The case sensitive currency or custom pricing unit to use for this alert. @@ -37,39 +47,65 @@ module Orb # The thresholds that define the values at which the alert will be triggered. thresholds: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: String, + type: Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: + T.nilable( + T::Array[Orb::AlertCreateForExternalCustomerParams::Threshold] + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # The type of alert to create. This must be a valid alert type. module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::AlertCreateForExternalCustomerParams::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } CREDIT_BALANCE_DEPLETED = - T.let(:credit_balance_depleted, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_depleted, + Orb::AlertCreateForExternalCustomerParams::Type::TaggedSymbol + ) CREDIT_BALANCE_DROPPED = - T.let(:credit_balance_dropped, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_dropped, + Orb::AlertCreateForExternalCustomerParams::Type::TaggedSymbol + ) CREDIT_BALANCE_RECOVERED = - T.let(:credit_balance_recovered, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + T.let( + :credit_balance_recovered, + Orb::AlertCreateForExternalCustomerParams::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::AlertCreateForExternalCustomerParams::Type::TaggedSymbol + ] + ) + end + def self.values + end end class Threshold < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. @@ -84,9 +120,12 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. value: - ); end - sig { override.returns({value: Float}) } - def to_hash; end + ) + end + + sig { override.returns({ value: Float }) } + def to_hash + end end end end diff --git a/rbi/orb/models/alert_create_for_subscription_params.rbi b/rbi/orb/models/alert_create_for_subscription_params.rbi index d79e3282..a4aaeb78 100644 --- a/rbi/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/orb/models/alert_create_for_subscription_params.rbi @@ -6,12 +6,16 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The thresholds that define the values at which the alert will be triggered. - sig { returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) } + sig do + returns(T::Array[Orb::AlertCreateForSubscriptionParams::Threshold]) + end attr_accessor :thresholds # The type of alert to create. This must be a valid alert type. - sig { returns(Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol) } + sig { returns(Orb::AlertCreateForSubscriptionParams::Type::OrSymbol) } attr_accessor :type # The metric to track usage for. @@ -20,12 +24,12 @@ module Orb sig do params( - thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Internal::AnyHash)], - type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, + thresholds: + T::Array[Orb::AlertCreateForSubscriptionParams::Threshold::OrHash], + type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The thresholds that define the values at which the alert will be triggered. @@ -35,21 +39,26 @@ module Orb # The metric to track usage for. metric_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, - metric_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + thresholds: + T::Array[Orb::AlertCreateForSubscriptionParams::Threshold], + type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol, + metric_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class Threshold < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. @@ -64,24 +73,42 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. value: - ); end - sig { override.returns({value: Float}) } - def to_hash; end + ) + end + + sig { override.returns({ value: Float }) } + def to_hash + end end # The type of alert to create. This must be a valid alert type. module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::AlertCreateForSubscriptionParams::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_EXCEEDED = - T.let(:usage_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) - COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) + T.let( + :usage_exceeded, + Orb::AlertCreateForSubscriptionParams::Type::TaggedSymbol + ) + COST_EXCEEDED = + T.let( + :cost_exceeded, + Orb::AlertCreateForSubscriptionParams::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::AlertCreateForSubscriptionParams::Type::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/alert_disable_params.rbi b/rbi/orb/models/alert_disable_params.rbi index 63aa0c39..2c0be25b 100644 --- a/rbi/orb/models/alert_disable_params.rbi +++ b/rbi/orb/models/alert_disable_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } attr_accessor :subscription_id @@ -13,17 +15,26 @@ module Orb sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Used to update the status of a plan alert scoped to this subscription_id subscription_id: nil, request_options: {} - ); end - sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/alert_enable_params.rbi b/rbi/orb/models/alert_enable_params.rbi index 03312c73..2a173a7e 100644 --- a/rbi/orb/models/alert_enable_params.rbi +++ b/rbi/orb/models/alert_enable_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } attr_accessor :subscription_id @@ -13,17 +15,26 @@ module Orb sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Used to update the status of a plan alert scoped to this subscription_id subscription_id: nil, request_options: {} - ); end - sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/alert_list_params.rbi b/rbi/orb/models/alert_list_params.rbi index d4db90f0..c1c738b8 100644 --- a/rbi/orb/models/alert_list_params.rbi +++ b/rbi/orb/models/alert_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -53,9 +55,8 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -74,25 +75,27 @@ module Orb # Fetch alerts scoped to this subscription_id subscription_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - limit: Integer, - subscription_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + limit: Integer, + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/alert_retrieve_params.rbi b/rbi/orb/models/alert_retrieve_params.rbi index fae64a4a..ccc9da17 100644 --- a/rbi/orb/models/alert_retrieve_params.rbi +++ b/rbi/orb/models/alert_retrieve_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/alert_update_params.rbi b/rbi/orb/models/alert_update_params.rbi index 7e654cba..8cab9dbf 100644 --- a/rbi/orb/models/alert_update_params.rbi +++ b/rbi/orb/models/alert_update_params.rbi @@ -6,31 +6,39 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The thresholds that define the values at which the alert will be triggered. - sig { returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) } + sig { returns(T::Array[Orb::AlertUpdateParams::Threshold]) } attr_accessor :thresholds sig do params( - thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Internal::AnyHash)], - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + thresholds: T::Array[Orb::AlertUpdateParams::Threshold::OrHash], + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The thresholds that define the values at which the alert will be triggered. thresholds:, request_options: {} - ); end + ) + end + sig do - override - .returns( - {thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: Orb::RequestOptions} - ) + override.returns( + { + thresholds: T::Array[Orb::AlertUpdateParams::Threshold], + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class Threshold < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The value at which an alert will fire. For credit balance alerts, the alert will # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. @@ -45,9 +53,12 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. value: - ); end - sig { override.returns({value: Float}) } - def to_hash; end + ) + end + + sig { override.returns({ value: Float }) } + def to_hash + end end end end diff --git a/rbi/orb/models/amount_discount.rbi b/rbi/orb/models/amount_discount.rbi index 9c7defc4..50c64914 100644 --- a/rbi/orb/models/amount_discount.rbi +++ b/rbi/orb/models/amount_discount.rbi @@ -3,6 +3,8 @@ module Orb module Models class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -12,7 +14,7 @@ module Orb sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids - sig { returns(Orb::Models::AmountDiscount::DiscountType::OrSymbol) } + sig { returns(Orb::AmountDiscount::DiscountType::OrSymbol) } attr_accessor :discount_type sig { returns(T.nilable(String)) } @@ -22,10 +24,9 @@ module Orb params( amount_discount: String, applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, + discount_type: Orb::AmountDiscount::DiscountType::OrSymbol, reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -35,30 +36,38 @@ module Orb applies_to_price_ids:, discount_type:, reason: nil - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, - reason: T.nilable(String) - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + discount_type: Orb::AmountDiscount::DiscountType::OrSymbol, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AmountDiscount::DiscountType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::AmountDiscount::DiscountType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - AMOUNT = T.let(:amount, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) + AMOUNT = T.let(:amount, Orb::AmountDiscount::DiscountType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::AmountDiscount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::AmountDiscount::DiscountType::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/billable_metric.rbi b/rbi/orb/models/billable_metric.rbi index 4d42c965..6a90e275 100644 --- a/rbi/orb/models/billable_metric.rbi +++ b/rbi/orb/models/billable_metric.rbi @@ -3,6 +3,8 @@ module Orb module Models class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -12,10 +14,10 @@ module Orb # The Item resource represents a sellable product or good. Items are associated # with all line items, billable metrics, and prices and are used for defining # external sync behavior for invoices and tax calculation purposes. - sig { returns(Orb::Models::Item) } + sig { returns(Orb::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Item::OrHash).void } attr_writer :item # User specified key-value pairs for the resource. If not present, this defaults @@ -28,7 +30,7 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::BillableMetric::Status::TaggedSymbol) } + sig { returns(Orb::BillableMetric::Status::TaggedSymbol) } attr_accessor :status # The Metric resource represents a calculation of a quantity based on events. @@ -38,12 +40,11 @@ module Orb params( id: String, description: T.nilable(String), - item: T.any(Orb::Models::Item, Orb::Internal::AnyHash), + item: Orb::Item::OrHash, metadata: T::Hash[Symbol, String], name: String, - status: Orb::Models::BillableMetric::Status::OrSymbol - ) - .returns(T.attached_class) + status: Orb::BillableMetric::Status::OrSymbol + ).returns(T.attached_class) end def self.new( id:, @@ -59,34 +60,40 @@ module Orb metadata:, name:, status: - ); end + ) + end + sig do - override - .returns( - { - id: String, - description: T.nilable(String), - item: Orb::Models::Item, - metadata: T::Hash[Symbol, String], - name: String, - status: Orb::Models::BillableMetric::Status::TaggedSymbol - } - ) + override.returns( + { + id: String, + description: T.nilable(String), + item: Orb::Item, + metadata: T::Hash[Symbol, String], + name: String, + status: Orb::BillableMetric::Status::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillableMetric::Status) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::BillableMetric::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::BillableMetric::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::BillableMetric::Status::TaggedSymbol) - ARCHIVED = T.let(:archived, Orb::Models::BillableMetric::Status::TaggedSymbol) + ACTIVE = T.let(:active, Orb::BillableMetric::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::BillableMetric::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::BillableMetric::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::BillableMetric::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::BillableMetric::Status::TaggedSymbol]) + end + def self.values + end end end end diff --git a/rbi/orb/models/billing_cycle_relative_date.rbi b/rbi/orb/models/billing_cycle_relative_date.rbi index e37a62da..2475454b 100644 --- a/rbi/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/orb/models/billing_cycle_relative_date.rbi @@ -5,14 +5,20 @@ module Orb module BillingCycleRelativeDate extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillingCycleRelativeDate) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::BillingCycleRelativeDate) } OrSymbol = T.type_alias { T.any(Symbol, String) } - START_OF_TERM = T.let(:start_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) - END_OF_TERM = T.let(:end_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) + START_OF_TERM = + T.let(:start_of_term, Orb::BillingCycleRelativeDate::TaggedSymbol) + END_OF_TERM = + T.let(:end_of_term, Orb::BillingCycleRelativeDate::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::BillingCycleRelativeDate::TaggedSymbol]) + end + def self.values + end end end end diff --git a/rbi/orb/models/coupon.rbi b/rbi/orb/models/coupon.rbi index 91ad8f76..9a51d142 100644 --- a/rbi/orb/models/coupon.rbi +++ b/rbi/orb/models/coupon.rbi @@ -3,6 +3,8 @@ module Orb module Models class Coupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Also referred to as coupon_id in this documentation. sig { returns(String) } attr_accessor :id @@ -12,7 +14,7 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :archived_at - sig { returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) } + sig { returns(T.any(Orb::PercentageDiscount, Orb::AmountDiscount)) } attr_accessor :discount # This allows for a coupon's discount to apply for a limited time (determined in @@ -42,13 +44,13 @@ module Orb params( id: String, archived_at: T.nilable(Time), - discount: T.any(Orb::Models::PercentageDiscount, Orb::Internal::AnyHash, Orb::Models::AmountDiscount), + discount: + T.any(Orb::PercentageDiscount::OrHash, Orb::AmountDiscount::OrHash), duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), redemption_code: String, times_redeemed: Integer - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Also referred to as coupon_id in this documentation. @@ -67,28 +69,34 @@ module Orb redemption_code:, # The number of times this coupon has been redeemed. times_redeemed: - ); end + ) + end + sig do - override - .returns( - { - id: String, - archived_at: T.nilable(Time), - discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer), - redemption_code: String, - times_redeemed: Integer - } - ) + override.returns( + { + id: String, + archived_at: T.nilable(Time), + discount: T.any(Orb::PercentageDiscount, Orb::AmountDiscount), + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + redemption_code: String, + times_redeemed: Integer + } + ) + end + def to_hash end - def to_hash; end module Discount extend Orb::Internal::Type::Union - sig { override.returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount]) } - def self.variants; end + Variants = + T.type_alias { T.any(Orb::PercentageDiscount, Orb::AmountDiscount) } + + sig { override.returns(T::Array[Orb::Coupon::Discount::Variants]) } + def self.variants + end end end end diff --git a/rbi/orb/models/coupon_archive_params.rbi b/rbi/orb/models/coupon_archive_params.rbi index 72e542cf..ae0b58c9 100644 --- a/rbi/orb/models/coupon_archive_params.rbi +++ b/rbi/orb/models/coupon_archive_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/coupon_create_params.rbi b/rbi/orb/models/coupon_create_params.rbi index 0f0a8389..bb5491e4 100644 --- a/rbi/orb/models/coupon_create_params.rbi +++ b/rbi/orb/models/coupon_create_params.rbi @@ -6,11 +6,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do returns( T.any( - Orb::Models::CouponCreateParams::Discount::Percentage, - Orb::Models::CouponCreateParams::Discount::Amount + Orb::CouponCreateParams::Discount::Percentage, + Orb::CouponCreateParams::Discount::Amount ) ) end @@ -32,17 +34,16 @@ module Orb sig do params( - discount: T.any( - Orb::Models::CouponCreateParams::Discount::Percentage, - Orb::Internal::AnyHash, - Orb::Models::CouponCreateParams::Discount::Amount - ), + discount: + T.any( + Orb::CouponCreateParams::Discount::Percentage::OrHash, + Orb::CouponCreateParams::Discount::Amount::OrHash + ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( discount:, @@ -55,62 +56,95 @@ module Orb # exhausted;`null` here means "unlimited". max_redemptions: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - discount: T.any( - Orb::Models::CouponCreateParams::Discount::Percentage, - Orb::Models::CouponCreateParams::Discount::Amount + override.returns( + { + discount: + T.any( + Orb::CouponCreateParams::Discount::Percentage, + Orb::CouponCreateParams::Discount::Amount ), - redemption_code: String, - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer), - request_options: Orb::RequestOptions - } - ) + redemption_code: String, + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module Discount extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::CouponCreateParams::Discount::Percentage, + Orb::CouponCreateParams::Discount::Amount + ) + end + class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :discount_type sig { returns(Float) } attr_accessor :percentage_discount - sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } - def self.new(percentage_discount:, discount_type: :percentage); end + sig do + params(percentage_discount: Float, discount_type: Symbol).returns( + T.attached_class + ) + end + def self.new(percentage_discount:, discount_type: :percentage) + end - sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } - def to_hash; end + sig do + override.returns( + { discount_type: Symbol, percentage_discount: Float } + ) + end + def to_hash + end end class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :amount_discount sig { returns(Symbol) } attr_accessor :discount_type - sig { params(amount_discount: String, discount_type: Symbol).returns(T.attached_class) } - def self.new(amount_discount:, discount_type: :amount); end - - sig { override.returns({amount_discount: String, discount_type: Symbol}) } - def to_hash; end + sig do + params(amount_discount: String, discount_type: Symbol).returns( + T.attached_class + ) + end + def self.new(amount_discount:, discount_type: :amount) + end + + sig do + override.returns({ amount_discount: String, discount_type: Symbol }) + end + def to_hash + end end sig do - override - .returns( - [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount] - ) + override.returns( + T::Array[Orb::CouponCreateParams::Discount::Variants] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/coupon_fetch_params.rbi b/rbi/orb/models/coupon_fetch_params.rbi index eef8351d..04ae921a 100644 --- a/rbi/orb/models/coupon_fetch_params.rbi +++ b/rbi/orb/models/coupon_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/coupon_list_params.rbi b/rbi/orb/models/coupon_list_params.rbi index c79e26a6..96815e42 100644 --- a/rbi/orb/models/coupon_list_params.rbi +++ b/rbi/orb/models/coupon_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -33,9 +35,8 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -49,20 +50,22 @@ module Orb # coupons). show_archived: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - cursor: T.nilable(String), - limit: Integer, - redemption_code: T.nilable(String), - show_archived: T.nilable(T::Boolean), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + redemption_code: T.nilable(String), + show_archived: T.nilable(T::Boolean), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/coupons/subscription_list_params.rbi b/rbi/orb/models/coupons/subscription_list_params.rbi index 52da968a..37463702 100644 --- a/rbi/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/orb/models/coupons/subscription_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -23,9 +25,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -34,11 +35,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/credit_note.rbi b/rbi/orb/models/credit_note.rbi index 10925ab7..22a8d6cd 100644 --- a/rbi/orb/models/credit_note.rbi +++ b/rbi/orb/models/credit_note.rbi @@ -3,6 +3,8 @@ module Orb module Models class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Orb id of this credit note. sig { returns(String) } attr_accessor :id @@ -19,10 +21,10 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :credit_note_pdf - sig { returns(Orb::Models::CreditNote::Customer) } + sig { returns(Orb::CreditNote::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::CreditNote::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::CreditNote::Customer::OrHash).void } attr_writer :customer # The id of the invoice resource that this credit note is applied to. @@ -30,18 +32,18 @@ module Orb attr_accessor :invoice_id # All of the line items associated with this credit note. - sig { returns(T::Array[Orb::Models::CreditNote::LineItem]) } + sig { returns(T::Array[Orb::CreditNote::LineItem]) } attr_accessor :line_items # The maximum amount applied on the original invoice - sig { returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) } + sig { returns(T.nilable(Orb::CreditNote::MaximumAmountAdjustment)) } attr_reader :maximum_amount_adjustment sig do params( - maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Internal::AnyHash)) - ) - .void + maximum_amount_adjustment: + T.nilable(Orb::CreditNote::MaximumAmountAdjustment::OrHash) + ).void end attr_writer :maximum_amount_adjustment @@ -53,7 +55,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount_refunded - sig { returns(T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol)) } + sig { returns(T.nilable(Orb::CreditNote::Reason::TaggedSymbol)) } attr_accessor :reason # The total prior to any creditable invoice-level discounts or minimums. @@ -64,7 +66,7 @@ module Orb sig { returns(String) } attr_accessor :total - sig { returns(Orb::Models::CreditNote::Type::TaggedSymbol) } + sig { returns(Orb::CreditNote::Type::TaggedSymbol) } attr_accessor :type # The time at which the credit note was voided in Orb, if applicable. @@ -72,10 +74,12 @@ module Orb attr_accessor :voided_at # Any discounts applied on the original invoice. - sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount])) } + sig { returns(T.nilable(T::Array[Orb::CreditNote::Discount])) } attr_reader :discounts - sig { params(discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Internal::AnyHash)]).void } + sig do + params(discounts: T::Array[Orb::CreditNote::Discount::OrHash]).void + end attr_writer :discounts # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has @@ -86,20 +90,20 @@ module Orb created_at: Time, credit_note_number: String, credit_note_pdf: T.nilable(String), - customer: T.any(Orb::Models::CreditNote::Customer, Orb::Internal::AnyHash), + customer: Orb::CreditNote::Customer::OrHash, invoice_id: String, - line_items: T::Array[T.any(Orb::Models::CreditNote::LineItem, Orb::Internal::AnyHash)], - maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Internal::AnyHash)), + line_items: T::Array[Orb::CreditNote::LineItem::OrHash], + maximum_amount_adjustment: + T.nilable(Orb::CreditNote::MaximumAmountAdjustment::OrHash), memo: T.nilable(String), minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Orb::Models::CreditNote::Reason::OrSymbol), + reason: T.nilable(Orb::CreditNote::Reason::OrSymbol), subtotal: String, total: String, - type: Orb::Models::CreditNote::Type::OrSymbol, + type: Orb::CreditNote::Type::OrSymbol, voided_at: T.nilable(Time), - discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + discounts: T::Array[Orb::CreditNote::Discount::OrHash] + ).returns(T.attached_class) end def self.new( # The Orb id of this credit note. @@ -131,47 +135,64 @@ module Orb voided_at:, # Any discounts applied on the original invoice. discounts: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - created_at: Time, - credit_note_number: String, - credit_note_pdf: T.nilable(String), - customer: Orb::Models::CreditNote::Customer, - invoice_id: String, - line_items: T::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), - memo: T.nilable(String), - minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol), - subtotal: String, - total: String, - type: Orb::Models::CreditNote::Type::TaggedSymbol, - voided_at: T.nilable(Time), - discounts: T::Array[Orb::Models::CreditNote::Discount] - } - ) + override.returns( + { + id: String, + created_at: Time, + credit_note_number: String, + credit_note_pdf: T.nilable(String), + customer: Orb::CreditNote::Customer, + invoice_id: String, + line_items: T::Array[Orb::CreditNote::LineItem], + maximum_amount_adjustment: + T.nilable(Orb::CreditNote::MaximumAmountAdjustment), + memo: T.nilable(String), + minimum_amount_refunded: T.nilable(String), + reason: T.nilable(Orb::CreditNote::Reason::TaggedSymbol), + subtotal: String, + total: String, + type: Orb::CreditNote::Type::TaggedSymbol, + voided_at: T.nilable(Time), + discounts: T::Array[Orb::CreditNote::Discount] + } + ) + end + def to_hash end - def to_hash; end class Customer < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end class LineItem < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Orb id of this resource. sig { returns(String) } attr_accessor :id @@ -197,16 +218,19 @@ module Orb attr_accessor :subtotal # Any tax amounts applied onto the line item. - sig { returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) } + sig { returns(T::Array[Orb::CreditNote::LineItem::TaxAmount]) } attr_accessor :tax_amounts # Any line item discounts from the invoice's line item. - sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::LineItem::Discount])) } + sig do + returns(T.nilable(T::Array[Orb::CreditNote::LineItem::Discount])) + end attr_reader :discounts sig do - params(discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Internal::AnyHash)]) - .void + params( + discounts: T::Array[Orb::CreditNote::LineItem::Discount::OrHash] + ).void end attr_writer :discounts @@ -218,10 +242,9 @@ module Orb name: String, quantity: T.nilable(Float), subtotal: String, - tax_amounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::TaxAmount, Orb::Internal::AnyHash)], - discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tax_amounts: T::Array[Orb::CreditNote::LineItem::TaxAmount::OrHash], + discounts: T::Array[Orb::CreditNote::LineItem::Discount::OrHash] + ).returns(T.attached_class) end def self.new( # The Orb id of this resource. @@ -240,25 +263,29 @@ module Orb tax_amounts:, # Any line item discounts from the invoice's line item. discounts: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - item_id: String, - name: String, - quantity: T.nilable(Float), - subtotal: String, - tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] - } - ) + override.returns( + { + id: String, + amount: String, + item_id: String, + name: String, + quantity: T.nilable(Float), + subtotal: String, + tax_amounts: T::Array[Orb::CreditNote::LineItem::TaxAmount], + discounts: T::Array[Orb::CreditNote::LineItem::Discount] + } + ) + end + def to_hash end - def to_hash; end class TaxAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount of additional tax incurred by this tax rate. sig { returns(String) } attr_accessor :amount @@ -272,8 +299,11 @@ module Orb attr_accessor :tax_rate_percentage sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) - .returns(T.attached_class) + params( + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The amount of additional tax incurred by this tax rate. @@ -282,7 +312,9 @@ module Orb tax_rate_description:, # The tax rate percentage, out of 100. tax_rate_percentage: - ); end + ) + end + sig do override.returns( { @@ -292,10 +324,13 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Discount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -305,7 +340,11 @@ module Orb sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids - sig { returns(Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) } + sig do + returns( + Orb::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol + ) + end attr_accessor :discount_type sig { returns(Float) } @@ -322,12 +361,12 @@ module Orb id: String, amount_applied: String, applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::OrSymbol, + discount_type: + Orb::CreditNote::LineItem::Discount::DiscountType::OrSymbol, percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -337,49 +376,82 @@ module Orb percentage_discount:, amount_discount: nil, reason: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount_applied: String, - applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol, - percentage_discount: Float, - amount_discount: T.nilable(String), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount_applied: String, + applies_to_price_ids: T::Array[String], + discount_type: + Orb::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol, + percentage_discount: Float, + amount_discount: T.nilable(String), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CreditNote::LineItem::Discount::DiscountType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) - AMOUNT = T.let(:amount, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) + PERCENTAGE = + T.let( + :percentage, + Orb::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol + ) + AMOUNT = + T.let( + :amount, + Orb::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol + ] + ) + end + def self.values + end end end end class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :amount_applied - sig { returns(Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) } + sig do + returns( + Orb::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol + ) + end attr_accessor :discount_type sig { returns(Float) } attr_accessor :percentage_discount - sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) } + sig do + returns( + T.nilable( + T::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice] + ) + ) + end attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } @@ -389,14 +461,17 @@ module Orb sig do params( amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::OrSymbol, + discount_type: + Orb::CreditNote::MaximumAmountAdjustment::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable( - T::Array[T.any(Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice, Orb::Internal::AnyHash)] - ), + applies_to_prices: + T.nilable( + T::Array[ + Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice::OrHash + ] + ), reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_applied:, @@ -408,34 +483,57 @@ module Orb end sig do - override - .returns( - { - amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), - reason: T.nilable(String) - } - ) + override.returns( + { + amount_applied: String, + discount_type: + Orb::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol, + percentage_discount: Float, + applies_to_prices: + T.nilable( + T::Array[ + Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice + ] + ), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType) } + T.type_alias do + T.all( + Symbol, + Orb::CreditNote::MaximumAmountAdjustment::DiscountType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERCENTAGE = - T.let(:percentage, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) + T.let( + :percentage, + Orb::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol + ] + ) + end + def self.values + end end class AppliesToPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -443,52 +541,69 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end end module Reason extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Reason) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::CreditNote::Reason) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DUPLICATE = T.let(:Duplicate, Orb::Models::CreditNote::Reason::TaggedSymbol) - FRAUDULENT = T.let(:Fraudulent, Orb::Models::CreditNote::Reason::TaggedSymbol) - ORDER_CHANGE = T.let(:"Order change", Orb::Models::CreditNote::Reason::TaggedSymbol) - PRODUCT_UNSATISFACTORY = T.let(:"Product unsatisfactory", Orb::Models::CreditNote::Reason::TaggedSymbol) + DUPLICATE = T.let(:Duplicate, Orb::CreditNote::Reason::TaggedSymbol) + FRAUDULENT = T.let(:Fraudulent, Orb::CreditNote::Reason::TaggedSymbol) + ORDER_CHANGE = + T.let(:"Order change", Orb::CreditNote::Reason::TaggedSymbol) + PRODUCT_UNSATISFACTORY = + T.let( + :"Product unsatisfactory", + Orb::CreditNote::Reason::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CreditNote::Reason::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::CreditNote::Reason::TaggedSymbol]) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Type) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::CreditNote::Type) } OrSymbol = T.type_alias { T.any(Symbol, String) } - REFUND = T.let(:refund, Orb::Models::CreditNote::Type::TaggedSymbol) - ADJUSTMENT = T.let(:adjustment, Orb::Models::CreditNote::Type::TaggedSymbol) + REFUND = T.let(:refund, Orb::CreditNote::Type::TaggedSymbol) + ADJUSTMENT = T.let(:adjustment, Orb::CreditNote::Type::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::CreditNote::Type::TaggedSymbol]) } - def self.values; end + sig { override.returns(T::Array[Orb::CreditNote::Type::TaggedSymbol]) } + def self.values + end end class Discount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :amount_applied - sig { returns(Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) } + sig { returns(Orb::CreditNote::Discount::DiscountType::TaggedSymbol) } attr_accessor :discount_type sig { returns(Float) } attr_accessor :percentage_discount - sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) } + sig do + returns( + T.nilable(T::Array[Orb::CreditNote::Discount::AppliesToPrice]) + ) + end attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } @@ -497,12 +612,14 @@ module Orb sig do params( amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::DiscountType::OrSymbol, + discount_type: Orb::CreditNote::Discount::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[T.any(Orb::Models::CreditNote::Discount::AppliesToPrice, Orb::Internal::AnyHash)]), + applies_to_prices: + T.nilable( + T::Array[Orb::CreditNote::Discount::AppliesToPrice::OrHash] + ), reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_applied:, @@ -514,32 +631,48 @@ module Orb end sig do - override - .returns( - { - amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), - reason: T.nilable(String) - } - ) + override.returns( + { + amount_applied: String, + discount_type: + Orb::CreditNote::Discount::DiscountType::TaggedSymbol, + percentage_discount: Float, + applies_to_prices: + T.nilable(T::Array[Orb::CreditNote::Discount::AppliesToPrice]), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Discount::DiscountType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CreditNote::Discount::DiscountType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) + PERCENTAGE = + T.let( + :percentage, + Orb::CreditNote::Discount::DiscountType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::CreditNote::Discount::DiscountType::TaggedSymbol] + ) + end + def self.values + end end class AppliesToPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -547,10 +680,12 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/credit_note_create_params.rbi b/rbi/orb/models/credit_note_create_params.rbi index 94a3e77d..2d9af98b 100644 --- a/rbi/orb/models/credit_note_create_params.rbi +++ b/rbi/orb/models/credit_note_create_params.rbi @@ -6,7 +6,9 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::CreditNoteCreateParams::LineItem]) } attr_accessor :line_items # An optional memo to attach to the credit note. @@ -14,17 +16,16 @@ module Orb attr_accessor :memo # An optional reason for the credit note. - sig { returns(T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol)) } + sig { returns(T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol)) } attr_accessor :reason sig do params( - line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Internal::AnyHash)], + line_items: T::Array[Orb::CreditNoteCreateParams::LineItem::OrHash], memo: T.nilable(String), - reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + reason: T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( line_items:, @@ -33,21 +34,25 @@ module Orb # An optional reason for the credit note. reason: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: T.nilable(String), - reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + line_items: T::Array[Orb::CreditNoteCreateParams::LineItem], + memo: T.nilable(String), + reason: T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class LineItem < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount in the invoice's currency to credit this line item. sig { returns(String) } attr_accessor :amount @@ -56,32 +61,56 @@ module Orb sig { returns(String) } attr_accessor :invoice_line_item_id - sig { params(amount: String, invoice_line_item_id: String).returns(T.attached_class) } + sig do + params(amount: String, invoice_line_item_id: String).returns( + T.attached_class + ) + end def self.new( # The total amount in the invoice's currency to credit this line item. amount:, # The ID of the line item to credit. invoice_line_item_id: - ); end - sig { override.returns({amount: String, invoice_line_item_id: String}) } - def to_hash; end + ) + end + + sig do + override.returns({ amount: String, invoice_line_item_id: String }) + end + def to_hash + end end # An optional reason for the credit note. module Reason extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNoteCreateParams::Reason) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::CreditNoteCreateParams::Reason) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DUPLICATE = T.let(:duplicate, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) - FRAUDULENT = T.let(:fraudulent, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) - ORDER_CHANGE = T.let(:order_change, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + DUPLICATE = + T.let(:duplicate, Orb::CreditNoteCreateParams::Reason::TaggedSymbol) + FRAUDULENT = + T.let(:fraudulent, Orb::CreditNoteCreateParams::Reason::TaggedSymbol) + ORDER_CHANGE = + T.let( + :order_change, + Orb::CreditNoteCreateParams::Reason::TaggedSymbol + ) PRODUCT_UNSATISFACTORY = - T.let(:product_unsatisfactory, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + T.let( + :product_unsatisfactory, + Orb::CreditNoteCreateParams::Reason::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::CreditNoteCreateParams::Reason::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/credit_note_fetch_params.rbi b/rbi/orb/models/credit_note_fetch_params.rbi index 4bd31f74..3a63ac38 100644 --- a/rbi/orb/models/credit_note_fetch_params.rbi +++ b/rbi/orb/models/credit_note_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/credit_note_list_params.rbi b/rbi/orb/models/credit_note_list_params.rbi index c74cc833..07c5ce84 100644 --- a/rbi/orb/models/credit_note_list_params.rbi +++ b/rbi/orb/models/credit_note_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -38,9 +40,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -53,22 +54,24 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customer.rbi b/rbi/orb/models/customer.rbi index 34cf2e37..92d58153 100644 --- a/rbi/orb/models/customer.rbi +++ b/rbi/orb/models/customer.rbi @@ -3,6 +3,8 @@ module Orb module Models class Customer < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -16,12 +18,13 @@ module Orb sig { returns(String) } attr_accessor :balance - sig { returns(T.nilable(Orb::Models::Customer::BillingAddress)) } + sig { returns(T.nilable(Orb::Customer::BillingAddress)) } attr_reader :billing_address sig do - params(billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Internal::AnyHash))) - .void + params( + billing_address: T.nilable(Orb::Customer::BillingAddress::OrHash) + ).void end attr_writer :billing_address @@ -50,10 +53,10 @@ module Orb attr_accessor :external_customer_id # The hierarchical relationships for this customer. - sig { returns(Orb::Models::Customer::Hierarchy) } + sig { returns(Orb::Customer::Hierarchy) } attr_reader :hierarchy - sig { params(hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Internal::AnyHash)).void } + sig { params(hierarchy: Orb::Customer::Hierarchy::OrHash).void } attr_writer :hierarchy # User specified key-value pairs for the resource. If not present, this defaults @@ -70,7 +73,7 @@ module Orb # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - sig { returns(T.nilable(Orb::Models::Customer::PaymentProvider::TaggedSymbol)) } + sig { returns(T.nilable(Orb::Customer::PaymentProvider::TaggedSymbol)) } attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This @@ -81,12 +84,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :portal_url - sig { returns(T.nilable(Orb::Models::Customer::ShippingAddress)) } + sig { returns(T.nilable(Orb::Customer::ShippingAddress)) } attr_reader :shipping_address sig do - params(shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Internal::AnyHash))) - .void + params( + shipping_address: T.nilable(Orb::Customer::ShippingAddress::OrHash) + ).void end attr_writer :shipping_address @@ -195,10 +199,10 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::Customer::TaxID)) } + sig { returns(T.nilable(Orb::Customer::TaxID)) } attr_reader :tax_id - sig { params(tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Internal::AnyHash))).void } + sig { params(tax_id: T.nilable(Orb::Customer::TaxID::OrHash)).void } attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as @@ -207,25 +211,25 @@ module Orb sig { returns(String) } attr_accessor :timezone - sig { returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) } + sig { returns(T.nilable(Orb::Customer::AccountingSyncConfiguration)) } attr_reader :accounting_sync_configuration sig do params( - accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Internal::AnyHash)) - ) - .void + accounting_sync_configuration: + T.nilable(Orb::Customer::AccountingSyncConfiguration::OrHash) + ).void end attr_writer :accounting_sync_configuration - sig { returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) } + sig { returns(T.nilable(Orb::Customer::ReportingConfiguration)) } attr_reader :reporting_configuration sig do params( - reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Internal::AnyHash)) - ) - .void + reporting_configuration: + T.nilable(Orb::Customer::ReportingConfiguration::OrHash) + ).void end attr_writer :reporting_configuration @@ -253,26 +257,27 @@ module Orb additional_emails: T::Array[String], auto_collection: T::Boolean, balance: String, - billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Internal::AnyHash)), + billing_address: T.nilable(Orb::Customer::BillingAddress::OrHash), created_at: Time, currency: T.nilable(String), email: String, email_delivery: T::Boolean, exempt_from_automated_tax: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Internal::AnyHash), + hierarchy: Orb::Customer::Hierarchy::OrHash, metadata: T::Hash[Symbol, String], name: String, - payment_provider: T.nilable(Orb::Models::Customer::PaymentProvider::OrSymbol), + payment_provider: T.nilable(Orb::Customer::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), portal_url: T.nilable(String), - shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Internal::AnyHash)), - tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Internal::AnyHash)), + shipping_address: T.nilable(Orb::Customer::ShippingAddress::OrHash), + tax_id: T.nilable(Orb::Customer::TaxID::OrHash), timezone: String, - accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Internal::AnyHash)), - reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + accounting_sync_configuration: + T.nilable(Orb::Customer::AccountingSyncConfiguration::OrHash), + reporting_configuration: + T.nilable(Orb::Customer::ReportingConfiguration::OrHash) + ).returns(T.attached_class) end def self.new( id:, @@ -423,39 +428,46 @@ module Orb timezone:, accounting_sync_configuration: nil, reporting_configuration: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - additional_emails: T::Array[String], - auto_collection: T::Boolean, - balance: String, - billing_address: T.nilable(Orb::Models::Customer::BillingAddress), - created_at: Time, - currency: T.nilable(String), - email: String, - email_delivery: T::Boolean, - exempt_from_automated_tax: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - hierarchy: Orb::Models::Customer::Hierarchy, - metadata: T::Hash[Symbol, String], - name: String, - payment_provider: T.nilable(Orb::Models::Customer::PaymentProvider::TaggedSymbol), - payment_provider_id: T.nilable(String), - portal_url: T.nilable(String), - shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), - tax_id: T.nilable(Orb::Models::Customer::TaxID), - timezone: String, - accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), - reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) - } - ) + override.returns( + { + id: String, + additional_emails: T::Array[String], + auto_collection: T::Boolean, + balance: String, + billing_address: T.nilable(Orb::Customer::BillingAddress), + created_at: Time, + currency: T.nilable(String), + email: String, + email_delivery: T::Boolean, + exempt_from_automated_tax: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + hierarchy: Orb::Customer::Hierarchy, + metadata: T::Hash[Symbol, String], + name: String, + payment_provider: + T.nilable(Orb::Customer::PaymentProvider::TaggedSymbol), + payment_provider_id: T.nilable(String), + portal_url: T.nilable(String), + shipping_address: T.nilable(Orb::Customer::ShippingAddress), + tax_id: T.nilable(Orb::Customer::TaxID), + timezone: String, + accounting_sync_configuration: + T.nilable(Orb::Customer::AccountingSyncConfiguration), + reporting_configuration: + T.nilable(Orb::Customer::ReportingConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -482,84 +494,114 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Hierarchy < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customer::Hierarchy::Child]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::Customer::Hierarchy::Child]) } attr_accessor :children - sig { returns(T.nilable(Orb::Models::Customer::Hierarchy::Parent)) } + sig { returns(T.nilable(Orb::Customer::Hierarchy::Parent)) } attr_reader :parent - sig { params(parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Internal::AnyHash))).void } + sig do + params( + parent: T.nilable(Orb::Customer::Hierarchy::Parent::OrHash) + ).void + end attr_writer :parent # The hierarchical relationships for this customer. sig do params( - children: T::Array[T.any(Orb::Models::Customer::Hierarchy::Child, Orb::Internal::AnyHash)], - parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + children: T::Array[Orb::Customer::Hierarchy::Child::OrHash], + parent: T.nilable(Orb::Customer::Hierarchy::Parent::OrHash) + ).returns(T.attached_class) + end + def self.new(children:, parent:) end - def self.new(children:, parent:); end sig do - override - .returns( - { - children: T::Array[Orb::Models::Customer::Hierarchy::Child], - parent: T.nilable(Orb::Models::Customer::Hierarchy::Parent) - } - ) + override.returns( + { + children: T::Array[Orb::Customer::Hierarchy::Child], + parent: T.nilable(Orb::Customer::Hierarchy::Parent) + } + ) + end + def to_hash end - def to_hash; end class Child < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end class Parent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end end @@ -569,20 +611,33 @@ module Orb module PaymentProvider extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::PaymentProvider) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Customer::PaymentProvider) } OrSymbol = T.type_alias { T.any(Symbol, String) } - QUICKBOOKS = T.let(:quickbooks, Orb::Models::Customer::PaymentProvider::TaggedSymbol) - BILL_COM = T.let(:"bill.com", Orb::Models::Customer::PaymentProvider::TaggedSymbol) - STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::Customer::PaymentProvider::TaggedSymbol) - STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::Customer::PaymentProvider::TaggedSymbol) - NETSUITE = T.let(:netsuite, Orb::Models::Customer::PaymentProvider::TaggedSymbol) + QUICKBOOKS = + T.let(:quickbooks, Orb::Customer::PaymentProvider::TaggedSymbol) + BILL_COM = + T.let(:"bill.com", Orb::Customer::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = + T.let(:stripe_charge, Orb::Customer::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = + T.let(:stripe_invoice, Orb::Customer::PaymentProvider::TaggedSymbol) + NETSUITE = + T.let(:netsuite, Orb::Customer::PaymentProvider::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Customer::PaymentProvider::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Customer::PaymentProvider::TaggedSymbol] + ) + end + def self.values + end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -609,32 +664,34 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class TaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::Customer::TaxID::Country::TaggedSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::Customer::TaxID::Country::TaggedSymbol) } attr_accessor :country - sig { returns(Orb::Models::Customer::TaxID::Type::TaggedSymbol) } + sig { returns(Orb::Customer::TaxID::Type::TaggedSymbol) } attr_accessor :type sig { returns(String) } @@ -747,200 +804,223 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::Customer::TaxID::Country::OrSymbol, - type: Orb::Models::Customer::TaxID::Type::OrSymbol, + country: Orb::Customer::TaxID::Country::OrSymbol, + type: Orb::Customer::TaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::Customer::TaxID::Country::TaggedSymbol, - type: Orb::Models::Customer::TaxID::Type::TaggedSymbol, - value: String - } - ) + override.returns( + { + country: Orb::Customer::TaxID::Country::TaggedSymbol, + type: Orb::Customer::TaxID::Type::TaggedSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Country) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Customer::TaxID::Country) } OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Country::TaggedSymbol]) } - def self.values; end + AD = T.let(:AD, Orb::Customer::TaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Customer::TaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Customer::TaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Customer::TaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Customer::TaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Customer::TaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Customer::TaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Customer::TaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Customer::TaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Customer::TaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Customer::TaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Customer::TaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Customer::TaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Customer::TaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Customer::TaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Customer::TaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Customer::TaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Customer::TaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Customer::TaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Customer::TaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Customer::TaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Customer::TaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Customer::TaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Customer::TaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Customer::TaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Customer::TaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Customer::TaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Customer::TaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Customer::TaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Customer::TaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Customer::TaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Customer::TaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Customer::TaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Customer::TaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Customer::TaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Customer::TaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Customer::TaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Customer::TaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Customer::TaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Customer::TaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Customer::TaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Customer::TaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Customer::TaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Customer::TaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Customer::TaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Customer::TaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Customer::TaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Customer::TaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Customer::TaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Customer::TaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Customer::TaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Customer::TaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Customer::TaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Customer::TaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Customer::TaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Customer::TaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Customer::TaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Customer::TaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Customer::TaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Customer::TaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Customer::TaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Customer::TaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Customer::TaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Customer::TaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Customer::TaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Customer::TaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Customer::TaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Customer::TaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Customer::TaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Customer::TaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Customer::TaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Customer::TaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Customer::TaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Customer::TaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Customer::TaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Customer::TaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Customer::TaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Customer::TaxID::Country::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Customer::TaxID::Country::TaggedSymbol] + ) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Type) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Customer::TaxID::Type) } OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Type::TaggedSymbol]) } - def self.values; end + AD_NRT = T.let(:ad_nrt, Orb::Customer::TaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Customer::TaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Customer::TaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Customer::TaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Customer::TaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Customer::TaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Customer::TaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_GST_HST = + T.let(:ca_gst_hst, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_PST_BC = + T.let(:ca_pst_bc, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_PST_MB = + T.let(:ca_pst_mb, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_PST_SK = + T.let(:ca_pst_sk, Orb::Customer::TaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Customer::TaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Customer::TaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Customer::TaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Customer::TaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Customer::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = + T.let(:eu_oss_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Customer::TaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Customer::TaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Customer::TaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Customer::TaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Customer::TaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Customer::TaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Customer::TaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Customer::TaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Customer::TaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Customer::TaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Customer::TaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Customer::TaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Customer::TaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Customer::TaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Customer::TaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Customer::TaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Customer::TaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Customer::TaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Customer::TaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Customer::TaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Customer::TaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Customer::TaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Customer::TaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Customer::TaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Customer::TaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Customer::TaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Customer::TaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Customer::TaxID::Type::TaggedSymbol) + + sig do + override.returns(T::Array[Orb::Customer::TaxID::Type::TaggedSymbol]) + end + def self.values + end end end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[ + Orb::Customer::AccountingSyncConfiguration::AccountingProvider + ] + ) + end attr_accessor :accounting_providers sig { returns(T::Boolean) } @@ -948,31 +1028,39 @@ module Orb sig do params( - accounting_providers: T::Array[T.any(Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider, Orb::Internal::AnyHash)], + accounting_providers: + T::Array[ + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::OrHash + ], excluded: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(accounting_providers:, excluded:) end - def self.new(accounting_providers:, excluded:); end sig do - override - .returns( - { - accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], - excluded: T::Boolean - } - ) + override.returns( + { + accounting_providers: + T::Array[ + Orb::Customer::AccountingSyncConfiguration::AccountingProvider + ], + excluded: T::Boolean + } + ) + end + def to_hash end - def to_hash; end class AccountingProvider < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :external_provider_id sig do returns( - Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol ) end attr_accessor :provider_type @@ -980,61 +1068,74 @@ module Orb sig do params( external_provider_id: T.nilable(String), - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::OrSymbol - ) - .returns(T.attached_class) + provider_type: + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::OrSymbol + ).returns(T.attached_class) + end + def self.new(external_provider_id:, provider_type:) end - def self.new(external_provider_id:, provider_type:); end sig do - override - .returns( - { - external_provider_id: T.nilable(String), - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol - } - ) + override.returns( + { + external_provider_id: T.nilable(String), + provider_type: + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module ProviderType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType) } + T.type_alias do + T.all( + Symbol, + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } QUICKBOOKS = T.let( :quickbooks, - Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol ) NETSUITE = T.let( :netsuite, - Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ReportingConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } - def self.new(exempt:); end + def self.new(exempt:) + end - sig { override.returns({exempt: T::Boolean}) } - def to_hash; end + sig { override.returns({ exempt: T::Boolean }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_create_params.rbi b/rbi/orb/models/customer_create_params.rbi index 1f04e848..0fedca46 100644 --- a/rbi/orb/models/customer_create_params.rbi +++ b/rbi/orb/models/customer_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A valid customer email, to be used for notifications. When Orb triggers payment # through a payment gateway, this email will be used for any automatically issued # receipts. @@ -16,14 +18,20 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) } + sig do + returns( + T.nilable(Orb::CustomerCreateParams::AccountingSyncConfiguration) + ) + end attr_reader :accounting_sync_configuration sig do params( - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)) - ) - .void + accounting_sync_configuration: + T.nilable( + Orb::CustomerCreateParams::AccountingSyncConfiguration::OrHash + ) + ).void end attr_writer :accounting_sync_configuration @@ -38,14 +46,14 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) } + sig { returns(T.nilable(Orb::CustomerCreateParams::BillingAddress)) } attr_reader :billing_address sig do params( - billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Internal::AnyHash)) - ) - .void + billing_address: + T.nilable(Orb::CustomerCreateParams::BillingAddress::OrHash) + ).void end attr_writer :billing_address @@ -64,12 +72,13 @@ module Orb attr_accessor :external_customer_id # The hierarchical relationships for this customer. - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) } + sig { returns(T.nilable(Orb::CustomerCreateParams::Hierarchy)) } attr_reader :hierarchy sig do - params(hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Internal::AnyHash))) - .void + params( + hierarchy: T.nilable(Orb::CustomerCreateParams::Hierarchy::OrHash) + ).void end attr_writer :hierarchy @@ -82,7 +91,9 @@ module Orb # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol)) } + sig do + returns(T.nilable(Orb::CustomerCreateParams::PaymentProvider::OrSymbol)) + end attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This @@ -90,25 +101,27 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :payment_provider_id - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) } + sig do + returns(T.nilable(Orb::CustomerCreateParams::ReportingConfiguration)) + end attr_reader :reporting_configuration sig do params( - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Internal::AnyHash)) - ) - .void + reporting_configuration: + T.nilable(Orb::CustomerCreateParams::ReportingConfiguration::OrHash) + ).void end attr_writer :reporting_configuration - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) } + sig { returns(T.nilable(Orb::CustomerCreateParams::ShippingAddress)) } attr_reader :shipping_address sig do params( - shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Internal::AnyHash)) - ) - .void + shipping_address: + T.nilable(Orb::CustomerCreateParams::ShippingAddress::OrHash) + ).void end attr_writer :shipping_address @@ -116,8 +129,8 @@ module Orb returns( T.nilable( T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, - Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar + Orb::CustomerCreateParams::TaxConfiguration::Avalara, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar ) ) ) @@ -229,10 +242,12 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) } + sig { returns(T.nilable(Orb::CustomerCreateParams::TaxID)) } attr_reader :tax_id - sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Internal::AnyHash))).void } + sig do + params(tax_id: T.nilable(Orb::CustomerCreateParams::TaxID::OrHash)).void + end attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as @@ -245,31 +260,39 @@ module Orb params( email: String, name: String, - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)), + accounting_sync_configuration: + T.nilable( + Orb::CustomerCreateParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable(Orb::CustomerCreateParams::BillingAddress::OrHash), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: T.nilable(Orb::CustomerCreateParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable(Orb::CustomerCreateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Internal::AnyHash)), - shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Internal::AnyHash)), + reporting_configuration: + T.nilable( + Orb::CustomerCreateParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable(Orb::CustomerCreateParams::ShippingAddress::OrHash), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: T.nilable(Orb::CustomerCreateParams::TaxID::OrHash), timezone: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # A valid customer email, to be used for notifications. When Orb triggers payment @@ -422,44 +445,58 @@ module Orb # This cannot be changed after customer creation. timezone: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - email: String, - name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), - currency: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), - tax_configuration: T.nilable( + override.returns( + { + email: String, + name: String, + accounting_sync_configuration: + T.nilable(Orb::CustomerCreateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: + T.nilable(Orb::CustomerCreateParams::BillingAddress), + currency: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + hierarchy: T.nilable(Orb::CustomerCreateParams::Hierarchy), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + payment_provider: + T.nilable(Orb::CustomerCreateParams::PaymentProvider::OrSymbol), + payment_provider_id: T.nilable(String), + reporting_configuration: + T.nilable(Orb::CustomerCreateParams::ReportingConfiguration), + shipping_address: + T.nilable(Orb::CustomerCreateParams::ShippingAddress), + tax_configuration: + T.nilable( T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, - Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar + Orb::CustomerCreateParams::TaxConfiguration::Avalara, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar ) ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), - timezone: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + tax_id: T.nilable(Orb::CustomerCreateParams::TaxID), + timezone: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do returns( - T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) + T.nilable( + T::Array[ + Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider + ] + ) ) end attr_accessor :accounting_providers @@ -469,47 +506,64 @@ module Orb sig do params( - accounting_providers: T.nilable( - T::Array[ - T.any( - Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider, - Orb::Internal::AnyHash - ) - ] - ), + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider::OrHash + ] + ), excluded: T.nilable(T::Boolean) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(accounting_providers: nil, excluded: nil) end - def self.new(accounting_providers: nil, excluded: nil); end sig do - override - .returns( - { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), - excluded: T.nilable(T::Boolean) - } - ) + override.returns( + { + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider + ] + ), + excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash end - def to_hash; end class AccountingProvider < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :external_provider_id sig { returns(String) } attr_accessor :provider_type - sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } - def self.new(external_provider_id:, provider_type:); end + sig do + params(external_provider_id: String, provider_type: String).returns( + T.attached_class + ) + end + def self.new(external_provider_id:, provider_type:) + end - sig { override.returns({external_provider_id: String, provider_type: String}) } - def to_hash; end + sig do + override.returns( + { external_provider_id: String, provider_type: String } + ) + end + def to_hash + end end end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -536,28 +590,37 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Hierarchy < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } @@ -573,8 +636,10 @@ module Orb # The hierarchical relationships for this customer. sig do - params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) - .returns(T.attached_class) + params( + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + ).returns(T.attached_class) end def self.new( # A list of child customer IDs to add to the hierarchy. The desired child @@ -583,11 +648,19 @@ module Orb # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. parent_customer_id: nil - ); end + ) + end + sig do - override.returns({child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)}) + override.returns( + { + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end # This is used for creating charges or invoices in an external system via Orb. @@ -596,31 +669,65 @@ module Orb module PaymentProvider extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::PaymentProvider) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerCreateParams::PaymentProvider) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - QUICKBOOKS = T.let(:quickbooks, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) - BILL_COM = T.let(:"bill.com", Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) - STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) - STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) - NETSUITE = T.let(:netsuite, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + QUICKBOOKS = + T.let( + :quickbooks, + Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol + ) + BILL_COM = + T.let( + :"bill.com", + Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol + ) + STRIPE_CHARGE = + T.let( + :stripe_charge, + Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol + ) + STRIPE_INVOICE = + T.let( + :stripe_invoice, + Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::CustomerCreateParams::PaymentProvider::TaggedSymbol] + ) + end + def self.values + end end class ReportingConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } - def self.new(exempt:); end + def self.new(exempt:) + end - sig { override.returns({exempt: T::Boolean}) } - def to_hash; end + sig { override.returns({ exempt: T::Boolean }) } + def to_hash + end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -647,31 +754,48 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end module TaxConfiguration extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Avalara, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar + ) + end + class Avalara < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -682,10 +806,18 @@ module Orb attr_accessor :tax_exemption_code sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) - .returns(T.attached_class) + params( + tax_exempt: T::Boolean, + tax_exemption_code: T.nilable(String), + tax_provider: Symbol + ).returns(T.attached_class) + end + def self.new( + tax_exempt:, + tax_exemption_code: nil, + tax_provider: :avalara + ) end - def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end sig do override.returns( @@ -696,37 +828,50 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Taxjar < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt sig { returns(Symbol) } attr_accessor :tax_provider - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } - def self.new(tax_exempt:, tax_provider: :taxjar); end + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :taxjar) + end - sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } - def to_hash; end + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end end sig do - override - .returns( - [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar] - ) + override.returns( + T::Array[Orb::CustomerCreateParams::TaxConfiguration::Variants] + ) + end + def self.variants end - def self.variants; end end class TaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::CustomerCreateParams::TaxID::Country::OrSymbol) } attr_accessor :country - sig { returns(Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol) } + sig { returns(Orb::CustomerCreateParams::TaxID::Type::OrSymbol) } attr_accessor :type sig { returns(String) } @@ -839,195 +984,387 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, + country: Orb::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::CustomerCreateParams::TaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, - value: String - } - ) + override.returns( + { + country: Orb::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::CustomerCreateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Country) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerCreateParams::TaxID::Country) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol]) } - def self.values; end + AD = + T.let(:AD, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AE = + T.let(:AE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AR = + T.let(:AR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AT = + T.let(:AT, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AU = + T.let(:AU, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BE = + T.let(:BE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BG = + T.let(:BG, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BH = + T.let(:BH, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BO = + T.let(:BO, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BR = + T.let(:BR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CA = + T.let(:CA, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CH = + T.let(:CH, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CL = + T.let(:CL, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CN = + T.let(:CN, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CO = + T.let(:CO, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CR = + T.let(:CR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CY = + T.let(:CY, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CZ = + T.let(:CZ, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DE = + T.let(:DE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DK = + T.let(:DK, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EE = + T.let(:EE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DO = + T.let(:DO, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EC = + T.let(:EC, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EG = + T.let(:EG, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ES = + T.let(:ES, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EU = + T.let(:EU, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + FI = + T.let(:FI, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + FR = + T.let(:FR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GB = + T.let(:GB, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GE = + T.let(:GE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GR = + T.let(:GR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HK = + T.let(:HK, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HR = + T.let(:HR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HU = + T.let(:HU, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ID = + T.let(:ID, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IE = + T.let(:IE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IL = + T.let(:IL, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IN = + T.let(:IN, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IS = + T.let(:IS, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IT = + T.let(:IT, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + JP = + T.let(:JP, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KE = + T.let(:KE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KR = + T.let(:KR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KZ = + T.let(:KZ, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LI = + T.let(:LI, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LT = + T.let(:LT, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LU = + T.let(:LU, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LV = + T.let(:LV, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MT = + T.let(:MT, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MX = + T.let(:MX, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MY = + T.let(:MY, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NG = + T.let(:NG, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NL = + T.let(:NL, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NO = + T.let(:NO, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NZ = + T.let(:NZ, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + OM = + T.let(:OM, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PE = + T.let(:PE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PH = + T.let(:PH, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PL = + T.let(:PL, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PT = + T.let(:PT, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RO = + T.let(:RO, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RS = + T.let(:RS, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RU = + T.let(:RU, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SA = + T.let(:SA, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SE = + T.let(:SE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SG = + T.let(:SG, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SI = + T.let(:SI, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SK = + T.let(:SK, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SV = + T.let(:SV, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TH = + T.let(:TH, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TR = + T.let(:TR, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TW = + T.let(:TW, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + UA = + T.let(:UA, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + US = + T.let(:US, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + UY = + T.let(:UY, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + VE = + T.let(:VE, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + VN = + T.let(:VN, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ZA = + T.let(:ZA, Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::CustomerCreateParams::TaxID::Country::TaggedSymbol] + ) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerCreateParams::TaxID::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol]) } - def self.values; end + AD_NRT = + T.let(:ad_nrt, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AE_TRN = + T.let(:ae_trn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AR_CUIT = + T.let( + :ar_cuit, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + EU_VAT = + T.let(:eu_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AU_ABN = + T.let(:au_abn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AU_ARN = + T.let(:au_arn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BG_UIC = + T.let(:bg_uic, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BH_VAT = + T.let(:bh_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BO_TIN = + T.let(:bo_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BR_CNPJ = + T.let( + :br_cnpj, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + BR_CPF = + T.let(:br_cpf, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_BN = + T.let(:ca_bn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_GST_HST = + T.let( + :ca_gst_hst, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_BC = + T.let( + :ca_pst_bc, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_MB = + T.let( + :ca_pst_mb, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_SK = + T.let( + :ca_pst_sk, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + CA_QST = + T.let(:ca_qst, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CH_VAT = + T.let(:ch_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CL_TIN = + T.let(:cl_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CN_TIN = + T.let(:cn_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CO_NIT = + T.let(:co_nit, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CR_TIN = + T.let(:cr_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + DO_RCN = + T.let(:do_rcn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EC_RUC = + T.let(:ec_ruc, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EG_TIN = + T.let(:eg_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ES_CIF = + T.let(:es_cif, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = + T.let( + :eu_oss_vat, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + GB_VAT = + T.let(:gb_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + GE_VAT = + T.let(:ge_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + HK_BR = + T.let(:hk_br, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + HU_TIN = + T.let(:hu_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ID_NPWP = + T.let( + :id_npwp, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + IL_VAT = + T.let(:il_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + IN_GST = + T.let(:in_gst, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + IS_VAT = + T.let(:is_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_CN = + T.let(:jp_cn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_RN = + T.let(:jp_rn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_TRN = + T.let(:jp_trn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KE_PIN = + T.let(:ke_pin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KR_BRN = + T.let(:kr_brn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KZ_BIN = + T.let(:kz_bin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + LI_UID = + T.let(:li_uid, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MX_RFC = + T.let(:mx_rfc, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_FRP = + T.let(:my_frp, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_ITN = + T.let(:my_itn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_SST = + T.let(:my_sst, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NG_TIN = + T.let(:ng_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NO_VAT = + T.let(:no_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NO_VOEC = + T.let( + :no_voec, + Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol + ) + NZ_GST = + T.let(:nz_gst, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + OM_VAT = + T.let(:om_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + PE_RUC = + T.let(:pe_ruc, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + PH_TIN = + T.let(:ph_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RO_TIN = + T.let(:ro_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RS_PIB = + T.let(:rs_pib, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RU_INN = + T.let(:ru_inn, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RU_KPP = + T.let(:ru_kpp, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SA_VAT = + T.let(:sa_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SG_GST = + T.let(:sg_gst, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SG_UEN = + T.let(:sg_uen, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SI_TIN = + T.let(:si_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SV_NIT = + T.let(:sv_nit, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TH_VAT = + T.let(:th_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TR_TIN = + T.let(:tr_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TW_VAT = + T.let(:tw_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + UA_VAT = + T.let(:ua_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + US_EIN = + T.let(:us_ein, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + UY_RUC = + T.let(:uy_ruc, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + VE_RIF = + T.let(:ve_rif, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + VN_TIN = + T.let(:vn_tin, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ZA_VAT = + T.let(:za_vat, Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::CustomerCreateParams::TaxID::Type::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customer_delete_params.rbi b/rbi/orb/models/customer_delete_params.rbi index aa38cd9e..d288a0e3 100644 --- a/rbi/orb/models/customer_delete_params.rbi +++ b/rbi/orb/models/customer_delete_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_fetch_by_external_id_params.rbi b/rbi/orb/models/customer_fetch_by_external_id_params.rbi index 9be16900..7188ac43 100644 --- a/rbi/orb/models/customer_fetch_by_external_id_params.rbi +++ b/rbi/orb/models/customer_fetch_by_external_id_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_fetch_params.rbi b/rbi/orb/models/customer_fetch_params.rbi index a30fa4f8..71202d59 100644 --- a/rbi/orb/models/customer_fetch_params.rbi +++ b/rbi/orb/models/customer_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_list_params.rbi b/rbi/orb/models/customer_list_params.rbi index 3b73a367..0fce970c 100644 --- a/rbi/orb/models/customer_list_params.rbi +++ b/rbi/orb/models/customer_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -38,9 +40,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -53,22 +54,24 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi b/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi index a77deb87..73ceca12 100644 --- a/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +++ b/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi b/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi index ef28db74..b07e07c0 100644 --- a/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +++ b/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/customer_update_by_external_id_params.rbi b/rbi/orb/models/customer_update_by_external_id_params.rbi index e3e6b325..fcd2819a 100644 --- a/rbi/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/orb/models/customer_update_by_external_id_params.rbi @@ -6,16 +6,24 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) } - attr_reader :accounting_sync_configuration + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } sig do - params( - accounting_sync_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Internal::AnyHash) + returns( + T.nilable( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration ) ) - .void + end + attr_reader :accounting_sync_configuration + + sig do + params( + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::OrHash + ) + ).void end attr_writer :accounting_sync_configuration @@ -30,14 +38,20 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) } + sig do + returns( + T.nilable(Orb::CustomerUpdateByExternalIDParams::BillingAddress) + ) + end attr_reader :billing_address sig do params( - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Internal::AnyHash)) - ) - .void + billing_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::BillingAddress::OrHash + ) + ).void end attr_writer :billing_address @@ -59,14 +73,16 @@ module Orb attr_accessor :external_customer_id # The hierarchical relationships for this customer. - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) } + sig do + returns(T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy)) + end attr_reader :hierarchy sig do params( - hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Internal::AnyHash)) - ) - .void + hierarchy: + T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy::OrHash) + ).void end attr_writer :hierarchy @@ -87,7 +103,13 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol + ) + ) + end attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This @@ -95,27 +117,39 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :payment_provider_id - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) } + sig do + returns( + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration + ) + ) + end attr_reader :reporting_configuration sig do params( - reporting_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + reporting_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration::OrHash + ) + ).void end attr_writer :reporting_configuration - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) } + sig do + returns( + T.nilable(Orb::CustomerUpdateByExternalIDParams::ShippingAddress) + ) + end attr_reader :shipping_address sig do params( - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Internal::AnyHash)) - ) - .void + shipping_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ShippingAddress::OrHash + ) + ).void end attr_writer :shipping_address @@ -123,8 +157,8 @@ module Orb returns( T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar ) ) ) @@ -236,49 +270,61 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) } + sig { returns(T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID)) } attr_reader :tax_id sig do params( - tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Internal::AnyHash)) - ) - .void + tax_id: + T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID::OrHash) + ).void end attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Internal::AnyHash) - ), + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::BillingAddress::OrHash + ), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: + T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol + ), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Internal::AnyHash) - ), - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Internal::AnyHash)), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + reporting_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ShippingAddress::OrHash + ), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: + T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID::OrHash), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( accounting_sync_configuration: nil, @@ -428,44 +474,63 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | tax_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), - tax_configuration: T.nilable( + override.returns( + { + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration + ), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: + T.nilable(Orb::CustomerUpdateByExternalIDParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + hierarchy: + T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + name: T.nilable(String), + payment_provider: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol + ), + payment_provider_id: T.nilable(String), + reporting_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration + ), + shipping_address: + T.nilable(Orb::CustomerUpdateByExternalIDParams::ShippingAddress), + tax_configuration: + T.nilable( T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: Orb::RequestOptions - } - ) + tax_id: T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do returns( T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + T::Array[ + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider + ] ) ) end @@ -476,49 +541,64 @@ module Orb sig do params( - accounting_providers: T.nilable( - T::Array[ - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider, - Orb::Internal::AnyHash - ) - ] - ), + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider::OrHash + ] + ), excluded: T.nilable(T::Boolean) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(accounting_providers: nil, excluded: nil) end - def self.new(accounting_providers: nil, excluded: nil); end sig do - override - .returns( - { - accounting_providers: T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + override.returns( + { + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider + ] ), - excluded: T.nilable(T::Boolean) - } - ) + excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash end - def to_hash; end class AccountingProvider < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :external_provider_id sig { returns(String) } attr_accessor :provider_type - sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } - def self.new(external_provider_id:, provider_type:); end + sig do + params(external_provider_id: String, provider_type: String).returns( + T.attached_class + ) + end + def self.new(external_provider_id:, provider_type:) + end - sig { override.returns({external_provider_id: String, provider_type: String}) } - def to_hash; end + sig do + override.returns( + { external_provider_id: String, provider_type: String } + ) + end + def to_hash + end end end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -545,28 +625,37 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Hierarchy < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } @@ -582,8 +671,10 @@ module Orb # The hierarchical relationships for this customer. sig do - params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) - .returns(T.attached_class) + params( + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + ).returns(T.attached_class) end def self.new( # A list of child customer IDs to add to the hierarchy. The desired child @@ -592,11 +683,19 @@ module Orb # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. parent_customer_id: nil - ); end + ) + end + sig do - override.returns({child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)}) + override.returns( + { + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end # This is used for creating charges or invoices in an external system via Orb. @@ -610,35 +709,69 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider) } + T.type_alias do + T.all( + Symbol, + Orb::CustomerUpdateByExternalIDParams::PaymentProvider + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } QUICKBOOKS = - T.let(:quickbooks, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + T.let( + :quickbooks, + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ) BILL_COM = - T.let(:"bill.com", Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + T.let( + :"bill.com", + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ) STRIPE_CHARGE = - T.let(:stripe_charge, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + T.let( + :stripe_charge, + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ) STRIPE_INVOICE = - T.let(:stripe_invoice, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) - NETSUITE = T.let(:netsuite, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + T.let( + :stripe_invoice, + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol + ] + ) + end + def self.values + end end class ReportingConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } - def self.new(exempt:); end + def self.new(exempt:) + end - sig { override.returns({exempt: T::Boolean}) } - def to_hash; end + sig { override.returns({ exempt: T::Boolean }) } + def to_hash + end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -665,31 +798,48 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end module TaxConfiguration extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar + ) + end + class Avalara < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -700,10 +850,18 @@ module Orb attr_accessor :tax_exemption_code sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) - .returns(T.attached_class) + params( + tax_exempt: T::Boolean, + tax_exemption_code: T.nilable(String), + tax_provider: Symbol + ).returns(T.attached_class) + end + def self.new( + tax_exempt:, + tax_exemption_code: nil, + tax_provider: :avalara + ) end - def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end sig do override.returns( @@ -714,37 +872,58 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Taxjar < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt sig { returns(Symbol) } attr_accessor :tax_provider - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } - def self.new(tax_exempt:, tax_provider: :taxjar); end + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :taxjar) + end - sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } - def to_hash; end + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end end sig do - override - .returns( - [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar] - ) + override.returns( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Variants + ] + ) + end + def self.variants end - def self.variants; end end class TaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol + ) + end attr_accessor :country - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol) } + sig do + returns(Orb::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol) + end attr_accessor :type sig { returns(String) } @@ -857,196 +1036,817 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + country: + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: Orb::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, - value: String - } - ) + override.returns( + { + country: + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country) } + T.type_alias do + T.all( + Symbol, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol]) } - def self.values; end + AD = + T.let( + :AD, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + AE = + T.let( + :AE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + AR = + T.let( + :AR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + AT = + T.let( + :AT, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + AU = + T.let( + :AU, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + BE = + T.let( + :BE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + BG = + T.let( + :BG, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + BH = + T.let( + :BH, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + BO = + T.let( + :BO, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + BR = + T.let( + :BR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CA = + T.let( + :CA, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CH = + T.let( + :CH, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CL = + T.let( + :CL, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CN = + T.let( + :CN, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CO = + T.let( + :CO, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CR = + T.let( + :CR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CY = + T.let( + :CY, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + CZ = + T.let( + :CZ, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + DE = + T.let( + :DE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + DK = + T.let( + :DK, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + EE = + T.let( + :EE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + DO = + T.let( + :DO, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + EC = + T.let( + :EC, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + EG = + T.let( + :EG, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + ES = + T.let( + :ES, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + EU = + T.let( + :EU, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + FI = + T.let( + :FI, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + FR = + T.let( + :FR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + GB = + T.let( + :GB, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + GE = + T.let( + :GE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + GR = + T.let( + :GR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + HK = + T.let( + :HK, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + HR = + T.let( + :HR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + HU = + T.let( + :HU, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + ID = + T.let( + :ID, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + IE = + T.let( + :IE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + IL = + T.let( + :IL, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + IN = + T.let( + :IN, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + IS = + T.let( + :IS, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + IT = + T.let( + :IT, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + JP = + T.let( + :JP, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + KE = + T.let( + :KE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + KR = + T.let( + :KR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + KZ = + T.let( + :KZ, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + LI = + T.let( + :LI, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + LT = + T.let( + :LT, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + LU = + T.let( + :LU, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + LV = + T.let( + :LV, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + MT = + T.let( + :MT, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + MX = + T.let( + :MX, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + MY = + T.let( + :MY, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + NG = + T.let( + :NG, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + NL = + T.let( + :NL, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + NO = + T.let( + :NO, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + NZ = + T.let( + :NZ, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + OM = + T.let( + :OM, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + PE = + T.let( + :PE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + PH = + T.let( + :PH, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + PL = + T.let( + :PL, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + PT = + T.let( + :PT, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + RO = + T.let( + :RO, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + RS = + T.let( + :RS, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + RU = + T.let( + :RU, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SA = + T.let( + :SA, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SE = + T.let( + :SE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SG = + T.let( + :SG, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SI = + T.let( + :SI, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SK = + T.let( + :SK, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + SV = + T.let( + :SV, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + TH = + T.let( + :TH, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + TR = + T.let( + :TR, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + TW = + T.let( + :TW, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + UA = + T.let( + :UA, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + US = + T.let( + :US, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + UY = + T.let( + :UY, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + VE = + T.let( + :VE, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + VN = + T.let( + :VN, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + ZA = + T.let( + :ZA, + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol + ] + ) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerUpdateByExternalIDParams::TaxID::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol]) } - def self.values; end + AD_NRT = + T.let( + :ad_nrt, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + AE_TRN = + T.let( + :ae_trn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + AR_CUIT = + T.let( + :ar_cuit, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + EU_VAT = + T.let( + :eu_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + AU_ABN = + T.let( + :au_abn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + AU_ARN = + T.let( + :au_arn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + BG_UIC = + T.let( + :bg_uic, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + BH_VAT = + T.let( + :bh_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + BO_TIN = + T.let( + :bo_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + BR_CNPJ = + T.let( + :br_cnpj, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + BR_CPF = + T.let( + :br_cpf, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_BN = + T.let( + :ca_bn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_GST_HST = + T.let( + :ca_gst_hst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_PST_BC = + T.let( + :ca_pst_bc, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_PST_MB = + T.let( + :ca_pst_mb, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_PST_SK = + T.let( + :ca_pst_sk, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CA_QST = + T.let( + :ca_qst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CH_VAT = + T.let( + :ch_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CL_TIN = + T.let( + :cl_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CN_TIN = + T.let( + :cn_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CO_NIT = + T.let( + :co_nit, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + CR_TIN = + T.let( + :cr_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + DO_RCN = + T.let( + :do_rcn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + EC_RUC = + T.let( + :ec_ruc, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + EG_TIN = + T.let( + :eg_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + ES_CIF = + T.let( + :es_cif, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + EU_OSS_VAT = + T.let( + :eu_oss_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + GB_VAT = + T.let( + :gb_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + GE_VAT = + T.let( + :ge_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + HK_BR = + T.let( + :hk_br, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + HU_TIN = + T.let( + :hu_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + ID_NPWP = + T.let( + :id_npwp, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + IL_VAT = + T.let( + :il_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + IN_GST = + T.let( + :in_gst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + IS_VAT = + T.let( + :is_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + JP_CN = + T.let( + :jp_cn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + JP_RN = + T.let( + :jp_rn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + JP_TRN = + T.let( + :jp_trn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + KE_PIN = + T.let( + :ke_pin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + KR_BRN = + T.let( + :kr_brn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + KZ_BIN = + T.let( + :kz_bin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + LI_UID = + T.let( + :li_uid, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + MX_RFC = + T.let( + :mx_rfc, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + MY_FRP = + T.let( + :my_frp, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + MY_ITN = + T.let( + :my_itn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + MY_SST = + T.let( + :my_sst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + NG_TIN = + T.let( + :ng_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + NO_VAT = + T.let( + :no_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + NO_VOEC = + T.let( + :no_voec, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + NZ_GST = + T.let( + :nz_gst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + OM_VAT = + T.let( + :om_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + PE_RUC = + T.let( + :pe_ruc, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + PH_TIN = + T.let( + :ph_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + RO_TIN = + T.let( + :ro_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + RS_PIB = + T.let( + :rs_pib, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + RU_INN = + T.let( + :ru_inn, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + RU_KPP = + T.let( + :ru_kpp, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + SA_VAT = + T.let( + :sa_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + SG_GST = + T.let( + :sg_gst, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + SG_UEN = + T.let( + :sg_uen, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + SI_TIN = + T.let( + :si_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + SV_NIT = + T.let( + :sv_nit, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + TH_VAT = + T.let( + :th_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + TR_TIN = + T.let( + :tr_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + TW_VAT = + T.let( + :tw_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + UA_VAT = + T.let( + :ua_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + US_EIN = + T.let( + :us_ein, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + UY_RUC = + T.let( + :uy_ruc, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + VE_RIF = + T.let( + :ve_rif, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + VN_TIN = + T.let( + :vn_tin, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + ZA_VAT = + T.let( + :za_vat, + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customer_update_params.rbi b/rbi/orb/models/customer_update_params.rbi index 571d22e8..b0acb673 100644 --- a/rbi/orb/models/customer_update_params.rbi +++ b/rbi/orb/models/customer_update_params.rbi @@ -6,14 +6,22 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T.nilable(Orb::CustomerUpdateParams::AccountingSyncConfiguration) + ) + end attr_reader :accounting_sync_configuration sig do params( - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)) - ) - .void + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateParams::AccountingSyncConfiguration::OrHash + ) + ).void end attr_writer :accounting_sync_configuration @@ -28,14 +36,14 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) } + sig { returns(T.nilable(Orb::CustomerUpdateParams::BillingAddress)) } attr_reader :billing_address sig do params( - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Internal::AnyHash)) - ) - .void + billing_address: + T.nilable(Orb::CustomerUpdateParams::BillingAddress::OrHash) + ).void end attr_writer :billing_address @@ -57,12 +65,13 @@ module Orb attr_accessor :external_customer_id # The hierarchical relationships for this customer. - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) } + sig { returns(T.nilable(Orb::CustomerUpdateParams::Hierarchy)) } attr_reader :hierarchy sig do - params(hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Internal::AnyHash))) - .void + params( + hierarchy: T.nilable(Orb::CustomerUpdateParams::Hierarchy::OrHash) + ).void end attr_writer :hierarchy @@ -83,7 +92,9 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol)) } + sig do + returns(T.nilable(Orb::CustomerUpdateParams::PaymentProvider::OrSymbol)) + end attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This @@ -91,25 +102,27 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :payment_provider_id - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) } + sig do + returns(T.nilable(Orb::CustomerUpdateParams::ReportingConfiguration)) + end attr_reader :reporting_configuration sig do params( - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Internal::AnyHash)) - ) - .void + reporting_configuration: + T.nilable(Orb::CustomerUpdateParams::ReportingConfiguration::OrHash) + ).void end attr_writer :reporting_configuration - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) } + sig { returns(T.nilable(Orb::CustomerUpdateParams::ShippingAddress)) } attr_reader :shipping_address sig do params( - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Internal::AnyHash)) - ) - .void + shipping_address: + T.nilable(Orb::CustomerUpdateParams::ShippingAddress::OrHash) + ).void end attr_writer :shipping_address @@ -117,8 +130,8 @@ module Orb returns( T.nilable( T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, - Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar ) ) ) @@ -230,40 +243,50 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) } + sig { returns(T.nilable(Orb::CustomerUpdateParams::TaxID)) } attr_reader :tax_id - sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Internal::AnyHash))).void } + sig do + params(tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID::OrHash)).void + end attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)), + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable(Orb::CustomerUpdateParams::BillingAddress::OrHash), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: T.nilable(Orb::CustomerUpdateParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable(Orb::CustomerUpdateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Internal::AnyHash)), - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Internal::AnyHash)), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + reporting_configuration: + T.nilable( + Orb::CustomerUpdateParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable(Orb::CustomerUpdateParams::ShippingAddress::OrHash), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID::OrHash), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( accounting_sync_configuration: nil, @@ -413,43 +436,57 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | tax_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), - tax_configuration: T.nilable( + override.returns( + { + accounting_sync_configuration: + T.nilable(Orb::CustomerUpdateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: + T.nilable(Orb::CustomerUpdateParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + hierarchy: T.nilable(Orb::CustomerUpdateParams::Hierarchy), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + name: T.nilable(String), + payment_provider: + T.nilable(Orb::CustomerUpdateParams::PaymentProvider::OrSymbol), + payment_provider_id: T.nilable(String), + reporting_configuration: + T.nilable(Orb::CustomerUpdateParams::ReportingConfiguration), + shipping_address: + T.nilable(Orb::CustomerUpdateParams::ShippingAddress), + tax_configuration: + T.nilable( T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, - Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: Orb::RequestOptions - } - ) + tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do returns( - T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) + T.nilable( + T::Array[ + Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider + ] + ) ) end attr_accessor :accounting_providers @@ -459,47 +496,64 @@ module Orb sig do params( - accounting_providers: T.nilable( - T::Array[ - T.any( - Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider, - Orb::Internal::AnyHash - ) - ] - ), + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider::OrHash + ] + ), excluded: T.nilable(T::Boolean) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(accounting_providers: nil, excluded: nil) end - def self.new(accounting_providers: nil, excluded: nil); end sig do - override - .returns( - { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), - excluded: T.nilable(T::Boolean) - } - ) + override.returns( + { + accounting_providers: + T.nilable( + T::Array[ + Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider + ] + ), + excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash end - def to_hash; end class AccountingProvider < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :external_provider_id sig { returns(String) } attr_accessor :provider_type - sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } - def self.new(external_provider_id:, provider_type:); end + sig do + params(external_provider_id: String, provider_type: String).returns( + T.attached_class + ) + end + def self.new(external_provider_id:, provider_type:) + end - sig { override.returns({external_provider_id: String, provider_type: String}) } - def to_hash; end + sig do + override.returns( + { external_provider_id: String, provider_type: String } + ) + end + def to_hash + end end end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -526,28 +580,37 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Hierarchy < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } @@ -563,8 +626,10 @@ module Orb # The hierarchical relationships for this customer. sig do - params(child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)) - .returns(T.attached_class) + params( + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + ).returns(T.attached_class) end def self.new( # A list of child customer IDs to add to the hierarchy. The desired child @@ -573,11 +638,19 @@ module Orb # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. parent_customer_id: nil - ); end + ) + end + sig do - override.returns({child_customer_ids: T::Array[String], parent_customer_id: T.nilable(String)}) + override.returns( + { + child_customer_ids: T::Array[String], + parent_customer_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end # This is used for creating charges or invoices in an external system via Orb. @@ -590,31 +663,65 @@ module Orb module PaymentProvider extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerUpdateParams::PaymentProvider) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - QUICKBOOKS = T.let(:quickbooks, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) - BILL_COM = T.let(:"bill.com", Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) - STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) - STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) - NETSUITE = T.let(:netsuite, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + QUICKBOOKS = + T.let( + :quickbooks, + Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol + ) + BILL_COM = + T.let( + :"bill.com", + Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol + ) + STRIPE_CHARGE = + T.let( + :stripe_charge, + Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol + ) + STRIPE_INVOICE = + T.let( + :stripe_invoice, + Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::CustomerUpdateParams::PaymentProvider::TaggedSymbol] + ) + end + def self.values + end end class ReportingConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } - def self.new(exempt:); end + def self.new(exempt:) + end - sig { override.returns({exempt: T::Boolean}) } - def to_hash; end + sig { override.returns({ exempt: T::Boolean }) } + def to_hash + end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -641,31 +748,48 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) end - def self.new(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end module TaxConfiguration extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Avalara, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar + ) + end + class Avalara < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -676,10 +800,18 @@ module Orb attr_accessor :tax_exemption_code sig do - params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) - .returns(T.attached_class) + params( + tax_exempt: T::Boolean, + tax_exemption_code: T.nilable(String), + tax_provider: Symbol + ).returns(T.attached_class) + end + def self.new( + tax_exempt:, + tax_exemption_code: nil, + tax_provider: :avalara + ) end - def self.new(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end sig do override.returns( @@ -690,37 +822,50 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Taxjar < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :tax_exempt sig { returns(Symbol) } attr_accessor :tax_provider - sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } - def self.new(tax_exempt:, tax_provider: :taxjar); end + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :taxjar) + end - sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } - def to_hash; end + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end end sig do - override - .returns( - [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar] - ) + override.returns( + T::Array[Orb::CustomerUpdateParams::TaxConfiguration::Variants] + ) + end + def self.variants end - def self.variants; end end class TaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::CustomerUpdateParams::TaxID::Country::OrSymbol) } attr_accessor :country - sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol) } + sig { returns(Orb::CustomerUpdateParams::TaxID::Type::OrSymbol) } attr_accessor :type sig { returns(String) } @@ -833,195 +978,387 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, + country: Orb::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::CustomerUpdateParams::TaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, - type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, - value: String - } - ) + override.returns( + { + country: Orb::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::CustomerUpdateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerUpdateParams::TaxID::Country) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol]) } - def self.values; end + AD = + T.let(:AD, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AE = + T.let(:AE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AR = + T.let(:AR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AT = + T.let(:AT, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AU = + T.let(:AU, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BE = + T.let(:BE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BG = + T.let(:BG, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BH = + T.let(:BH, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BO = + T.let(:BO, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BR = + T.let(:BR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CA = + T.let(:CA, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CH = + T.let(:CH, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CL = + T.let(:CL, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CN = + T.let(:CN, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CO = + T.let(:CO, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CR = + T.let(:CR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CY = + T.let(:CY, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CZ = + T.let(:CZ, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DE = + T.let(:DE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DK = + T.let(:DK, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EE = + T.let(:EE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DO = + T.let(:DO, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EC = + T.let(:EC, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EG = + T.let(:EG, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ES = + T.let(:ES, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EU = + T.let(:EU, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + FI = + T.let(:FI, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + FR = + T.let(:FR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GB = + T.let(:GB, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GE = + T.let(:GE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GR = + T.let(:GR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HK = + T.let(:HK, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HR = + T.let(:HR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HU = + T.let(:HU, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ID = + T.let(:ID, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IE = + T.let(:IE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IL = + T.let(:IL, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IN = + T.let(:IN, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IS = + T.let(:IS, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IT = + T.let(:IT, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + JP = + T.let(:JP, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KE = + T.let(:KE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KR = + T.let(:KR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KZ = + T.let(:KZ, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LI = + T.let(:LI, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LT = + T.let(:LT, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LU = + T.let(:LU, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LV = + T.let(:LV, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MT = + T.let(:MT, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MX = + T.let(:MX, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MY = + T.let(:MY, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NG = + T.let(:NG, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NL = + T.let(:NL, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NO = + T.let(:NO, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NZ = + T.let(:NZ, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + OM = + T.let(:OM, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PE = + T.let(:PE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PH = + T.let(:PH, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PL = + T.let(:PL, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PT = + T.let(:PT, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RO = + T.let(:RO, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RS = + T.let(:RS, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RU = + T.let(:RU, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SA = + T.let(:SA, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SE = + T.let(:SE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SG = + T.let(:SG, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SI = + T.let(:SI, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SK = + T.let(:SK, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SV = + T.let(:SV, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TH = + T.let(:TH, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TR = + T.let(:TR, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TW = + T.let(:TW, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + UA = + T.let(:UA, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + US = + T.let(:US, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + UY = + T.let(:UY, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + VE = + T.let(:VE, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + VN = + T.let(:VN, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ZA = + T.let(:ZA, Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::CustomerUpdateParams::TaxID::Country::TaggedSymbol] + ) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::CustomerUpdateParams::TaxID::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol]) } - def self.values; end + AD_NRT = + T.let(:ad_nrt, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AE_TRN = + T.let(:ae_trn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AR_CUIT = + T.let( + :ar_cuit, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + EU_VAT = + T.let(:eu_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AU_ABN = + T.let(:au_abn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AU_ARN = + T.let(:au_arn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BG_UIC = + T.let(:bg_uic, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BH_VAT = + T.let(:bh_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BO_TIN = + T.let(:bo_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BR_CNPJ = + T.let( + :br_cnpj, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + BR_CPF = + T.let(:br_cpf, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_BN = + T.let(:ca_bn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_GST_HST = + T.let( + :ca_gst_hst, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_BC = + T.let( + :ca_pst_bc, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_MB = + T.let( + :ca_pst_mb, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + CA_PST_SK = + T.let( + :ca_pst_sk, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + CA_QST = + T.let(:ca_qst, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CH_VAT = + T.let(:ch_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CL_TIN = + T.let(:cl_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CN_TIN = + T.let(:cn_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CO_NIT = + T.let(:co_nit, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CR_TIN = + T.let(:cr_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + DO_RCN = + T.let(:do_rcn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EC_RUC = + T.let(:ec_ruc, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EG_TIN = + T.let(:eg_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ES_CIF = + T.let(:es_cif, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = + T.let( + :eu_oss_vat, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + GB_VAT = + T.let(:gb_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + GE_VAT = + T.let(:ge_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + HK_BR = + T.let(:hk_br, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + HU_TIN = + T.let(:hu_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ID_NPWP = + T.let( + :id_npwp, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + IL_VAT = + T.let(:il_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + IN_GST = + T.let(:in_gst, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + IS_VAT = + T.let(:is_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_CN = + T.let(:jp_cn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_RN = + T.let(:jp_rn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_TRN = + T.let(:jp_trn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KE_PIN = + T.let(:ke_pin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KR_BRN = + T.let(:kr_brn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KZ_BIN = + T.let(:kz_bin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + LI_UID = + T.let(:li_uid, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MX_RFC = + T.let(:mx_rfc, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_FRP = + T.let(:my_frp, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_ITN = + T.let(:my_itn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_SST = + T.let(:my_sst, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NG_TIN = + T.let(:ng_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NO_VAT = + T.let(:no_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NO_VOEC = + T.let( + :no_voec, + Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol + ) + NZ_GST = + T.let(:nz_gst, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + OM_VAT = + T.let(:om_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + PE_RUC = + T.let(:pe_ruc, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + PH_TIN = + T.let(:ph_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RO_TIN = + T.let(:ro_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RS_PIB = + T.let(:rs_pib, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RU_INN = + T.let(:ru_inn, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RU_KPP = + T.let(:ru_kpp, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SA_VAT = + T.let(:sa_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SG_GST = + T.let(:sg_gst, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SG_UEN = + T.let(:sg_uen, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SI_TIN = + T.let(:si_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SV_NIT = + T.let(:sv_nit, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TH_VAT = + T.let(:th_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TR_TIN = + T.let(:tr_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TW_VAT = + T.let(:tw_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + UA_VAT = + T.let(:ua_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + US_EIN = + T.let(:us_ein, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + UY_RUC = + T.let(:uy_ruc, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + VE_RIF = + T.let(:ve_rif, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + VN_TIN = + T.let(:vn_tin, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ZA_VAT = + T.let(:za_vat, Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::CustomerUpdateParams::TaxID::Type::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/balance_transaction_create_params.rbi b/rbi/orb/models/customers/balance_transaction_create_params.rbi index e5619d57..f45963bc 100644 --- a/rbi/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/orb/models/customers/balance_transaction_create_params.rbi @@ -7,10 +7,16 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :amount - sig { returns(Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol) } + sig do + returns( + Orb::Customers::BalanceTransactionCreateParams::Type::OrSymbol + ) + end attr_accessor :type # An optional description that can be specified around this entry. @@ -20,11 +26,11 @@ module Orb sig do params( amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, + type: + Orb::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( amount:, @@ -32,32 +38,55 @@ module Orb # An optional description that can be specified around this entry. description: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, - description: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: String, + type: + Orb::Customers::BalanceTransactionCreateParams::Type::OrSymbol, + description: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module Type extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::BalanceTransactionCreateParams::Type + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) - DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) + INCREMENT = + T.let( + :increment, + Orb::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/balance_transaction_create_response.rbi b/rbi/orb/models/customers/balance_transaction_create_response.rbi index 2db6d277..960d33b4 100644 --- a/rbi/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_create_response.rbi @@ -4,11 +4,17 @@ module Orb module Models module Customers class BalanceTransactionCreateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique id for this transaction. sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + end attr_accessor :action # The value of the amount changed in the transaction. @@ -19,16 +25,22 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote + ) + ) + end attr_reader :credit_note sig do params( - credit_note: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Internal::AnyHash) - ) - ) - .void + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote::OrHash + ) + ).void end attr_writer :credit_note @@ -41,16 +53,22 @@ module Orb sig { returns(String) } attr_accessor :ending_balance - sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice + ) + ) + end attr_reader :invoice sig do params( - invoice: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Internal::AnyHash) - ) - ) - .void + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice::OrHash + ) + ).void end attr_writer :invoice @@ -59,27 +77,34 @@ module Orb sig { returns(String) } attr_accessor :starting_balance - sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol + ) + end attr_accessor :type sig do params( id: String, - action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::OrSymbol, + action: + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Internal::AnyHash) - ), + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote::OrHash + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Internal::AnyHash) - ), + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice::OrHash + ), starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::OrSymbol - ) - .returns(T.attached_class) + type: + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::OrSymbol + ).returns(T.attached_class) end def self.new( # A unique id for this transaction. @@ -100,39 +125,63 @@ module Orb # customer's currency. starting_balance:, type: - ); end + ) + end + sig do - override - .returns( - { - id: String, - action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol - } - ) + override.returns( + { + id: String, + action: + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol, + amount: String, + created_at: Time, + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote + ), + description: T.nilable(String), + ending_balance: String, + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice + ), + starting_balance: String, + type: + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Action extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } APPLIED_TO_INVOICE = - T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :applied_to_invoice, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) MANUAL_ADJUSTMENT = - T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :manual_adjustment, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) PRORATED_REFUND = - T.let(:prorated_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :prorated_refund, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) REVERT_PRORATED_REFUND = T.let( :revert_prorated_refund, @@ -149,17 +198,35 @@ module Orb Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol ) CREDIT_NOTE_VOIDED = - T.let(:credit_note_voided, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :credit_note_voided, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) OVERPAYMENT_REFUND = - T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :overpayment_refund, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) EXTERNAL_PAYMENT = - T.let(:external_payment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + T.let( + :external_payment, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ] + ) + end + def self.values + end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the Credit note sig { returns(String) } attr_accessor :id @@ -168,12 +235,17 @@ module Orb def self.new( # The id of the Credit note id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end class Invoice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Invoice id sig { returns(String) } attr_accessor :id @@ -182,25 +254,46 @@ module Orb def self.new( # The Invoice id id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end module Type extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::BalanceTransactionCreateResponse::Type + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } INCREMENT = - T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + T.let( + :increment, + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol + ) DECREMENT = - T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + T.let( + :decrement, + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/balance_transaction_list_params.rbi b/rbi/orb/models/customers/balance_transaction_list_params.rbi index 1cf1ff5a..bb1d9a05 100644 --- a/rbi/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/orb/models/customers/balance_transaction_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -39,9 +41,8 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -54,22 +55,24 @@ module Orb operation_time_lt: nil, operation_time_lte: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - cursor: T.nilable(String), - limit: Integer, - operation_time_gt: T.nilable(Time), - operation_time_gte: T.nilable(Time), - operation_time_lt: T.nilable(Time), - operation_time_lte: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + operation_time_gt: T.nilable(Time), + operation_time_gte: T.nilable(Time), + operation_time_lt: T.nilable(Time), + operation_time_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customers/balance_transaction_list_response.rbi b/rbi/orb/models/customers/balance_transaction_list_response.rbi index fce9b590..695e3f54 100644 --- a/rbi/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_list_response.rbi @@ -4,11 +4,17 @@ module Orb module Models module Customers class BalanceTransactionListResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique id for this transaction. sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) + end attr_accessor :action # The value of the amount changed in the transaction. @@ -19,16 +25,22 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::CreditNote + ) + ) + end attr_reader :credit_note sig do params( - credit_note: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Internal::AnyHash) - ) - ) - .void + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::CreditNote::OrHash + ) + ).void end attr_writer :credit_note @@ -41,14 +53,22 @@ module Orb sig { returns(String) } attr_accessor :ending_balance - sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::Invoice + ) + ) + end attr_reader :invoice sig do params( - invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Internal::AnyHash)) - ) - .void + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::Invoice::OrHash + ) + ).void end attr_writer :invoice @@ -57,25 +77,34 @@ module Orb sig { returns(String) } attr_accessor :starting_balance - sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol + ) + end attr_accessor :type sig do params( id: String, - action: Orb::Models::Customers::BalanceTransactionListResponse::Action::OrSymbol, + action: + Orb::Models::Customers::BalanceTransactionListResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable( - T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Internal::AnyHash) - ), + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::CreditNote::OrHash + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Internal::AnyHash)), + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::Invoice::OrHash + ), starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionListResponse::Type::OrSymbol - ) - .returns(T.attached_class) + type: + Orb::Models::Customers::BalanceTransactionListResponse::Type::OrSymbol + ).returns(T.attached_class) end def self.new( # A unique id for this transaction. @@ -96,60 +125,108 @@ module Orb # customer's currency. starting_balance:, type: - ); end + ) + end + sig do - override - .returns( - { - id: String, - action: Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol - } - ) + override.returns( + { + id: String, + action: + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol, + amount: String, + created_at: Time, + credit_note: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::CreditNote + ), + description: T.nilable(String), + ending_balance: String, + invoice: + T.nilable( + Orb::Models::Customers::BalanceTransactionListResponse::Invoice + ), + starting_balance: String, + type: + Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Action extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Action) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::BalanceTransactionListResponse::Action + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } APPLIED_TO_INVOICE = - T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :applied_to_invoice, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) MANUAL_ADJUSTMENT = - T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :manual_adjustment, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) PRORATED_REFUND = - T.let(:prorated_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :prorated_refund, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) REVERT_PRORATED_REFUND = T.let( :revert_prorated_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol ) RETURN_FROM_VOIDING = - T.let(:return_from_voiding, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :return_from_voiding, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) CREDIT_NOTE_APPLIED = - T.let(:credit_note_applied, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :credit_note_applied, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) CREDIT_NOTE_VOIDED = - T.let(:credit_note_voided, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :credit_note_voided, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) OVERPAYMENT_REFUND = - T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :overpayment_refund, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) EXTERNAL_PAYMENT = - T.let(:external_payment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + T.let( + :external_payment, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ] + ) + end + def self.values + end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the Credit note sig { returns(String) } attr_accessor :id @@ -158,12 +235,17 @@ module Orb def self.new( # The id of the Credit note id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end class Invoice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Invoice id sig { returns(String) } attr_accessor :id @@ -172,23 +254,46 @@ module Orb def self.new( # The Invoice id id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end module Type extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::BalanceTransactionListResponse::Type + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) - DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) + INCREMENT = + T.let( + :increment, + Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/orb/models/customers/cost_list_by_external_id_params.rbi index 748c0a72..93e02548 100644 --- a/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/cost_list_by_external_id_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } attr_accessor :currency @@ -23,7 +25,13 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::CostListByExternalIDParams::ViewMode::OrSymbol + ) + ) + end attr_accessor :view_mode sig do @@ -31,10 +39,12 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + view_mode: + T.nilable( + Orb::Customers::CostListByExternalIDParams::ViewMode::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The currency or custom pricing unit to use. @@ -49,20 +59,25 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: + T.nilable( + Orb::Customers::CostListByExternalIDParams::ViewMode::OrSymbol + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or @@ -72,15 +87,34 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::CostListByExternalIDParams::ViewMode + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) + PERIODIC = + T.let( + :periodic, + Orb::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol + ) CUMULATIVE = - T.let(:cumulative, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) + T.let( + :cumulative, + Orb::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/orb/models/customers/cost_list_by_external_id_response.rbi index a23b2e35..c6f7c605 100644 --- a/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/cost_list_by_external_id_response.rbi @@ -4,22 +4,49 @@ module Orb module Models module Customers class CostListByExternalIDResponse < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + ) + end attr_accessor :data sig do params( - data: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + data: + T::Array[ + Orb::Models::Customers::CostListByExternalIDResponse::Data::OrHash + ] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]}) } - def to_hash; end + sig do + override.returns( + { + data: + T::Array[ + Orb::Models::Customers::CostListByExternalIDResponse::Data + ] + } + ) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[ + Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost + ] + ) + end attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. @@ -38,13 +65,15 @@ module Orb sig do params( - per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost, Orb::Internal::AnyHash)], + per_price_costs: + T::Array[ + Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost::OrHash + ], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( per_price_costs:, @@ -54,54 +83,61 @@ module Orb timeframe_start:, # Total costs for the timeframe, including any minimums and discounts. total: - ); end + ) + end + sig do - override - .returns( - { - per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - ) + override.returns( + { + per_price_costs: + T::Array[ + Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost + ], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) + end + def to_hash end - def to_hash; end class PerPriceCost < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price object sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -125,43 +161,42 @@ module Orb sig do params( - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), price_id: String, subtotal: String, total: String, quantity: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price object @@ -174,49 +209,52 @@ module Orb total:, # The price's quantity for the timeframe quantity: nil - ); end + ) + end + sig do - override - .returns( - { - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customers/cost_list_params.rbi b/rbi/orb/models/customers/cost_list_params.rbi index 3bf1d490..64b68fc8 100644 --- a/rbi/orb/models/customers/cost_list_params.rbi +++ b/rbi/orb/models/customers/cost_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } attr_accessor :currency @@ -23,7 +25,9 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol)) } + sig do + returns(T.nilable(Orb::Customers::CostListParams::ViewMode::OrSymbol)) + end attr_accessor :view_mode sig do @@ -31,10 +35,10 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + view_mode: + T.nilable(Orb::Customers::CostListParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The currency or custom pricing unit to use. @@ -49,20 +53,23 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: + T.nilable(Orb::Customers::CostListParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or @@ -71,14 +78,30 @@ module Orb module ViewMode extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListParams::ViewMode) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Customers::CostListParams::ViewMode) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) - CUMULATIVE = T.let(:cumulative, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) + PERIODIC = + T.let( + :periodic, + Orb::Customers::CostListParams::ViewMode::TaggedSymbol + ) + CUMULATIVE = + T.let( + :cumulative, + Orb::Customers::CostListParams::ViewMode::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Customers::CostListParams::ViewMode::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/cost_list_response.rbi b/rbi/orb/models/customers/cost_list_response.rbi index 4f789455..829eafae 100644 --- a/rbi/orb/models/customers/cost_list_response.rbi +++ b/rbi/orb/models/customers/cost_list_response.rbi @@ -4,20 +4,40 @@ module Orb module Models module Customers class CostListResponse < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) + end attr_accessor :data sig do - params(data: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + data: + T::Array[Orb::Models::Customers::CostListResponse::Data::OrHash] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::Customers::CostListResponse::Data]}) } - def to_hash; end + sig do + override.returns( + { data: T::Array[Orb::Models::Customers::CostListResponse::Data] } + ) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[ + Orb::Models::Customers::CostListResponse::Data::PerPriceCost + ] + ) + end attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. @@ -36,13 +56,15 @@ module Orb sig do params( - per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data::PerPriceCost, Orb::Internal::AnyHash)], + per_price_costs: + T::Array[ + Orb::Models::Customers::CostListResponse::Data::PerPriceCost::OrHash + ], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( per_price_costs:, @@ -52,54 +74,61 @@ module Orb timeframe_start:, # Total costs for the timeframe, including any minimums and discounts. total: - ); end + ) + end + sig do - override - .returns( - { - per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - ) + override.returns( + { + per_price_costs: + T::Array[ + Orb::Models::Customers::CostListResponse::Data::PerPriceCost + ], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) + end + def to_hash end - def to_hash; end class PerPriceCost < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price object sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -123,43 +152,42 @@ module Orb sig do params( - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), price_id: String, subtotal: String, total: String, quantity: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price object @@ -172,49 +200,52 @@ module Orb total:, # The price's quantity for the timeframe quantity: nil - ); end + ) + end + sig do - override - .returns( - { - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/orb/models/customers/credit_list_by_external_id_params.rbi index 3a9e5e6f..50f98cbb 100644 --- a/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credit_list_by_external_id_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } attr_accessor :currency @@ -37,9 +39,8 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The ledger currency or custom pricing unit to use. @@ -53,20 +54,22 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customers/credit_list_by_external_id_response.rbi b/rbi/orb/models/customers/credit_list_by_external_id_response.rbi index dcfa7abf..78d797d9 100644 --- a/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credit_list_by_external_id_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Customers class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -22,7 +24,11 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_cost_basis - sig { returns(Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig do @@ -33,9 +39,9 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::OrSymbol - ) - .returns(T.attached_class) + status: + Orb::Models::Customers::CreditListByExternalIDResponse::Status::OrSymbol + ).returns(T.attached_class) end def self.new( id:, @@ -49,34 +55,54 @@ module Orb end sig do - override - .returns( - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol - } - ) + override.returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: + Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::CreditListByExternalIDResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol + ) PENDING_PAYMENT = - T.let(:pending_payment, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) + T.let( + :pending_payment, + Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/credit_list_params.rbi b/rbi/orb/models/customers/credit_list_params.rbi index e64a06b2..e4d0a347 100644 --- a/rbi/orb/models/customers/credit_list_params.rbi +++ b/rbi/orb/models/customers/credit_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } attr_accessor :currency @@ -37,9 +39,8 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The ledger currency or custom pricing unit to use. @@ -53,20 +54,22 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/customers/credit_list_response.rbi b/rbi/orb/models/customers/credit_list_response.rbi index cc3d88db..9f06daf3 100644 --- a/rbi/orb/models/customers/credit_list_response.rbi +++ b/rbi/orb/models/customers/credit_list_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Customers class CreditListResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -22,7 +24,11 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_cost_basis - sig { returns(Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig do @@ -34,8 +40,7 @@ module Orb maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), status: Orb::Models::Customers::CreditListResponse::Status::OrSymbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -49,33 +54,51 @@ module Orb end sig do - override - .returns( - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol - } - ) + override.returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: + Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::CreditListResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol + ) PENDING_PAYMENT = - T.let(:pending_payment, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) + T.let( + :pending_payment, + Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index 794f4297..9b40c2a9 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -8,12 +8,18 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } attr_accessor :amount - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol) } + sig do + returns( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol + ) + end attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a @@ -40,19 +46,22 @@ module Orb # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings + ) + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.nilable( - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::OrHash ) - ) - ) - .void + ).void end attr_writer :invoice_settings @@ -80,7 +89,9 @@ module Orb # Can only be specified when `entry_type=void`. The reason for the void. sig do returns( - T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol) + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol + ) ) end attr_accessor :void_reason @@ -88,25 +99,26 @@ module Orb sig do params( amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable( - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash - ) - ), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The number of credits to effect. Note that this is required for increment, @@ -146,52 +158,70 @@ module Orb # Can only be specified when `entry_type=void`. The reason for the void. void_reason: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, - currency: T.nilable(String), - description: T.nilable(String), - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: Float, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, + currency: T.nilable(String), + description: T.nilable(String), + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + per_unit_cost_basis: T.nilable(String), + target_expiry_date: Date, + block_id: String, + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module EntryType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } AMENDMENT = T.let( :amendment, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -225,8 +255,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -241,19 +270,21 @@ module Orb # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # Can only be specified when `entry_type=void`. The reason for the void. @@ -261,22 +292,29 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } REFUND = T.let( :refund, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 0a90f31f..e6623eae 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -9,7 +9,22 @@ module Orb module LedgerCreateEntryByExternalIDResponse extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment + ) + end + class Increment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -19,34 +34,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer::OrHash + ).void end attr_writer :customer @@ -84,24 +101,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -121,30 +134,38 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -155,10 +176,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -169,21 +194,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -191,7 +231,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -207,18 +250,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Decrement < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -228,34 +273,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer::OrHash + ).void end attr_writer :customer @@ -302,18 +349,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -321,8 +365,7 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -345,33 +388,41 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -382,10 +433,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -396,21 +451,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -418,7 +488,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -434,18 +507,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class ExpirationChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -464,12 +539,9 @@ module Orb sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock::OrHash + ).void end attr_writer :credit_block @@ -485,12 +557,9 @@ module Orb sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer::OrHash + ).void end attr_writer :customer @@ -531,25 +600,21 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -570,31 +635,39 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -605,10 +678,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -619,21 +696,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -641,7 +733,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -657,18 +752,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class CreditBlockExpiry < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -687,12 +784,9 @@ module Orb sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash + ).void end attr_writer :credit_block @@ -708,12 +802,9 @@ module Orb sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer::OrHash + ).void end attr_writer :customer @@ -751,24 +842,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -788,30 +875,38 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -822,10 +917,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -836,21 +935,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -858,7 +972,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -874,18 +991,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Void < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -895,34 +1014,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer::OrHash + ).void end attr_writer :customer @@ -966,26 +1087,22 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1007,32 +1124,40 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1043,10 +1168,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1057,28 +1186,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1093,16 +1242,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class VoidInitiated < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1121,29 +1274,27 @@ module Orb sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer::OrHash + ).void end attr_writer :customer @@ -1190,18 +1341,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1209,8 +1357,7 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1233,33 +1380,41 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1270,10 +1425,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1284,21 +1443,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -1306,7 +1480,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1322,18 +1499,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Amendment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1343,34 +1522,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer::OrHash + ).void end attr_writer :customer @@ -1408,24 +1589,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1445,30 +1622,38 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1479,10 +1664,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1493,21 +1682,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -1515,7 +1719,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1531,24 +1738,26 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end sig do - override - .returns( - [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi index 379b683f..54a1677b 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -8,12 +8,18 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } attr_accessor :amount - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol) } + sig do + returns( + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol + ) + end attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a @@ -40,16 +46,22 @@ module Orb # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings + ) + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.nilable( - T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Internal::AnyHash) - ) - ) - .void + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::OrHash + ) + ).void end attr_writer :invoice_settings @@ -75,28 +87,38 @@ module Orb attr_accessor :block_id # Can only be specified when `entry_type=void`. The reason for the void. - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol + ) + ) + end attr_accessor :void_reason sig do params( amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable( - T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Internal::AnyHash) - ), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The number of credits to effect. Note that this is required for increment, @@ -136,47 +158,70 @@ module Orb # Can only be specified when `entry_type=void`. The reason for the void. void_reason: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, - currency: T.nilable(String), - description: T.nilable(String), - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: Float, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, + currency: T.nilable(String), + description: T.nilable(String), + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + per_unit_cost_basis: T.nilable(String), + target_expiry_date: Date, + block_id: String, + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module EntryType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } AMENDMENT = - T.let(:amendment, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) + T.let( + :amendment, + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -210,8 +255,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -226,19 +270,21 @@ module Orb # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # Can only be specified when `entry_type=void`. The reason for the void. @@ -246,17 +292,29 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } REFUND = - T.let(:refund, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol) + T.let( + :refund, + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi index b219c4ed..cae52968 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -9,7 +9,22 @@ module Orb module LedgerCreateEntryResponse extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment + ) + end + class Increment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -19,34 +34,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer::OrHash + ).void end attr_writer :customer @@ -56,7 +73,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -80,24 +101,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -117,30 +134,38 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -151,10 +176,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -165,28 +194,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -201,16 +250,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Decrement < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -220,34 +273,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer::OrHash + ).void end attr_writer :customer @@ -257,7 +312,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -290,18 +349,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -309,8 +365,7 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -333,33 +388,41 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -370,10 +433,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -384,28 +451,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -420,16 +507,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class ExpirationChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -439,34 +530,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer::OrHash + ).void end attr_writer :customer @@ -507,25 +600,21 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -546,31 +635,39 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -581,10 +678,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -595,28 +696,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -631,16 +752,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class CreditBlockExpiry < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -650,34 +775,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer::OrHash + ).void end attr_writer :customer @@ -715,24 +842,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -752,30 +875,38 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -786,10 +917,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -800,28 +935,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -836,16 +991,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Void < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -855,31 +1014,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer + ) + end attr_reader :customer sig do params( - customer: T.any(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, Orb::Internal::AnyHash) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer::OrHash + ).void end attr_writer :customer @@ -889,7 +1053,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -919,23 +1087,22 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock::OrHash, currency: String, - customer: T.any(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, Orb::Internal::AnyHash), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -957,32 +1124,40 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -993,10 +1168,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1007,28 +1186,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1043,16 +1242,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class VoidInitiated < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1062,34 +1265,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer::OrHash + ).void end attr_writer :customer @@ -1136,18 +1341,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1155,8 +1357,7 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1179,33 +1380,41 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1216,10 +1425,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1230,28 +1443,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1266,16 +1499,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Amendment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1285,34 +1522,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer::OrHash + ).void end attr_writer :customer @@ -1322,7 +1561,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -1346,24 +1589,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1383,30 +1622,38 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1417,10 +1664,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1431,28 +1682,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1467,22 +1738,26 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end sig do - override - .returns( - [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi b/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi index 3961ce11..ec3eba4f 100644 --- a/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -29,10 +31,22 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :cursor - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol + ) + ) + end attr_accessor :entry_status - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol + ) + ) + end attr_accessor :entry_type # The number of items to fetch. Defaults to 20. @@ -53,13 +67,18 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol + ), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -77,87 +96,126 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), - limit: Integer, - minimum_amount: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol + ), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = T.let( :committed, - Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol ) PENDING = - T.let(:pending, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol) + T.let( + :pending, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end module EntryType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } INCREMENT = - T.let(:increment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + T.let( + :increment, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) DECREMENT = - T.let(:decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + T.let( + :decrement, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) EXPIRATION_CHANGE = T.let( :expiration_change, - Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol ) CREDIT_BLOCK_EXPIRY = T.let( :credit_block_expiry, - Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol ) VOID = - T.let(:void, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + T.let( + :void, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) VOID_INITIATED = T.let( :void_initiated, - Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol ) AMENDMENT = - T.let(:amendment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + T.let( + :amendment, + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index 859a2fda..e141a306 100644 --- a/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -9,7 +9,22 @@ module Orb module LedgerListByExternalIDResponse extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment + ) + end + class Increment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -19,34 +34,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer::OrHash + ).void end attr_writer :customer @@ -84,24 +101,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -121,30 +134,38 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -155,10 +176,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -169,28 +194,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -205,16 +250,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Decrement < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -224,34 +273,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer::OrHash + ).void end attr_writer :customer @@ -298,18 +349,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -317,8 +365,7 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -341,33 +388,41 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -378,10 +433,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -392,28 +451,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -428,16 +507,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class ExpirationChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -447,34 +530,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer::OrHash + ).void end attr_writer :customer @@ -515,25 +600,21 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -554,31 +635,39 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -589,10 +678,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -603,21 +696,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -625,7 +733,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -641,18 +752,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class CreditBlockExpiry < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -662,34 +775,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer::OrHash + ).void end attr_writer :customer @@ -727,24 +842,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -764,30 +875,38 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -798,10 +917,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -812,21 +935,36 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus @@ -834,7 +972,10 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus) + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -850,18 +991,20 @@ module Orb ) sig do - override - .returns( - T::Array[ - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Void < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -871,34 +1014,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer::OrHash + ).void end attr_writer :customer @@ -908,7 +1053,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -938,26 +1087,22 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -979,32 +1124,40 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1015,10 +1168,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1029,28 +1186,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1065,16 +1242,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class VoidInitiated < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1084,34 +1265,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer::OrHash + ).void end attr_writer :customer @@ -1158,18 +1341,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1177,8 +1357,7 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1201,33 +1380,41 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1238,10 +1425,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1252,28 +1443,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1288,16 +1499,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Amendment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1307,34 +1522,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer::OrHash + ).void end attr_writer :customer @@ -1372,24 +1589,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1409,30 +1622,38 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1443,10 +1664,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1457,28 +1682,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1493,22 +1738,26 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end sig do - override - .returns( - [Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/customers/credits/ledger_list_params.rbi b/rbi/orb/models/customers/credits/ledger_list_params.rbi index 1fce087c..93cd1c96 100644 --- a/rbi/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -29,10 +31,22 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :cursor - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol + ) + ) + end attr_accessor :entry_status - sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryType::OrSymbol + ) + ) + end attr_accessor :entry_type # The number of items to fetch. Defaults to 20. @@ -53,13 +67,18 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryType::OrSymbol + ), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -77,62 +96,126 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), - limit: Integer, - minimum_amount: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryType::OrSymbol + ), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerListParams::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = - T.let(:committed, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) - PENDING = T.let(:pending, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) + T.let( + :committed, + Orb::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol + ] + ) + end + def self.values + end end module EntryType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::LedgerListParams::EntryType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - INCREMENT = T.let(:increment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) - DECREMENT = T.let(:decrement, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + INCREMENT = + T.let( + :increment, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) EXPIRATION_CHANGE = - T.let(:expiration_change, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + T.let( + :expiration_change, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) CREDIT_BLOCK_EXPIRY = - T.let(:credit_block_expiry, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) - VOID = T.let(:void, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + T.let( + :credit_block_expiry, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) + VOID = + T.let( + :void, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) VOID_INITIATED = - T.let(:void_initiated, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) - AMENDMENT = T.let(:amendment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + T.let( + :void_initiated, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) + AMENDMENT = + T.let( + :amendment, + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/customers/credits/ledger_list_response.rbi b/rbi/orb/models/customers/credits/ledger_list_response.rbi index eb11186a..d323fd8e 100644 --- a/rbi/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/orb/models/customers/credits/ledger_list_response.rbi @@ -9,7 +9,22 @@ module Orb module LedgerListResponse extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment, + Orb::Models::Customers::Credits::LedgerListResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListResponse::Void, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListResponse::Amendment + ) + end + class Increment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -19,28 +34,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, Orb::Internal::AnyHash) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, Orb::Internal::AnyHash) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash + ).void end attr_writer :customer @@ -50,7 +73,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -74,18 +101,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, Orb::Internal::AnyHash), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash, currency: String, - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, Orb::Internal::AnyHash), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -105,30 +134,38 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -139,10 +176,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -153,28 +194,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -183,19 +244,26 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol ) PENDING = - T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol) + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Decrement < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -205,28 +273,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, Orb::Internal::AnyHash) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer + ) + end attr_reader :customer sig do params( - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, Orb::Internal::AnyHash) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash + ).void end attr_writer :customer @@ -236,7 +312,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -269,12 +349,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, Orb::Internal::AnyHash), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash, currency: String, - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, Orb::Internal::AnyHash), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -282,8 +365,7 @@ module Orb invoice_id: T.nilable(String), price_id: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -306,33 +388,41 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -343,10 +433,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -357,28 +451,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -387,19 +501,26 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol ) PENDING = - T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol) + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class ExpirationChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -409,34 +530,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash + ).void end attr_writer :customer @@ -446,7 +569,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -473,25 +600,21 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -512,31 +635,39 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -547,10 +678,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -561,28 +696,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -597,16 +752,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class CreditBlockExpiry < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -616,34 +775,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash + ).void end attr_writer :customer @@ -653,7 +814,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -677,24 +842,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -714,30 +875,38 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -748,10 +917,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -762,28 +935,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -798,16 +991,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Void < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -817,28 +1014,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, Orb::Internal::AnyHash) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer + ) + end attr_reader :customer sig do params( - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, Orb::Internal::AnyHash) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash + ).void end attr_writer :customer @@ -848,7 +1053,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -878,20 +1087,22 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, Orb::Internal::AnyHash), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash, currency: String, - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, Orb::Internal::AnyHash), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -913,32 +1124,40 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -949,10 +1168,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -963,44 +1186,76 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = - T.let(:committed, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol) + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol + ) PENDING = - T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol) + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class VoidInitiated < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1010,34 +1265,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer + ) + end attr_reader :customer sig do params( - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash + ).void end attr_writer :customer @@ -1047,7 +1304,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -1080,18 +1341,15 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock, - Orb::Internal::AnyHash - ), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash, currency: String, - customer: T.any( - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer, - Orb::Internal::AnyHash - ), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1099,8 +1357,7 @@ module Orb void_amount: Float, void_reason: T.nilable(String), entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1123,33 +1380,41 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1160,10 +1425,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1174,28 +1443,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1210,16 +1499,20 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Amendment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1229,28 +1522,36 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock + ) + end attr_reader :credit_block sig do params( - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, Orb::Internal::AnyHash) - ) - .void + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash + ).void end attr_writer :credit_block sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer + ) + end attr_reader :customer sig do params( - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, Orb::Internal::AnyHash) - ) - .void + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash + ).void end attr_writer :customer @@ -1260,7 +1561,11 @@ module Orb sig { returns(Float) } attr_accessor :ending_balance - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol) } + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol + ) + end attr_accessor :entry_status sig { returns(Symbol) } @@ -1284,18 +1589,20 @@ module Orb id: String, amount: Float, created_at: Time, - credit_block: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, Orb::Internal::AnyHash), + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash, currency: String, - customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, Orb::Internal::AnyHash), + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash, description: T.nilable(String), ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, entry_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1315,30 +1622,38 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - ) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock, + currency: String, + customer: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_hash; end class CreditBlock < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1349,10 +1664,14 @@ module Orb attr_accessor :per_unit_cost_basis sig do - params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) - .returns(T.attached_class) + params( + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, expiry_date:, per_unit_cost_basis:) end - def self.new(id:, expiry_date:, per_unit_cost_basis:); end sig do override.returns( @@ -1363,28 +1682,48 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Customer < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params( + id: String, + external_customer_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end module EntryStatus extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } COMMITTED = @@ -1393,25 +1732,32 @@ module Orb Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol ) PENDING = - T.let(:pending, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol) + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end sig do - override - .returns( - [Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi index 522f13d0..4c133c8b 100644 --- a/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount to increment when the threshold is reached. sig { returns(String) } attr_accessor :amount @@ -18,17 +20,18 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) } + sig do + returns( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash - ) - ) - .void + invoice_settings: + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -54,7 +57,9 @@ module Orb # The unit of expires_after. sig do returns( - T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol) + T.nilable( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol + ) ) end attr_accessor :expires_after_unit @@ -63,18 +68,18 @@ module Orb params( amount: String, currency: String, - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash - ), + invoice_settings: + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The amount to increment when the threshold is reached. @@ -98,26 +103,34 @@ module Orb # The unit of expires_after. expires_after_unit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: T.nilable(Time), - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: String, + currency: String, + invoice_settings: + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + active_from: T.nilable(Time), + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -148,8 +161,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -164,19 +176,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -184,27 +198,34 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index 91ce13eb..03948ee3 100644 --- a/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi @@ -5,6 +5,8 @@ module Orb module Customers module Credits class TopUpCreateByExternalIDResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -18,17 +20,18 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) } + sig do + returns( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - Orb::Internal::AnyHash - ) - ) - .void + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -61,16 +64,16 @@ module Orb id: String, amount: String, currency: String, - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - Orb::Internal::AnyHash - ), + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::OrSymbol) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::OrSymbol + ) + ).returns(T.attached_class) end def self.new( id:, @@ -91,27 +94,33 @@ module Orb expires_after: nil, # The unit of expires_after. expires_after_unit: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable( + override.returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol ) - } - ) + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -142,8 +151,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -158,19 +166,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -178,7 +188,12 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = @@ -193,12 +208,14 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_create_params.rbi b/rbi/orb/models/customers/credits/top_up_create_params.rbi index 794e129d..e96b3f64 100644 --- a/rbi/orb/models/customers/credits/top_up_create_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount to increment when the threshold is reached. sig { returns(String) } attr_accessor :amount @@ -18,14 +20,16 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) } + sig do + returns(Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Internal::AnyHash) - ) - .void + invoice_settings: + Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -49,22 +53,31 @@ module Orb attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol + ) + ) + end attr_accessor :expires_after_unit sig do params( amount: String, currency: String, - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Internal::AnyHash), + invoice_settings: + Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The amount to increment when the threshold is reached. @@ -88,26 +101,34 @@ module Orb # The unit of expires_after. expires_after_unit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: T.nilable(Time), - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: String, + currency: String, + invoice_settings: + Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + active_from: T.nilable(Time), + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -138,8 +159,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -154,19 +174,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -174,17 +196,34 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_create_response.rbi b/rbi/orb/models/customers/credits/top_up_create_response.rbi index d22c6145..979aafd9 100644 --- a/rbi/orb/models/customers/credits/top_up_create_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_create_response.rbi @@ -5,6 +5,8 @@ module Orb module Customers module Credits class TopUpCreateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -18,14 +20,18 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) } + sig do + returns( + Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Internal::AnyHash) - ) - .void + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -44,7 +50,13 @@ module Orb attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol + ) + ) + end attr_accessor :expires_after_unit sig do @@ -52,13 +64,16 @@ module Orb id: String, amount: String, currency: String, - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Internal::AnyHash), + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::OrSymbol) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::OrSymbol + ) + ).returns(T.attached_class) end def self.new( id:, @@ -79,25 +94,33 @@ module Orb expires_after: nil, # The unit of expires_after. expires_after_unit: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) - } - ) + override.returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: + Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol + ) + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -128,8 +151,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -144,19 +166,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -164,18 +188,34 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) + T.let( + :month, + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index 84ea9d12..16f47468 100644 --- a/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi @@ -8,20 +8,30 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :external_customer_id sig do params( external_customer_id: String, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(external_customer_id:, request_options: {}) end - def self.new(external_customer_id:, request_options: {}); end - sig { override.returns({external_customer_id: String, request_options: Orb::RequestOptions}) } - def to_hash; end + sig do + override.returns( + { + external_customer_id: String, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/customers/credits/top_up_delete_params.rbi b/rbi/orb/models/customers/credits/top_up_delete_params.rbi index ce0484f6..aa0106a0 100644 --- a/rbi/orb/models/customers/credits/top_up_delete_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_delete_params.rbi @@ -8,17 +8,27 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :customer_id sig do - params(customer_id: String, request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)) - .returns(T.attached_class) + params( + customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(customer_id:, request_options: {}) end - def self.new(customer_id:, request_options: {}); end - sig { override.returns({customer_id: String, request_options: Orb::RequestOptions}) } - def to_hash; end + sig do + override.returns( + { customer_id: String, request_options: Orb::RequestOptions } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi b/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi index 4588563c..90885f41 100644 --- a/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -24,9 +26,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -35,7 +36,9 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do override.returns( { @@ -45,7 +48,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end end diff --git a/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi b/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi index a4f0cc6b..053b1404 100644 --- a/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi @@ -5,6 +5,8 @@ module Orb module Customers module Credits class TopUpListByExternalIDResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -18,17 +20,18 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) } + sig do + returns( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - Orb::Internal::AnyHash - ) - ) - .void + invoice_settings: + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -49,7 +52,9 @@ module Orb # The unit of expires_after. sig do returns( - T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) + T.nilable( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) ) end attr_accessor :expires_after_unit @@ -59,16 +64,16 @@ module Orb id: String, amount: String, currency: String, - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - Orb::Internal::AnyHash - ), + invoice_settings: + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::OrSymbol) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::OrSymbol + ) + ).returns(T.attached_class) end def self.new( id:, @@ -89,25 +94,33 @@ module Orb expires_after: nil, # The unit of expires_after. expires_after_unit: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) - } - ) + override.returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -138,8 +151,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -154,19 +166,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -174,7 +188,12 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = @@ -189,12 +208,14 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/customers/credits/top_up_list_params.rbi b/rbi/orb/models/customers/credits/top_up_list_params.rbi index e4e6e3d2..2ab43e11 100644 --- a/rbi/orb/models/customers/credits/top_up_list_params.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_params.rbi @@ -8,6 +8,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -24,9 +26,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -35,7 +36,9 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do override.returns( { @@ -45,7 +48,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end end diff --git a/rbi/orb/models/customers/credits/top_up_list_response.rbi b/rbi/orb/models/customers/credits/top_up_list_response.rbi index 528fb016..eca1df88 100644 --- a/rbi/orb/models/customers/credits/top_up_list_response.rbi +++ b/rbi/orb/models/customers/credits/top_up_list_response.rbi @@ -5,6 +5,8 @@ module Orb module Customers module Credits class TopUpListResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -18,14 +20,18 @@ module Orb attr_accessor :currency # Settings for invoices generated by triggered top-ups. - sig { returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) } + sig do + returns( + Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings + ) + end attr_reader :invoice_settings sig do params( - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Internal::AnyHash) - ) - .void + invoice_settings: + Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings::OrHash + ).void end attr_writer :invoice_settings @@ -44,7 +50,13 @@ module Orb attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol)) } + sig do + returns( + T.nilable( + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol + ) + ) + end attr_accessor :expires_after_unit sig do @@ -52,13 +64,16 @@ module Orb id: String, amount: String, currency: String, - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Internal::AnyHash), + invoice_settings: + Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::OrSymbol) - ) - .returns(T.attached_class) + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::OrSymbol + ) + ).returns(T.attached_class) end def self.new( id:, @@ -79,25 +94,33 @@ module Orb expires_after: nil, # The unit of expires_after. expires_after_unit: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) - } - ) + override.returns( + { + id: String, + amount: String, + currency: String, + invoice_settings: + Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: + T.nilable( + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol + ) + } + ) + end + def to_hash end - def to_hash; end class InvoiceSettings < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } @@ -128,8 +151,7 @@ module Orb net_terms: Integer, memo: T.nilable(String), require_successful_payment: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Whether the credits purchase invoice should auto collect with the customer's @@ -144,19 +166,21 @@ module Orb # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. require_successful_payment: nil - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - ) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end # The unit of expires_after. @@ -164,17 +188,34 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/dimensional_price_group.rbi b/rbi/orb/models/dimensional_price_group.rbi index c2d40c09..6f23d48e 100644 --- a/rbi/orb/models/dimensional_price_group.rbi +++ b/rbi/orb/models/dimensional_price_group.rbi @@ -3,6 +3,8 @@ module Orb module Models class DimensionalPriceGroup < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -42,8 +44,7 @@ module Orb external_dimensional_price_group_id: T.nilable(String), metadata: T::Hash[Symbol, String], name: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -62,21 +63,23 @@ module Orb metadata:, # The name of the dimensional price group name: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billable_metric_id: String, - dimensions: T::Array[String], - external_dimensional_price_group_id: T.nilable(String), - metadata: T::Hash[Symbol, String], - name: String - } - ) + override.returns( + { + id: String, + billable_metric_id: String, + dimensions: T::Array[String], + external_dimensional_price_group_id: T.nilable(String), + metadata: T::Hash[Symbol, String], + name: String + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/dimensional_price_group_create_params.rbi b/rbi/orb/models/dimensional_price_group_create_params.rbi index b3bed31b..4fb0d745 100644 --- a/rbi/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/orb/models/dimensional_price_group_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :billable_metric_id @@ -32,9 +34,8 @@ module Orb name: String, external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( billable_metric_id:, @@ -47,21 +48,23 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - billable_metric_id: String, - dimensions: T::Array[String], - name: String, - external_dimensional_price_group_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + billable_metric_id: String, + dimensions: T::Array[String], + name: String, + external_dimensional_price_group_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/dimensional_price_group_list_params.rbi b/rbi/orb/models/dimensional_price_group_list_params.rbi index 20e2141e..6bd70041 100644 --- a/rbi/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/orb/models/dimensional_price_group_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -22,9 +24,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -33,11 +34,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/dimensional_price_group_retrieve_params.rbi b/rbi/orb/models/dimensional_price_group_retrieve_params.rbi index 585e8756..addf821a 100644 --- a/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/orb/models/dimensional_price_group_retrieve_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/dimensional_price_groups.rbi b/rbi/orb/models/dimensional_price_groups.rbi index 8fd052e7..de095f08 100644 --- a/rbi/orb/models/dimensional_price_groups.rbi +++ b/rbi/orb/models/dimensional_price_groups.rbi @@ -3,31 +3,36 @@ module Orb module Models class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::DimensionalPriceGroup]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::DimensionalPriceGroup]) } attr_accessor :data - sig { returns(Orb::Models::PaginationMetadata) } + sig { returns(Orb::PaginationMetadata) } attr_reader :pagination_metadata - sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash)).void } + sig { params(pagination_metadata: Orb::PaginationMetadata::OrHash).void } attr_writer :pagination_metadata sig do params( - data: T::Array[T.any(Orb::Models::DimensionalPriceGroup, Orb::Internal::AnyHash)], - pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + data: T::Array[Orb::DimensionalPriceGroup::OrHash], + pagination_metadata: Orb::PaginationMetadata::OrHash + ).returns(T.attached_class) + end + def self.new(data:, pagination_metadata:) end - def self.new(data:, pagination_metadata:); end sig do - override - .returns( - {data: T::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata} - ) + override.returns( + { + data: T::Array[Orb::DimensionalPriceGroup], + pagination_metadata: Orb::PaginationMetadata + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi b/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi index 00911238..89968a11 100644 --- a/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +++ b/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/discount.rbi b/rbi/orb/models/discount.rbi index 124b4aec..6fa76b0e 100644 --- a/rbi/orb/models/discount.rbi +++ b/rbi/orb/models/discount.rbi @@ -5,13 +5,19 @@ module Orb module Discount extend Orb::Internal::Type::Union - sig do - override - .returns( - [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + Variants = + T.type_alias do + T.any( + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) + end + + sig { override.returns(T::Array[Orb::Discount::Variants]) } + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/evaluate_price_group.rbi b/rbi/orb/models/evaluate_price_group.rbi index fdddc721..afec2748 100644 --- a/rbi/orb/models/evaluate_price_group.rbi +++ b/rbi/orb/models/evaluate_price_group.rbi @@ -3,6 +3,8 @@ module Orb module Models class EvaluatePriceGroup < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price's output for the group sig { returns(String) } attr_accessor :amount @@ -16,8 +18,11 @@ module Orb attr_accessor :quantity sig do - params(amount: String, grouping_values: T::Array[T.any(String, Float, T::Boolean)], quantity: Float) - .returns(T.attached_class) + params( + amount: String, + grouping_values: T::Array[T.any(String, Float, T::Boolean)], + quantity: Float + ).returns(T.attached_class) end def self.new( # The price's output for the group @@ -26,22 +31,33 @@ module Orb grouping_values:, # The price's usage quantity for the group quantity: - ); end + ) + end + sig do - override - .returns({ - amount: String, - grouping_values: T::Array[T.any(String, Float, T::Boolean)], - quantity: Float - }) + override.returns( + { + amount: String, + grouping_values: T::Array[T.any(String, Float, T::Boolean)], + quantity: Float + } + ) + end + def to_hash end - def to_hash; end module GroupingValue extend Orb::Internal::Type::Union - sig { override.returns([String, Float, T::Boolean]) } - def self.variants; end + Variants = T.type_alias { T.any(String, Float, T::Boolean) } + + sig do + override.returns( + T::Array[Orb::EvaluatePriceGroup::GroupingValue::Variants] + ) + end + def self.variants + end end end end diff --git a/rbi/orb/models/event_deprecate_params.rbi b/rbi/orb/models/event_deprecate_params.rbi index d675e921..436ff1bb 100644 --- a/rbi/orb/models/event_deprecate_params.rbi +++ b/rbi/orb/models/event_deprecate_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/event_deprecate_response.rbi b/rbi/orb/models/event_deprecate_response.rbi index 72085c2e..444400b9 100644 --- a/rbi/orb/models/event_deprecate_response.rbi +++ b/rbi/orb/models/event_deprecate_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class EventDeprecateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # event_id of the deprecated event, if successfully updated sig { returns(String) } attr_accessor :deprecated @@ -11,9 +13,12 @@ module Orb def self.new( # event_id of the deprecated event, if successfully updated deprecated: - ); end - sig { override.returns({deprecated: String}) } - def to_hash; end + ) + end + + sig { override.returns({ deprecated: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/event_ingest_params.rbi b/rbi/orb/models/event_ingest_params.rbi index 48dd475e..d927061a 100644 --- a/rbi/orb/models/event_ingest_params.rbi +++ b/rbi/orb/models/event_ingest_params.rbi @@ -6,7 +6,9 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(T::Array[Orb::Models::EventIngestParams::Event]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::EventIngestParams::Event]) } attr_accessor :events # If this ingestion request is part of a backfill, this parameter ties the @@ -23,12 +25,11 @@ module Orb sig do params( - events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Internal::AnyHash)], + events: T::Array[Orb::EventIngestParams::Event::OrHash], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( events:, @@ -38,21 +39,25 @@ module Orb # Flag to enable additional debug information in the endpoint response debug: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - events: T::Array[Orb::Models::EventIngestParams::Event], - backfill_id: T.nilable(String), - debug: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + events: T::Array[Orb::EventIngestParams::Event], + backfill_id: T.nilable(String), + debug: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class Event < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A name to meaningfully identify the action or event type. sig { returns(String) } attr_accessor :event_name @@ -91,8 +96,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # A name to meaningfully identify the action or event type. @@ -113,21 +117,23 @@ module Orb # An alias for the Orb customer, whose mapping is specified when creating the # customer external_customer_id: nil - ); end + ) + end + sig do - override - .returns( - { - event_name: String, - idempotency_key: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String) - } - ) + override.returns( + { + event_name: String, + idempotency_key: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/event_ingest_response.rbi b/rbi/orb/models/event_ingest_response.rbi index c039351f..d9ca1434 100644 --- a/rbi/orb/models/event_ingest_response.rbi +++ b/rbi/orb/models/event_ingest_response.rbi @@ -3,9 +3,13 @@ module Orb module Models class EventIngestResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Contains all failing validation events. In the case of a 200, this array will # always be empty. This field will always be present. - sig { returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) } + sig do + returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) + end attr_accessor :validation_failed # Optional debug information (only present when debug=true is passed to the @@ -13,15 +17,21 @@ module Orb sig { returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) } attr_reader :debug - sig { params(debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Internal::AnyHash))).void } + sig do + params( + debug: T.nilable(Orb::Models::EventIngestResponse::Debug::OrHash) + ).void + end attr_writer :debug sig do params( - validation_failed: T::Array[T.any(Orb::Models::EventIngestResponse::ValidationFailed, Orb::Internal::AnyHash)], - debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + validation_failed: + T::Array[ + Orb::Models::EventIngestResponse::ValidationFailed::OrHash + ], + debug: T.nilable(Orb::Models::EventIngestResponse::Debug::OrHash) + ).returns(T.attached_class) end def self.new( # Contains all failing validation events. In the case of a 200, this array will @@ -30,19 +40,24 @@ module Orb # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. debug: nil - ); end + ) + end + sig do - override - .returns( - { - validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: T.nilable(Orb::Models::EventIngestResponse::Debug) - } - ) + override.returns( + { + validation_failed: + T::Array[Orb::Models::EventIngestResponse::ValidationFailed], + debug: T.nilable(Orb::Models::EventIngestResponse::Debug) + } + ) + end + def to_hash end - def to_hash; end class ValidationFailed < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The passed idempotency_key corresponding to the validation_errors sig { returns(String) } attr_accessor :idempotency_key @@ -52,19 +67,33 @@ module Orb sig { returns(T::Array[String]) } attr_accessor :validation_errors - sig { params(idempotency_key: String, validation_errors: T::Array[String]).returns(T.attached_class) } + sig do + params( + idempotency_key: String, + validation_errors: T::Array[String] + ).returns(T.attached_class) + end def self.new( # The passed idempotency_key corresponding to the validation_errors idempotency_key:, # An array of strings corresponding to validation failures for this # idempotency_key. validation_errors: - ); end - sig { override.returns({idempotency_key: String, validation_errors: T::Array[String]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { idempotency_key: String, validation_errors: T::Array[String] } + ) + end + def to_hash + end end class Debug < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :duplicate @@ -73,11 +102,22 @@ module Orb # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. - sig { params(duplicate: T::Array[String], ingested: T::Array[String]).returns(T.attached_class) } - def self.new(duplicate:, ingested:); end + sig do + params( + duplicate: T::Array[String], + ingested: T::Array[String] + ).returns(T.attached_class) + end + def self.new(duplicate:, ingested:) + end - sig { override.returns({duplicate: T::Array[String], ingested: T::Array[String]}) } - def to_hash; end + sig do + override.returns( + { duplicate: T::Array[String], ingested: T::Array[String] } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/event_search_params.rbi b/rbi/orb/models/event_search_params.rbi index e1d58623..406794c3 100644 --- a/rbi/orb/models/event_search_params.rbi +++ b/rbi/orb/models/event_search_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # This is an explicit array of IDs to filter by. Note that an event's ID is the # idempotency_key that was originally used for ingestion, and this only supports # events that have not been amended. Values in this array will be treated case @@ -28,9 +30,8 @@ module Orb event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # This is an explicit array of IDs to filter by. Note that an event's ID is the @@ -45,19 +46,21 @@ module Orb # specified, the one week ago is used. timeframe_start: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - event_ids: T::Array[String], - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + event_ids: T::Array[String], + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/event_search_response.rbi b/rbi/orb/models/event_search_response.rbi index 28e1c543..f382f107 100644 --- a/rbi/orb/models/event_search_response.rbi +++ b/rbi/orb/models/event_search_response.rbi @@ -3,19 +3,30 @@ module Orb module Models class EventSearchResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) } attr_accessor :data sig do - params(data: T::Array[T.any(Orb::Models::EventSearchResponse::Data, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + data: T::Array[Orb::Models::EventSearchResponse::Data::OrHash] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::EventSearchResponse::Data]}) } - def to_hash; end + sig do + override.returns( + { data: T::Array[Orb::Models::EventSearchResponse::Data] } + ) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique value, generated by the client, that is used to de-duplicate events. # Exactly one event with a given idempotency key will be ingested, which allows # for safe request retries. @@ -62,8 +73,7 @@ module Orb external_customer_id: T.nilable(String), properties: T.anything, timestamp: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # A unique value, generated by the client, that is used to de-duplicate events. @@ -86,22 +96,24 @@ module Orb # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. timestamp: - ); end + ) + end + sig do - override - .returns( - { - id: String, - customer_id: T.nilable(String), - deprecated: T::Boolean, - event_name: String, - external_customer_id: T.nilable(String), - properties: T.anything, - timestamp: Time - } - ) + override.returns( + { + id: String, + customer_id: T.nilable(String), + deprecated: T::Boolean, + event_name: String, + external_customer_id: T.nilable(String), + properties: T.anything, + timestamp: Time + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/event_update_params.rbi b/rbi/orb/models/event_update_params.rbi index 70d1fd77..d6ba792f 100644 --- a/rbi/orb/models/event_update_params.rbi +++ b/rbi/orb/models/event_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A name to meaningfully identify the action or event type. sig { returns(String) } attr_accessor :event_name @@ -37,9 +39,8 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # A name to meaningfully identify the action or event type. @@ -57,21 +58,23 @@ module Orb # customer external_customer_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - event_name: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + event_name: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/event_update_response.rbi b/rbi/orb/models/event_update_response.rbi index a3dfd9ed..ca693cba 100644 --- a/rbi/orb/models/event_update_response.rbi +++ b/rbi/orb/models/event_update_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class EventUpdateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # event_id of the amended event, if successfully ingested sig { returns(String) } attr_accessor :amended @@ -11,9 +13,12 @@ module Orb def self.new( # event_id of the amended event, if successfully ingested amended: - ); end - sig { override.returns({amended: String}) } - def to_hash; end + ) + end + + sig { override.returns({ amended: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/events/backfill_close_params.rbi b/rbi/orb/models/events/backfill_close_params.rbi index 63384634..39c35539 100644 --- a/rbi/orb/models/events/backfill_close_params.rbi +++ b/rbi/orb/models/events/backfill_close_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/events/backfill_close_response.rbi b/rbi/orb/models/events/backfill_close_response.rbi index c79c4582..394a2026 100644 --- a/rbi/orb/models/events/backfill_close_response.rbi +++ b/rbi/orb/models/events/backfill_close_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Events class BackfillCloseResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -35,7 +37,11 @@ module Orb attr_accessor :reverted_at # The status of the backfill. - sig { returns(Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Time) } @@ -61,12 +67,12 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillCloseResponse::Status::OrSymbol, + status: + Orb::Models::Events::BackfillCloseResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -93,41 +99,70 @@ module Orb # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate deprecation_filter: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The status of the backfill. module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCloseResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Events::BackfillCloseResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) - REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) - PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) - REVERTED = T.let(:reverted, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ) + REFLECTED = + T.let( + :reflected, + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ) + PENDING_REVERT = + T.let( + :pending_revert, + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ) + REVERTED = + T.let( + :reverted, + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/events/backfill_create_params.rbi b/rbi/orb/models/events/backfill_create_params.rbi index 9b8ae17a..7c9d57d1 100644 --- a/rbi/orb/models/events/backfill_create_params.rbi +++ b/rbi/orb/models/events/backfill_create_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The (exclusive) end of the usage timeframe affected by this backfill. By # default, Orb allows backfills up to 10 days in duration at a time. Reach out to # discuss extending this limit and your use case. @@ -58,9 +60,8 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The (exclusive) end of the usage timeframe affected by this backfill. By @@ -89,23 +90,25 @@ module Orb # events. If false, adds the newly ingested events to the existing events. replace_existing_events: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - timeframe_end: Time, - timeframe_start: Time, - close_time: T.nilable(Time), - customer_id: T.nilable(String), - deprecation_filter: T.nilable(String), - external_customer_id: T.nilable(String), - replace_existing_events: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + timeframe_end: Time, + timeframe_start: Time, + close_time: T.nilable(Time), + customer_id: T.nilable(String), + deprecation_filter: T.nilable(String), + external_customer_id: T.nilable(String), + replace_existing_events: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/events/backfill_create_response.rbi b/rbi/orb/models/events/backfill_create_response.rbi index 5a6b9e4e..63865d5f 100644 --- a/rbi/orb/models/events/backfill_create_response.rbi +++ b/rbi/orb/models/events/backfill_create_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Events class BackfillCreateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -35,7 +37,11 @@ module Orb attr_accessor :reverted_at # The status of the backfill. - sig { returns(Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Time) } @@ -61,12 +67,12 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillCreateResponse::Status::OrSymbol, + status: + Orb::Models::Events::BackfillCreateResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -93,42 +99,70 @@ module Orb # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate deprecation_filter: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The status of the backfill. module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCreateResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Events::BackfillCreateResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) - REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ) + REFLECTED = + T.let( + :reflected, + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ) PENDING_REVERT = - T.let(:pending_revert, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) - REVERTED = T.let(:reverted, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + T.let( + :pending_revert, + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ) + REVERTED = + T.let( + :reverted, + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/events/backfill_fetch_params.rbi b/rbi/orb/models/events/backfill_fetch_params.rbi index 43a1cc64..f64756f9 100644 --- a/rbi/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/orb/models/events/backfill_fetch_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/events/backfill_fetch_response.rbi b/rbi/orb/models/events/backfill_fetch_response.rbi index 444ff817..45d40851 100644 --- a/rbi/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/orb/models/events/backfill_fetch_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Events class BackfillFetchResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -35,7 +37,11 @@ module Orb attr_accessor :reverted_at # The status of the backfill. - sig { returns(Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Time) } @@ -61,12 +67,12 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillFetchResponse::Status::OrSymbol, + status: + Orb::Models::Events::BackfillFetchResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -93,41 +99,70 @@ module Orb # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate deprecation_filter: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The status of the backfill. module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillFetchResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Events::BackfillFetchResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) - REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) - PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) - REVERTED = T.let(:reverted, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ) + REFLECTED = + T.let( + :reflected, + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ) + PENDING_REVERT = + T.let( + :pending_revert, + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ) + REVERTED = + T.let( + :reverted, + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/events/backfill_list_params.rbi b/rbi/orb/models/events/backfill_list_params.rbi index e49befbe..cb86e5c6 100644 --- a/rbi/orb/models/events/backfill_list_params.rbi +++ b/rbi/orb/models/events/backfill_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -23,9 +25,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -34,11 +35,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/events/backfill_list_response.rbi b/rbi/orb/models/events/backfill_list_response.rbi index 41b85b48..6150323b 100644 --- a/rbi/orb/models/events/backfill_list_response.rbi +++ b/rbi/orb/models/events/backfill_list_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Events class BackfillListResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -35,7 +37,11 @@ module Orb attr_accessor :reverted_at # The status of the backfill. - sig { returns(Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Time) } @@ -65,8 +71,7 @@ module Orb timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -93,41 +98,70 @@ module Orb # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate deprecation_filter: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The status of the backfill. module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillListResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Events::BackfillListResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) - REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) - PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) - REVERTED = T.let(:reverted, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ) + REFLECTED = + T.let( + :reflected, + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ) + PENDING_REVERT = + T.let( + :pending_revert, + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ) + REVERTED = + T.let( + :reverted, + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/events/backfill_revert_params.rbi b/rbi/orb/models/events/backfill_revert_params.rbi index 7c02baa6..53b94b44 100644 --- a/rbi/orb/models/events/backfill_revert_params.rbi +++ b/rbi/orb/models/events/backfill_revert_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/events/backfill_revert_response.rbi b/rbi/orb/models/events/backfill_revert_response.rbi index 17e46bdd..9b5360f0 100644 --- a/rbi/orb/models/events/backfill_revert_response.rbi +++ b/rbi/orb/models/events/backfill_revert_response.rbi @@ -4,6 +4,8 @@ module Orb module Models module Events class BackfillRevertResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -35,7 +37,11 @@ module Orb attr_accessor :reverted_at # The status of the backfill. - sig { returns(Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Time) } @@ -61,12 +67,12 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillRevertResponse::Status::OrSymbol, + status: + Orb::Models::Events::BackfillRevertResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -93,42 +99,70 @@ module Orb # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate deprecation_filter: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - replace_existing_events: T::Boolean, - reverted_at: T.nilable(Time), - status: Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - ) + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + replace_existing_events: T::Boolean, + reverted_at: T.nilable(Time), + status: + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The status of the backfill. module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillRevertResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Events::BackfillRevertResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) - REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ) + REFLECTED = + T.let( + :reflected, + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ) PENDING_REVERT = - T.let(:pending_revert, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) - REVERTED = T.let(:reverted, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + T.let( + :pending_revert, + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ) + REVERTED = + T.let( + :reverted, + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/events/event_volumes.rbi b/rbi/orb/models/events/event_volumes.rbi index 2e392175..93fe67a8 100644 --- a/rbi/orb/models/events/event_volumes.rbi +++ b/rbi/orb/models/events/event_volumes.rbi @@ -6,19 +6,28 @@ module Orb module Events class EventVolumes < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Events::EventVolumes::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::Events::EventVolumes::Data]) } attr_accessor :data sig do - params(data: T::Array[T.any(Orb::Models::Events::EventVolumes::Data, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + data: T::Array[Orb::Events::EventVolumes::Data::OrHash] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::Events::EventVolumes::Data]}) } - def to_hash; end + sig do + override.returns({ data: T::Array[Orb::Events::EventVolumes::Data] }) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The number of events ingested with a timestamp between the timeframe sig { returns(Integer) } attr_accessor :count @@ -31,15 +40,28 @@ module Orb # An EventVolume contains the event volume ingested in an hourly window. The # timestamp used for the aggregation is the `timestamp` datetime field on events. - sig { params(count: Integer, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) } + sig do + params( + count: Integer, + timeframe_end: Time, + timeframe_start: Time + ).returns(T.attached_class) + end def self.new( # The number of events ingested with a timestamp between the timeframe count:, timeframe_end:, timeframe_start: - ); end - sig { override.returns({count: Integer, timeframe_end: Time, timeframe_start: Time}) } - def to_hash; end + ) + end + + sig do + override.returns( + { count: Integer, timeframe_end: Time, timeframe_start: Time } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/events/volume_list_params.rbi b/rbi/orb/models/events/volume_list_params.rbi index df7fec4d..379d7688 100644 --- a/rbi/orb/models/events/volume_list_params.rbi +++ b/rbi/orb/models/events/volume_list_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The start of the timeframe, inclusive, in which to return event volume. All # datetime values are converted to UTC time. If the specified time isn't # hour-aligned, the response includes the event volume count for the hour the time @@ -42,9 +44,8 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The start of the timeframe, inclusive, in which to return event volume. All @@ -63,20 +64,22 @@ module Orb # volumecount for the hour the time falls in. timeframe_end: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - timeframe_start: Time, - cursor: T.nilable(String), - limit: Integer, - timeframe_end: Time, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + timeframe_start: Time, + cursor: T.nilable(String), + limit: Integer, + timeframe_end: Time, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/invoice.rbi b/rbi/orb/models/invoice.rbi index fe4a0950..5ed1d17d 100644 --- a/rbi/orb/models/invoice.rbi +++ b/rbi/orb/models/invoice.rbi @@ -3,6 +3,8 @@ module Orb module Models class Invoice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -11,18 +13,19 @@ module Orb sig { returns(String) } attr_accessor :amount_due - sig { returns(Orb::Models::Invoice::AutoCollection) } + sig { returns(Orb::Invoice::AutoCollection) } attr_reader :auto_collection - sig { params(auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Internal::AnyHash)).void } + sig { params(auto_collection: Orb::Invoice::AutoCollection::OrHash).void } attr_writer :auto_collection - sig { returns(T.nilable(Orb::Models::Invoice::BillingAddress)) } + sig { returns(T.nilable(Orb::Invoice::BillingAddress)) } attr_reader :billing_address sig do - params(billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Internal::AnyHash))) - .void + params( + billing_address: T.nilable(Orb::Invoice::BillingAddress::OrHash) + ).void end attr_writer :billing_address @@ -31,20 +34,20 @@ module Orb attr_accessor :created_at # A list of credit notes associated with the invoice - sig { returns(T::Array[Orb::Models::Invoice::CreditNote]) } + sig { returns(T::Array[Orb::Invoice::CreditNote]) } attr_accessor :credit_notes # An ISO 4217 currency string or `credits` sig { returns(String) } attr_accessor :currency - sig { returns(Orb::Models::Invoice::Customer) } + sig { returns(Orb::Invoice::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Invoice::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Invoice::Customer::OrHash).void } attr_writer :customer - sig { returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) } + sig { returns(T::Array[Orb::Invoice::CustomerBalanceTransaction]) } attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -152,11 +155,13 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) } + sig { returns(T.nilable(Orb::Invoice::CustomerTaxID)) } attr_reader :customer_tax_id sig do - params(customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Internal::AnyHash))).void + params( + customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID::OrHash) + ).void end attr_writer :customer_tax_id @@ -168,7 +173,13 @@ module Orb sig do returns( - T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + T::Array[ + T.any( + Orb::PercentageDiscount, + Orb::AmountDiscount, + Orb::TrialDiscount + ) + ] ) end attr_accessor :discounts @@ -203,7 +214,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :invoice_pdf - sig { returns(Orb::Models::Invoice::InvoiceSource::TaggedSymbol) } + sig { returns(Orb::Invoice::InvoiceSource::TaggedSymbol) } attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue @@ -217,13 +228,13 @@ module Orb attr_accessor :issued_at # The breakdown of prices in this invoice. - sig { returns(T::Array[Orb::Models::Invoice::LineItem]) } + sig { returns(T::Array[Orb::Invoice::LineItem]) } attr_accessor :line_items - sig { returns(T.nilable(Orb::Models::Invoice::Maximum)) } + sig { returns(T.nilable(Orb::Invoice::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Internal::AnyHash))).void } + sig { params(maximum: T.nilable(Orb::Invoice::Maximum::OrHash)).void } attr_writer :maximum sig { returns(T.nilable(String)) } @@ -240,10 +251,10 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Invoice::Minimum)) } + sig { returns(T.nilable(Orb::Invoice::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Internal::AnyHash))).void } + sig { params(minimum: T.nilable(Orb::Invoice::Minimum::OrHash)).void } attr_writer :minimum sig { returns(T.nilable(String)) } @@ -255,7 +266,7 @@ module Orb attr_accessor :paid_at # A list of payment attempts associated with the invoice - sig { returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) } + sig { returns(T::Array[Orb::Invoice::PaymentAttempt]) } attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of @@ -274,22 +285,25 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :scheduled_issue_at - sig { returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) } + sig { returns(T.nilable(Orb::Invoice::ShippingAddress)) } attr_reader :shipping_address sig do - params(shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Internal::AnyHash))) - .void + params( + shipping_address: T.nilable(Orb::Invoice::ShippingAddress::OrHash) + ).void end attr_writer :shipping_address - sig { returns(Orb::Models::Invoice::Status::TaggedSymbol) } + sig { returns(Orb::Invoice::Status::TaggedSymbol) } attr_accessor :status - sig { returns(T.nilable(Orb::Models::Invoice::Subscription)) } + sig { returns(T.nilable(Orb::Invoice::Subscription)) } attr_reader :subscription - sig { params(subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Internal::AnyHash))).void } + sig do + params(subscription: T.nilable(Orb::Invoice::Subscription::OrHash)).void + end attr_writer :subscription # The total before any discounts and minimums are applied. @@ -325,54 +339,54 @@ module Orb params( id: String, amount_due: String, - auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Internal::AnyHash), - billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Internal::AnyHash)), + auto_collection: Orb::Invoice::AutoCollection::OrHash, + billing_address: T.nilable(Orb::Invoice::BillingAddress::OrHash), created_at: Time, - credit_notes: T::Array[T.any(Orb::Models::Invoice::CreditNote, Orb::Internal::AnyHash)], + credit_notes: T::Array[Orb::Invoice::CreditNote::OrHash], currency: String, - customer: T.any(Orb::Models::Invoice::Customer, Orb::Internal::AnyHash), - customer_balance_transactions: T::Array[T.any(Orb::Models::Invoice::CustomerBalanceTransaction, Orb::Internal::AnyHash)], - customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Internal::AnyHash)), + customer: Orb::Invoice::Customer::OrHash, + customer_balance_transactions: + T::Array[Orb::Invoice::CustomerBalanceTransaction::OrHash], + customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID::OrHash), discount: T.anything, - discounts: T::Array[ - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - ) - ], + discounts: + T::Array[ + T.any( + Orb::PercentageDiscount::OrHash, + Orb::AmountDiscount::OrHash, + Orb::TrialDiscount::OrHash + ) + ], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), invoice_date: Time, invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Orb::Models::Invoice::InvoiceSource::OrSymbol, + invoice_source: Orb::Invoice::InvoiceSource::OrSymbol, issue_failed_at: T.nilable(Time), issued_at: T.nilable(Time), - line_items: T::Array[T.any(Orb::Models::Invoice::LineItem, Orb::Internal::AnyHash)], - maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Internal::AnyHash)), + line_items: T::Array[Orb::Invoice::LineItem::OrHash], + maximum: T.nilable(Orb::Invoice::Maximum::OrHash), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Invoice::Minimum::OrHash), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[T.any(Orb::Models::Invoice::PaymentAttempt, Orb::Internal::AnyHash)], + payment_attempts: T::Array[Orb::Invoice::PaymentAttempt::OrHash], payment_failed_at: T.nilable(Time), payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Internal::AnyHash)), - status: Orb::Models::Invoice::Status::OrSymbol, - subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Internal::AnyHash)), + shipping_address: T.nilable(Orb::Invoice::ShippingAddress::OrHash), + status: Orb::Invoice::Status::OrSymbol, + subscription: T.nilable(Orb::Invoice::Subscription::OrHash), subtotal: String, sync_failed_at: T.nilable(Time), total: String, voided_at: T.nilable(Time), will_auto_issue: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -570,58 +584,70 @@ module Orb # This is true if the invoice will be automatically issued in the future, and # false otherwise. will_auto_issue: - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::Invoice::CreditNote], - currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), - discount: T.anything, - discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_date: Time, - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Orb::Models::Invoice::InvoiceSource::TaggedSymbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::Invoice::LineItem], - maximum: T.nilable(Orb::Models::Invoice::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Invoice::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Orb::Models::Invoice::Status::TaggedSymbol, - subscription: T.nilable(Orb::Models::Invoice::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - ) + override.returns( + { + id: String, + amount_due: String, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: T.nilable(Orb::Invoice::BillingAddress), + created_at: Time, + credit_notes: T::Array[Orb::Invoice::CreditNote], + currency: String, + customer: Orb::Invoice::Customer, + customer_balance_transactions: + T::Array[Orb::Invoice::CustomerBalanceTransaction], + customer_tax_id: T.nilable(Orb::Invoice::CustomerTaxID), + discount: T.anything, + discounts: + T::Array[ + T.any( + Orb::PercentageDiscount, + Orb::AmountDiscount, + Orb::TrialDiscount + ) + ], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_date: Time, + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: Orb::Invoice::InvoiceSource::TaggedSymbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: T::Array[Orb::Invoice::LineItem], + maximum: T.nilable(Orb::Invoice::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Invoice::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: T::Array[Orb::Invoice::PaymentAttempt], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Invoice::ShippingAddress), + status: Orb::Invoice::Status::TaggedSymbol, + subscription: T.nilable(Orb::Invoice::Subscription), + subtotal: String, + sync_failed_at: T.nilable(Time), + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + } + ) + end + def to_hash end - def to_hash; end class AutoCollection < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } attr_accessor :enabled @@ -651,8 +677,7 @@ module Orb next_attempt_at: T.nilable(Time), num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # True only if auto-collection is enabled for this invoice. @@ -670,22 +695,26 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). previously_attempted_at: - ); end + ) + end + sig do - override - .returns( - { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) - } - ) + override.returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -712,28 +741,30 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -767,8 +798,7 @@ module Orb total: String, type: String, voided_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -781,44 +811,64 @@ module Orb # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. voided_at: - ); end + ) + end + sig do - override - .returns( - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - ) + override.returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end end class Customer < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique id for this transaction. sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) } + sig do + returns( + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + end attr_accessor :action # The value of the amount changed in the transaction. @@ -829,14 +879,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) } + sig do + returns( + T.nilable(Orb::Invoice::CustomerBalanceTransaction::CreditNote) + ) + end attr_reader :credit_note sig do params( - credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Internal::AnyHash)) - ) - .void + credit_note: + T.nilable( + Orb::Invoice::CustomerBalanceTransaction::CreditNote::OrHash + ) + ).void end attr_writer :credit_note @@ -849,14 +905,18 @@ module Orb sig { returns(String) } attr_accessor :ending_balance - sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) } + sig do + returns(T.nilable(Orb::Invoice::CustomerBalanceTransaction::Invoice)) + end attr_reader :invoice sig do params( - invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Internal::AnyHash)) - ) - .void + invoice: + T.nilable( + Orb::Invoice::CustomerBalanceTransaction::Invoice::OrHash + ) + ).void end attr_writer :invoice @@ -865,23 +925,30 @@ module Orb sig { returns(String) } attr_accessor :starting_balance - sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) } + sig do + returns(Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + end attr_accessor :type sig do params( id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::OrSymbol, + action: Orb::Invoice::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Internal::AnyHash)), + credit_note: + T.nilable( + Orb::Invoice::CustomerBalanceTransaction::CreditNote::OrHash + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Internal::AnyHash)), + invoice: + T.nilable( + Orb::Invoice::CustomerBalanceTransaction::Invoice::OrHash + ), starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::OrSymbol - ) - .returns(T.attached_class) + type: Orb::Invoice::CustomerBalanceTransaction::Type::OrSymbol + ).returns(T.attached_class) end def self.new( # A unique id for this transaction. @@ -902,56 +969,100 @@ module Orb # customer's currency. starting_balance:, type: - ); end + ) + end + sig do - override - .returns( - { - id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol - } - ) + override.returns( + { + id: String, + action: + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol, + amount: String, + created_at: Time, + credit_note: + T.nilable(Orb::Invoice::CustomerBalanceTransaction::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: + T.nilable(Orb::Invoice::CustomerBalanceTransaction::Invoice), + starting_balance: String, + type: Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Action extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Invoice::CustomerBalanceTransaction::Action) + end OrSymbol = T.type_alias { T.any(Symbol, String) } APPLIED_TO_INVOICE = - T.let(:applied_to_invoice, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :applied_to_invoice, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) MANUAL_ADJUSTMENT = - T.let(:manual_adjustment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :manual_adjustment, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) PRORATED_REFUND = - T.let(:prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :prorated_refund, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) REVERT_PRORATED_REFUND = - T.let(:revert_prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :revert_prorated_refund, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) RETURN_FROM_VOIDING = - T.let(:return_from_voiding, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :return_from_voiding, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) CREDIT_NOTE_APPLIED = - T.let(:credit_note_applied, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :credit_note_applied, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) CREDIT_NOTE_VOIDED = - T.let(:credit_note_voided, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :credit_note_voided, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) OVERPAYMENT_REFUND = - T.let(:overpayment_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :overpayment_refund, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) EXTERNAL_PAYMENT = - T.let(:external_payment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + T.let( + :external_payment, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ] + ) + end + def self.values + end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the Credit note sig { returns(String) } attr_accessor :id @@ -960,12 +1071,17 @@ module Orb def self.new( # The id of the Credit note id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end class Invoice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Invoice id sig { returns(String) } attr_accessor :id @@ -974,30 +1090,53 @@ module Orb def self.new( # The Invoice id id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Invoice::CustomerBalanceTransaction::Type) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - INCREMENT = T.let(:increment, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) - DECREMENT = T.let(:decrement, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + INCREMENT = + T.let( + :increment, + Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol + ] + ) + end + def self.values + end end end class CustomerTaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) } attr_accessor :country - sig { returns(Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) } + sig { returns(Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) } attr_accessor :type sig { returns(String) } @@ -1110,213 +1249,299 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::Invoice::CustomerTaxID::Country::OrSymbol, - type: Orb::Models::Invoice::CustomerTaxID::Type::OrSymbol, + country: Orb::Invoice::CustomerTaxID::Country::OrSymbol, + type: Orb::Invoice::CustomerTaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol, - type: Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol, - value: String - } - ) + override.returns( + { + country: Orb::Invoice::CustomerTaxID::Country::TaggedSymbol, + type: Orb::Invoice::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Country) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Invoice::CustomerTaxID::Country) } OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol]) } - def self.values; end + AD = T.let(:AD, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Invoice::CustomerTaxID::Country::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Invoice::CustomerTaxID::Country::TaggedSymbol] + ) + end + def self.values + end end module Type extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Type) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Invoice::CustomerTaxID::Type) } OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol]) } - def self.values; end + AD_NRT = + T.let(:ad_nrt, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + AE_TRN = + T.let(:ae_trn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + AR_CUIT = + T.let(:ar_cuit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + EU_VAT = + T.let(:eu_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + AU_ABN = + T.let(:au_abn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + AU_ARN = + T.let(:au_arn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + BG_UIC = + T.let(:bg_uic, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + BH_VAT = + T.let(:bh_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + BO_TIN = + T.let(:bo_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + BR_CNPJ = + T.let(:br_cnpj, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + BR_CPF = + T.let(:br_cpf, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_GST_HST = + T.let(:ca_gst_hst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_BC = + T.let(:ca_pst_bc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_MB = + T.let(:ca_pst_mb, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_SK = + T.let(:ca_pst_sk, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_QST = + T.let(:ca_qst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CH_VAT = + T.let(:ch_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CL_TIN = + T.let(:cl_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CN_TIN = + T.let(:cn_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CO_NIT = + T.let(:co_nit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + CR_TIN = + T.let(:cr_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + DO_RCN = + T.let(:do_rcn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + EC_RUC = + T.let(:ec_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + EG_TIN = + T.let(:eg_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + ES_CIF = + T.let(:es_cif, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + EU_OSS_VAT = + T.let(:eu_oss_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + GB_VAT = + T.let(:gb_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + GE_VAT = + T.let(:ge_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + HU_TIN = + T.let(:hu_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + ID_NPWP = + T.let(:id_npwp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + IL_VAT = + T.let(:il_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + IN_GST = + T.let(:in_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + IS_VAT = + T.let(:is_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_TRN = + T.let(:jp_trn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + KE_PIN = + T.let(:ke_pin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + KR_BRN = + T.let(:kr_brn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + KZ_BIN = + T.let(:kz_bin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + LI_UID = + T.let(:li_uid, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + MX_RFC = + T.let(:mx_rfc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_FRP = + T.let(:my_frp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_ITN = + T.let(:my_itn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_SST = + T.let(:my_sst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + NG_TIN = + T.let(:ng_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + NO_VAT = + T.let(:no_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + NO_VOEC = + T.let(:no_voec, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + NZ_GST = + T.let(:nz_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + OM_VAT = + T.let(:om_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + PE_RUC = + T.let(:pe_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + PH_TIN = + T.let(:ph_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + RO_TIN = + T.let(:ro_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + RS_PIB = + T.let(:rs_pib, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + RU_INN = + T.let(:ru_inn, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + RU_KPP = + T.let(:ru_kpp, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + SA_VAT = + T.let(:sa_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + SG_GST = + T.let(:sg_gst, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + SG_UEN = + T.let(:sg_uen, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + SI_TIN = + T.let(:si_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + SV_NIT = + T.let(:sv_nit, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + TH_VAT = + T.let(:th_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + TR_TIN = + T.let(:tr_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + TW_VAT = + T.let(:tw_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + UA_VAT = + T.let(:ua_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + US_EIN = + T.let(:us_ein, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + UY_RUC = + T.let(:uy_ruc, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + VE_RIF = + T.let(:ve_rif, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + VN_TIN = + T.let(:vn_tin, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + ZA_VAT = + T.let(:za_vat, Orb::Invoice::CustomerTaxID::Type::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Invoice::CustomerTaxID::Type::TaggedSymbol] + ) + end + def self.values + end end end module InvoiceSource extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::InvoiceSource) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Invoice::InvoiceSource) } OrSymbol = T.type_alias { T.any(Symbol, String) } - SUBSCRIPTION = T.let(:subscription, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) - PARTIAL = T.let(:partial, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) - ONE_OFF = T.let(:one_off, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) + SUBSCRIPTION = + T.let(:subscription, Orb::Invoice::InvoiceSource::TaggedSymbol) + PARTIAL = T.let(:partial, Orb::Invoice::InvoiceSource::TaggedSymbol) + ONE_OFF = T.let(:one_off, Orb::Invoice::InvoiceSource::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Invoice::InvoiceSource::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Invoice::InvoiceSource::TaggedSymbol]) + end + def self.values + end end class LineItem < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique ID for this line item. sig { returns(String) } attr_accessor :id @@ -1333,11 +1558,11 @@ module Orb returns( T::Array[ T.any( - Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, - Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, - Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, - Orb::Models::Invoice::LineItem::Adjustment::Minimum, - Orb::Models::Invoice::LineItem::Adjustment::Maximum + Orb::Invoice::LineItem::Adjustment::UsageDiscount, + Orb::Invoice::LineItem::Adjustment::AmountDiscount, + Orb::Invoice::LineItem::Adjustment::PercentageDiscount, + Orb::Invoice::LineItem::Adjustment::Minimum, + Orb::Invoice::LineItem::Adjustment::Maximum ) ] ) @@ -1357,10 +1582,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -1382,10 +1607,14 @@ module Orb attr_accessor :grouping # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) } + sig { returns(T.nilable(Orb::Invoice::LineItem::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Internal::AnyHash))).void } + sig do + params( + maximum: T.nilable(Orb::Invoice::LineItem::Maximum::OrHash) + ).void + end attr_writer :maximum # This field is deprecated in favor of `adjustments`. @@ -1393,10 +1622,14 @@ module Orb attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) } + sig { returns(T.nilable(Orb::Invoice::LineItem::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Internal::AnyHash))).void } + sig do + params( + minimum: T.nilable(Orb::Invoice::LineItem::Minimum::OrHash) + ).void + end attr_writer :minimum # This field is deprecated in favor of `adjustments`. @@ -1425,34 +1658,34 @@ module Orb returns( T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) ) @@ -1473,9 +1706,9 @@ module Orb returns( T::Array[ T.any( - Orb::Models::Invoice::LineItem::SubLineItem::Matrix, - Orb::Models::Invoice::LineItem::SubLineItem::Tier, - Orb::Models::Invoice::LineItem::SubLineItem::Null + Orb::Invoice::LineItem::SubLineItem::Matrix, + Orb::Invoice::LineItem::SubLineItem::Tier, + Orb::Invoice::LineItem::SubLineItem::Null ) ] ) @@ -1488,7 +1721,7 @@ module Orb # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. - sig { returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) } + sig { returns(T::Array[Orb::Invoice::LineItem::TaxAmount]) } attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. @@ -1499,84 +1732,83 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[ - T.any( - Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, - Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, - Orb::Models::Invoice::LineItem::Adjustment::Minimum, - Orb::Models::Invoice::LineItem::Adjustment::Maximum - ) - ], + adjustments: + T::Array[ + T.any( + Orb::Invoice::LineItem::Adjustment::UsageDiscount::OrHash, + Orb::Invoice::LineItem::Adjustment::AmountDiscount::OrHash, + Orb::Invoice::LineItem::Adjustment::PercentageDiscount::OrHash, + Orb::Invoice::LineItem::Adjustment::Minimum::OrHash, + Orb::Invoice::LineItem::Adjustment::Maximum::OrHash + ) + ], amount: String, credits_applied: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Internal::AnyHash)), + maximum: T.nilable(Orb::Invoice::LineItem::Maximum::OrHash), maximum_amount: T.nilable(String), - minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Invoice::LineItem::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable( - T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) - ), + price: + T.nilable( + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[ - T.any( - Orb::Models::Invoice::LineItem::SubLineItem::Matrix, - Orb::Internal::AnyHash, - Orb::Models::Invoice::LineItem::SubLineItem::Tier, - Orb::Models::Invoice::LineItem::SubLineItem::Null - ) - ], + sub_line_items: + T::Array[ + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix::OrHash, + Orb::Invoice::LineItem::SubLineItem::Tier::OrHash, + Orb::Invoice::LineItem::SubLineItem::Null::OrHash + ) + ], subtotal: String, - tax_amounts: T::Array[T.any(Orb::Models::Invoice::LineItem::TaxAmount, Orb::Internal::AnyHash)], + tax_amounts: T::Array[Orb::Invoice::LineItem::TaxAmount::OrHash], usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # A unique ID for this line item. @@ -1639,94 +1871,113 @@ module Orb tax_amounts:, # A list of customer ids that were used to calculate the usage for this line item. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[ + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: + T::Array[ T.any( - Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, - Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, - Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, - Orb::Models::Invoice::LineItem::Adjustment::Minimum, - Orb::Models::Invoice::LineItem::Adjustment::Maximum + Orb::Invoice::LineItem::Adjustment::UsageDiscount, + Orb::Invoice::LineItem::Adjustment::AmountDiscount, + Orb::Invoice::LineItem::Adjustment::PercentageDiscount, + Orb::Invoice::LineItem::Adjustment::Minimum, + Orb::Invoice::LineItem::Adjustment::Maximum ) ], - amount: String, - credits_applied: String, - discount: T.nilable( + amount: String, + credits_applied: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - end_date: Time, - filter: T.nilable(String), - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + end_date: Time, + filter: T.nilable(String), + grouping: T.nilable(String), + maximum: T.nilable(Orb::Invoice::LineItem::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Invoice::LineItem::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: + T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[ + quantity: Float, + start_date: Time, + sub_line_items: + T::Array[ T.any( - Orb::Models::Invoice::LineItem::SubLineItem::Matrix, - Orb::Models::Invoice::LineItem::SubLineItem::Tier, - Orb::Models::Invoice::LineItem::SubLineItem::Null + Orb::Invoice::LineItem::SubLineItem::Matrix, + Orb::Invoice::LineItem::SubLineItem::Tier, + Orb::Invoice::LineItem::SubLineItem::Null ) ], - subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + subtotal: String, + tax_amounts: T::Array[Orb::Invoice::LineItem::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Invoice::LineItem::Adjustment::UsageDiscount, + Orb::Invoice::LineItem::Adjustment::AmountDiscount, + Orb::Invoice::LineItem::Adjustment::PercentageDiscount, + Orb::Invoice::LineItem::Adjustment::Minimum, + Orb::Invoice::LineItem::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1764,8 +2015,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1782,25 +2032,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1838,8 +2092,7 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1856,25 +2109,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1912,8 +2169,7 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1930,25 +2186,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1991,8 +2251,7 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2011,26 +2270,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - 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, - reason: T.nilable(String) - } - ) + override.returns( + { + 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, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -2068,8 +2331,7 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2086,34 +2348,38 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Models::Invoice::LineItem::Adjustment::Minimum, Orb::Models::Invoice::LineItem::Adjustment::Maximum] - ) + override.returns( + T::Array[Orb::Invoice::LineItem::Adjustment::Variants] + ) + end + def self.variants end - def self.variants; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2125,7 +2391,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2133,12 +2402,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2150,7 +2428,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2158,38 +2439,64 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module SubLineItem extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Invoice::LineItem::SubLineItem::Matrix, + Orb::Invoice::LineItem::SubLineItem::Tier, + Orb::Invoice::LineItem::SubLineItem::Null + ) + end + class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping)) } + sig do + returns( + T.nilable(Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash)) - ) - .void + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping::OrHash + ) + ).void end attr_writer :grouping - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig) } + sig do + returns(Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig) + end attr_reader :matrix_config sig do params( - matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, Orb::Internal::AnyHash) - ) - .void + matrix_config: + Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -2205,13 +2512,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash)), - matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, Orb::Internal::AnyHash), + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping::OrHash + ), + matrix_config: + Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash, name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2221,23 +2531,32 @@ module Orb name:, quantity:, type: :matrix - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping), - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping + ), + matrix_config: + Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2245,44 +2564,75 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values - sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + sig do + params(dimension_values: T::Array[T.nilable(String)]).returns( + T.attached_class + ) + end def self.new( # The ordered dimension values for this line item. dimension_values: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { dimension_values: T::Array[T.nilable(String)] } + ) + end + def to_hash + end end end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping)) } + sig do + returns( + T.nilable(Orb::Invoice::LineItem::SubLineItem::Tier::Grouping) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash)) - ) - .void + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Tier::Grouping::OrHash + ) + ).void end attr_writer :grouping @@ -2292,14 +2642,16 @@ module Orb sig { returns(Float) } attr_accessor :quantity - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig) } + sig do + returns(Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig) + end attr_reader :tier_config sig do params( - tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash) - ) - .void + tier_config: + Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig::OrHash + ).void end attr_writer :tier_config @@ -2309,13 +2661,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash)), + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Tier::Grouping::OrHash + ), name: String, quantity: Float, - tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash), + tier_config: + Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig::OrHash, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2325,23 +2680,32 @@ module Orb quantity:, tier_config:, type: :tier - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Tier::Grouping + ), + name: String, + quantity: Float, + tier_config: + Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2349,17 +2713,29 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end class TierConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Float) } attr_accessor :first_unit @@ -2376,26 +2752,44 @@ module Orb unit_amount: String ).returns(T.attached_class) end - def self.new(first_unit:, last_unit:, unit_amount:); end + def self.new(first_unit:, last_unit:, unit_amount:) + end - sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } - def to_hash; end + sig do + override.returns( + { + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + } + ) + end + def to_hash + end end end class Null < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping)) } + sig do + returns( + T.nilable(Orb::Invoice::LineItem::SubLineItem::Null::Grouping) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, Orb::Internal::AnyHash)) - ) - .void + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Null::Grouping::OrHash + ) + ).void end attr_writer :grouping @@ -2411,12 +2805,14 @@ module Orb sig do params( amount: String, - grouping: T.nilable(T.any(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping, Orb::Internal::AnyHash)), + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Null::Grouping::OrHash + ), name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2425,22 +2821,30 @@ module Orb name:, quantity:, type: :"'null'" - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Invoice::LineItem::SubLineItem::Null::Grouping + ), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2448,27 +2852,38 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end end sig do - override - .returns( - [Orb::Models::Invoice::LineItem::SubLineItem::Matrix, Orb::Models::Invoice::LineItem::SubLineItem::Tier, Orb::Models::Invoice::LineItem::SubLineItem::Null] - ) + override.returns( + T::Array[Orb::Invoice::LineItem::SubLineItem::Variants] + ) + end + def self.variants end - def self.variants; end end class TaxAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount of additional tax incurred by this tax rate. sig { returns(String) } attr_accessor :amount @@ -2482,8 +2897,11 @@ module Orb attr_accessor :tax_rate_percentage sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) - .returns(T.attached_class) + params( + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The amount of additional tax incurred by this tax rate. @@ -2492,7 +2910,9 @@ module Orb tax_rate_description:, # The tax rate percentage, out of 100. tax_rate_percentage: - ); end + ) + end + sig do override.returns( { @@ -2502,11 +2922,14 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2517,7 +2940,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2525,12 +2951,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2541,7 +2976,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2549,12 +2987,21 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end class PaymentAttempt < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ID of the payment attempt. sig { returns(String) } attr_accessor :id @@ -2568,7 +3015,13 @@ module Orb attr_accessor :created_at # The payment provider that attempted to collect the payment. - sig { returns(T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol)) } + sig do + returns( + T.nilable( + Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ) + ) + end attr_accessor :payment_provider # The ID of the payment attempt in the payment provider. @@ -2584,11 +3037,13 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::OrSymbol), + payment_provider: + T.nilable( + Orb::Invoice::PaymentAttempt::PaymentProvider::OrSymbol + ), payment_provider_id: T.nilable(String), succeeded: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The ID of the payment attempt. @@ -2603,37 +3058,58 @@ module Orb payment_provider_id:, # Whether the payment attempt succeeded. succeeded: - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - ) + override.returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: + T.nilable( + Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The payment provider that attempted to collect the payment. module PaymentProvider extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Invoice::PaymentAttempt::PaymentProvider) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - STRIPE = T.let(:stripe, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) + STRIPE = + T.let( + :stripe, + Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ] + ) + end + def self.values + end end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -2660,52 +3136,57 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::Status) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Invoice::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ISSUED = T.let(:issued, Orb::Models::Invoice::Status::TaggedSymbol) - PAID = T.let(:paid, Orb::Models::Invoice::Status::TaggedSymbol) - SYNCED = T.let(:synced, Orb::Models::Invoice::Status::TaggedSymbol) - VOID = T.let(:void, Orb::Models::Invoice::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::Invoice::Status::TaggedSymbol) + ISSUED = T.let(:issued, Orb::Invoice::Status::TaggedSymbol) + PAID = T.let(:paid, Orb::Invoice::Status::TaggedSymbol) + SYNCED = T.let(:synced, Orb::Invoice::Status::TaggedSymbol) + VOID = T.let(:void, Orb::Invoice::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Invoice::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) } - def self.values; end + sig { override.returns(T::Array[Orb::Invoice::Status::TaggedSymbol]) } + def self.values + end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_create_params.rbi b/rbi/orb/models/invoice_create_params.rbi index ac510986..c98f55c0 100644 --- a/rbi/orb/models/invoice_create_params.rbi +++ b/rbi/orb/models/invoice_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An ISO 4217 currency string. Must be the same as the customer's currency if it # is set. sig { returns(String) } @@ -16,7 +18,7 @@ module Orb sig { returns(Time) } attr_accessor :invoice_date - sig { returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) } + sig { returns(T::Array[Orb::InvoiceCreateParams::LineItem]) } attr_accessor :line_items # Determines the difference between the invoice issue date for subscription @@ -36,10 +38,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -74,25 +76,24 @@ module Orb params( currency: String, invoice_date: Time, - line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Internal::AnyHash)], + line_items: T::Array[Orb::InvoiceCreateParams::LineItem::OrHash], net_terms: Integer, customer_id: T.nilable(String), - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # An ISO 4217 currency string. Must be the same as the customer's currency if it @@ -126,35 +127,40 @@ module Orb # false. will_auto_issue: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: String, - invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: T.nilable(String), - discount: T.nilable( + override.returns( + { + currency: String, + invoice_date: Time, + line_items: T::Array[Orb::InvoiceCreateParams::LineItem], + net_terms: Integer, + customer_id: T.nilable(String), + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_customer_id: T.nilable(String), - memo: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - will_auto_issue: T::Boolean, - request_options: Orb::RequestOptions - } - ) + external_customer_id: T.nilable(String), + memo: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + will_auto_issue: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class LineItem < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } attr_accessor :end_date @@ -162,7 +168,7 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol) } + sig { returns(Orb::InvoiceCreateParams::LineItem::ModelType::OrSymbol) } attr_accessor :model_type # The name of the line item. @@ -177,12 +183,13 @@ module Orb sig { returns(Date) } attr_accessor :start_date - sig { returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) } + sig { returns(Orb::InvoiceCreateParams::LineItem::UnitConfig) } attr_reader :unit_config sig do - params(unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Internal::AnyHash)) - .void + params( + unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -190,13 +197,12 @@ module Orb params( end_date: Date, item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, + model_type: Orb::InvoiceCreateParams::LineItem::ModelType::OrSymbol, name: String, quantity: Float, start_date: Date, - unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig::OrHash + ).returns(T.attached_class) end def self.new( # A date string to specify the line item's end date in the customer's timezone. @@ -210,36 +216,55 @@ module Orb # A date string to specify the line item's start date in the customer's timezone. start_date:, unit_config: - ); end + ) + end + sig do - override - .returns( - { - end_date: Date, - item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, - name: String, - quantity: Float, - start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - } - ) + override.returns( + { + end_date: Date, + item_id: String, + model_type: + Orb::InvoiceCreateParams::LineItem::ModelType::OrSymbol, + name: String, + quantity: Float, + start_date: Date, + unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig + } + ) + end + def to_hash end - def to_hash; end module ModelType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::InvoiceCreateParams::LineItem::ModelType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - UNIT = T.let(:unit, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) + UNIT = + T.let( + :unit, + Orb::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol + ] + ) + end + def self.values + end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -248,9 +273,12 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_fetch_params.rbi b/rbi/orb/models/invoice_fetch_params.rbi index a6d1fed5..ba8272c0 100644 --- a/rbi/orb/models/invoice_fetch_params.rbi +++ b/rbi/orb/models/invoice_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/orb/models/invoice_fetch_upcoming_params.rbi index 8836f3a4..612c5ed1 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_params.rbi @@ -6,17 +6,27 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :subscription_id sig do - params(subscription_id: String, request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)) - .returns(T.attached_class) + params( + subscription_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(subscription_id:, request_options: {}) end - def self.new(subscription_id:, request_options: {}); end - sig { override.returns({subscription_id: String, request_options: Orb::RequestOptions}) } - def to_hash; end + sig do + override.returns( + { subscription_id: String, request_options: Orb::RequestOptions } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/orb/models/invoice_fetch_upcoming_response.rbi index 320f3617..f8afe1ff 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -16,20 +18,26 @@ module Orb sig do params( - auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Internal::AnyHash) - ) - .void + auto_collection: + Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::OrHash + ).void end attr_writer :auto_collection - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) } + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress) + ) + end attr_reader :billing_address sig do params( - billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Internal::AnyHash)) - ) - .void + billing_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash + ) + ).void end attr_writer :billing_address @@ -38,7 +46,9 @@ module Orb attr_accessor :created_at # A list of credit notes associated with the invoice - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) } + sig do + returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) + end attr_accessor :credit_notes # An ISO 4217 currency string or `credits` @@ -48,10 +58,20 @@ module Orb sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Internal::AnyHash)).void } + sig do + params( + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer::OrHash + ).void + end attr_writer :customer - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) } + sig do + returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction + ] + ) + end attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are @@ -159,14 +179,20 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) } + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID) + ) + end attr_reader :customer_tax_id sig do params( - customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Internal::AnyHash)) - ) - .void + customer_tax_id: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash + ) + ).void end attr_writer :customer_tax_id @@ -178,7 +204,13 @@ module Orb sig do returns( - T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] + T::Array[ + T.any( + Orb::PercentageDiscount, + Orb::AmountDiscount, + Orb::TrialDiscount + ) + ] ) end attr_accessor :discounts @@ -209,7 +241,11 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :invoice_pdf - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol + ) + end attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue @@ -223,17 +259,23 @@ module Orb attr_accessor :issued_at # The breakdown of prices in this invoice. - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) } + sig do + returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) + end attr_accessor :line_items - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) } + sig do + returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash + ) + ).void end attr_writer :maximum @@ -251,14 +293,18 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) } + sig do + returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash + ) + ).void end attr_writer :minimum @@ -271,7 +317,11 @@ module Orb attr_accessor :paid_at # A list of payment attempts associated with the invoice - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) } + sig do + returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] + ) + end attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of @@ -290,28 +340,42 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :scheduled_issue_at - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) } + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress) + ) + end attr_reader :shipping_address sig do params( - shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Internal::AnyHash)) - ) - .void + shipping_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash + ) + ).void end attr_writer :shipping_address - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) } + sig do + returns(Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + end attr_accessor :status - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) } + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription) + ) + end attr_reader :subscription sig do params( - subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Internal::AnyHash)) - ) - .void + subscription: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash + ) + ).void end attr_writer :subscription @@ -347,54 +411,85 @@ module Orb params( id: String, amount_due: String, - auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Internal::AnyHash), - billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Internal::AnyHash)), + auto_collection: + Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::OrHash, + billing_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash + ), created_at: Time, - credit_notes: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CreditNote, Orb::Internal::AnyHash)], + credit_notes: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CreditNote::OrHash + ], currency: String, - customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Internal::AnyHash), - customer_balance_transactions: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction, Orb::Internal::AnyHash)], - customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Internal::AnyHash)), + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer::OrHash, + customer_balance_transactions: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::OrHash + ], + customer_tax_id: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash + ), discount: T.anything, - discounts: T::Array[ - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::AmountDiscount, - Orb::Models::TrialDiscount - ) - ], + discounts: + T::Array[ + T.any( + Orb::PercentageDiscount::OrHash, + Orb::AmountDiscount::OrHash, + Orb::TrialDiscount::OrHash + ) + ], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::OrSymbol, + invoice_source: + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::OrSymbol, issue_failed_at: T.nilable(Time), issued_at: T.nilable(Time), - line_items: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem, Orb::Internal::AnyHash)], - maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Internal::AnyHash)), + line_items: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::OrHash + ], + maximum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash + ), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash + ), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt, Orb::Internal::AnyHash)], + payment_attempts: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::OrHash + ], payment_failed_at: T.nilable(Time), payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Internal::AnyHash)), + shipping_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash + ), status: Orb::Models::InvoiceFetchUpcomingResponse::Status::OrSymbol, - subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Internal::AnyHash)), + subscription: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash + ), subtotal: String, sync_failed_at: T.nilable(Time), target_date: Time, total: String, voided_at: T.nilable(Time), will_auto_issue: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -592,58 +687,94 @@ module Orb # This is true if the invoice will be automatically issued in the future, and # false otherwise. will_auto_issue: - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], - currency: String, - customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), - discount: T.anything, - discounts: T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol, - subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - target_date: Time, - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - ) + override.returns( + { + id: String, + amount_due: String, + auto_collection: + Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + billing_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress + ), + created_at: Time, + credit_notes: + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + currency: String, + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, + customer_balance_transactions: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction + ], + customer_tax_id: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID + ), + discount: T.anything, + discounts: + T::Array[ + T.any( + Orb::PercentageDiscount, + Orb::AmountDiscount, + Orb::TrialDiscount + ) + ], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + maximum: + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt + ], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress + ), + status: + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol, + subscription: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::Subscription + ), + subtotal: String, + sync_failed_at: T.nilable(Time), + target_date: Time, + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + } + ) + end + def to_hash end - def to_hash; end class AutoCollection < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } attr_accessor :enabled @@ -673,8 +804,7 @@ module Orb next_attempt_at: T.nilable(Time), num_attempts: T.nilable(Integer), previously_attempted_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # True only if auto-collection is enabled for this invoice. @@ -692,22 +822,26 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). previously_attempted_at: - ); end + ) + end + sig do - override - .returns( - { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) - } - ) + override.returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end end class BillingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -734,28 +868,30 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -789,8 +925,7 @@ module Orb total: String, type: String, voided_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -803,44 +938,64 @@ module Orb # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. voided_at: - ); end + ) + end + sig do - override - .returns( - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - ) + override.returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end end class Customer < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } - def self.new(id:, external_customer_id:); end + sig do + params(id: String, external_customer_id: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(id:, external_customer_id:) + end - sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { id: String, external_customer_id: T.nilable(String) } + ) + end + def to_hash + end end class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique id for this transaction. sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + end attr_accessor :action # The value of the amount changed in the transaction. @@ -851,19 +1006,22 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote + ) + ) + end attr_reader :credit_note sig do params( - credit_note: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, - Orb::Internal::AnyHash + credit_note: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash ) - ) - ) - .void + ).void end attr_writer :credit_note @@ -876,19 +1034,22 @@ module Orb sig { returns(String) } attr_accessor :ending_balance - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice + ) + ) + end attr_reader :invoice sig do params( - invoice: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, - Orb::Internal::AnyHash + invoice: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash ) - ) - ) - .void + ).void end attr_writer :invoice @@ -897,33 +1058,34 @@ module Orb sig { returns(String) } attr_accessor :starting_balance - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ) + end attr_accessor :type sig do params( id: String, - action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol, + action: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, - Orb::Internal::AnyHash - ) - ), + credit_note: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, - Orb::Internal::AnyHash - ) - ), + invoice: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash + ), starting_balance: String, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol - ) - .returns(T.attached_class) + type: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol + ).returns(T.attached_class) end def self.new( # A unique id for this transaction. @@ -944,31 +1106,46 @@ module Orb # customer's currency. starting_balance:, type: - ); end + ) + end + sig do - override - .returns( - { - id: String, - action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol - } - ) + override.returns( + { + id: String, + action: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol, + amount: String, + created_at: Time, + credit_note: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote + ), + description: T.nilable(String), + ending_balance: String, + invoice: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice + ), + starting_balance: String, + type: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module Action extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action) } + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } APPLIED_TO_INVOICE = @@ -1018,15 +1195,19 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class CreditNote < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the Credit note sig { returns(String) } attr_accessor :id @@ -1035,12 +1216,17 @@ module Orb def self.new( # The id of the Credit note id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end class Invoice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The Invoice id sig { returns(String) } attr_accessor :id @@ -1049,16 +1235,24 @@ module Orb def self.new( # The Invoice id id: - ); end - sig { override.returns({id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ id: String }) } + def to_hash + end end module Type extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type) } + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } INCREMENT = @@ -1073,20 +1267,32 @@ module Orb ) sig do - override - .returns( - T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class CustomerTaxID < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + end attr_accessor :country - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + end attr_accessor :type sig { returns(String) } @@ -1199,223 +1405,866 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig do params( - country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol, + country: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol, + type: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol, value: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(country:, type:, value:) end - def self.new(country:, type:, value:); end sig do - override - .returns( - { - country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol, - value: String - } - ) + override.returns( + { + country: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol, + type: + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end + def to_hash end - def to_hash; end module Country extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country) } + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD = T.let(:AD, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - AE = T.let(:AE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - AR = T.let(:AR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - AT = T.let(:AT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - AU = T.let(:AU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - BE = T.let(:BE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - BG = T.let(:BG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - BH = T.let(:BH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - BO = T.let(:BO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - BR = T.let(:BR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CA = T.let(:CA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CH = T.let(:CH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CL = T.let(:CL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CN = T.let(:CN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CO = T.let(:CO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CR = T.let(:CR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CY = T.let(:CY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - CZ = T.let(:CZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - DE = T.let(:DE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - DK = T.let(:DK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - EE = T.let(:EE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - DO = T.let(:DO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - EC = T.let(:EC, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - EG = T.let(:EG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - ES = T.let(:ES, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - EU = T.let(:EU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - FI = T.let(:FI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - FR = T.let(:FR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - GB = T.let(:GB, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - GE = T.let(:GE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - GR = T.let(:GR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - HK = T.let(:HK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - HR = T.let(:HR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - HU = T.let(:HU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - ID = T.let(:ID, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - IE = T.let(:IE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - IL = T.let(:IL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - IN = T.let(:IN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - IS = T.let(:IS, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - IT = T.let(:IT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - JP = T.let(:JP, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - KE = T.let(:KE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - KR = T.let(:KR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - KZ = T.let(:KZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - LI = T.let(:LI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - LT = T.let(:LT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - LU = T.let(:LU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - LV = T.let(:LV, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - MT = T.let(:MT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - MX = T.let(:MX, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - MY = T.let(:MY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - NG = T.let(:NG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - NL = T.let(:NL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - NO = T.let(:NO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - NZ = T.let(:NZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - OM = T.let(:OM, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - PE = T.let(:PE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - PH = T.let(:PH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - PL = T.let(:PL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - PT = T.let(:PT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - RO = T.let(:RO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - RS = T.let(:RS, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - RU = T.let(:RU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SA = T.let(:SA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SE = T.let(:SE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SG = T.let(:SG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SI = T.let(:SI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SK = T.let(:SK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - SV = T.let(:SV, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - TH = T.let(:TH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - TR = T.let(:TR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - TW = T.let(:TW, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - UA = T.let(:UA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - US = T.let(:US, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - UY = T.let(:UY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - VE = T.let(:VE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - VN = T.let(:VN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - ZA = T.let(:ZA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) - - sig do - override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol]) - end - def self.values; end - end - + AD = + T.let( + :AD, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + AE = + T.let( + :AE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + AR = + T.let( + :AR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + AT = + T.let( + :AT, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + AU = + T.let( + :AU, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + BE = + T.let( + :BE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + BG = + T.let( + :BG, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + BH = + T.let( + :BH, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + BO = + T.let( + :BO, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + BR = + T.let( + :BR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CA = + T.let( + :CA, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CH = + T.let( + :CH, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CL = + T.let( + :CL, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CN = + T.let( + :CN, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CO = + T.let( + :CO, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CR = + T.let( + :CR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CY = + T.let( + :CY, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + CZ = + T.let( + :CZ, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + DE = + T.let( + :DE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + DK = + T.let( + :DK, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + EE = + T.let( + :EE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + DO = + T.let( + :DO, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + EC = + T.let( + :EC, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + EG = + T.let( + :EG, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + ES = + T.let( + :ES, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + EU = + T.let( + :EU, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + FI = + T.let( + :FI, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + FR = + T.let( + :FR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + GB = + T.let( + :GB, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + GE = + T.let( + :GE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + GR = + T.let( + :GR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + HK = + T.let( + :HK, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + HR = + T.let( + :HR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + HU = + T.let( + :HU, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + ID = + T.let( + :ID, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + IE = + T.let( + :IE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + IL = + T.let( + :IL, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + IN = + T.let( + :IN, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + IS = + T.let( + :IS, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + IT = + T.let( + :IT, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + JP = + T.let( + :JP, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + KE = + T.let( + :KE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + KR = + T.let( + :KR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + KZ = + T.let( + :KZ, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + LI = + T.let( + :LI, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + LT = + T.let( + :LT, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + LU = + T.let( + :LU, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + LV = + T.let( + :LV, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + MT = + T.let( + :MT, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + MX = + T.let( + :MX, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + MY = + T.let( + :MY, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + NG = + T.let( + :NG, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + NL = + T.let( + :NL, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + NO = + T.let( + :NO, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + NZ = + T.let( + :NZ, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + OM = + T.let( + :OM, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + PE = + T.let( + :PE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + PH = + T.let( + :PH, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + PL = + T.let( + :PL, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + PT = + T.let( + :PT, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + RO = + T.let( + :RO, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + RS = + T.let( + :RS, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + RU = + T.let( + :RU, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SA = + T.let( + :SA, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SE = + T.let( + :SE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SG = + T.let( + :SG, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SI = + T.let( + :SI, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SK = + T.let( + :SK, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + SV = + T.let( + :SV, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + TH = + T.let( + :TH, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + TR = + T.let( + :TR, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + TW = + T.let( + :TW, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + UA = + T.let( + :UA, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + US = + T.let( + :US, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + UY = + T.let( + :UY, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + VE = + T.let( + :VE, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + VN = + T.let( + :VN, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + ZA = + T.let( + :ZA, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol + ] + ) + end + def self.values + end + end + module Type extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type) } + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - AD_NRT = T.let(:ad_nrt, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - AE_TRN = T.let(:ae_trn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - AR_CUIT = T.let(:ar_cuit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - EU_VAT = T.let(:eu_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - AU_ABN = T.let(:au_abn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - AU_ARN = T.let(:au_arn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - BG_UIC = T.let(:bg_uic, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - BH_VAT = T.let(:bh_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - BO_TIN = T.let(:bo_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - BR_CNPJ = T.let(:br_cnpj, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - BR_CPF = T.let(:br_cpf, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CA_BN = T.let(:ca_bn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + AD_NRT = + T.let( + :ad_nrt, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + AE_TRN = + T.let( + :ae_trn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + AR_CUIT = + T.let( + :ar_cuit, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + EU_VAT = + T.let( + :eu_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + AU_ABN = + T.let( + :au_abn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + AU_ARN = + T.let( + :au_arn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + BG_UIC = + T.let( + :bg_uic, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + BH_VAT = + T.let( + :bh_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + BO_TIN = + T.let( + :bo_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + BR_CNPJ = + T.let( + :br_cnpj, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + BR_CPF = + T.let( + :br_cpf, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CA_BN = + T.let( + :ca_bn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) CA_GST_HST = - T.let(:ca_gst_hst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + T.let( + :ca_gst_hst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) CA_PST_BC = - T.let(:ca_pst_bc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + T.let( + :ca_pst_bc, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) CA_PST_MB = - T.let(:ca_pst_mb, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + T.let( + :ca_pst_mb, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) CA_PST_SK = - T.let(:ca_pst_sk, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CA_QST = T.let(:ca_qst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CH_VAT = T.let(:ch_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CL_TIN = T.let(:cl_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CN_TIN = T.let(:cn_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CO_NIT = T.let(:co_nit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - CR_TIN = T.let(:cr_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - DO_RCN = T.let(:do_rcn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - EC_RUC = T.let(:ec_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - EG_TIN = T.let(:eg_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - ES_CIF = T.let(:es_cif, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + T.let( + :ca_pst_sk, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CA_QST = + T.let( + :ca_qst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CH_VAT = + T.let( + :ch_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CL_TIN = + T.let( + :cl_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CN_TIN = + T.let( + :cn_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CO_NIT = + T.let( + :co_nit, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + CR_TIN = + T.let( + :cr_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + DO_RCN = + T.let( + :do_rcn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + EC_RUC = + T.let( + :ec_ruc, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + EG_TIN = + T.let( + :eg_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + ES_CIF = + T.let( + :es_cif, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) EU_OSS_VAT = - T.let(:eu_oss_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - GB_VAT = T.let(:gb_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - GE_VAT = T.let(:ge_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - HK_BR = T.let(:hk_br, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - HU_TIN = T.let(:hu_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - ID_NPWP = T.let(:id_npwp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - IL_VAT = T.let(:il_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - IN_GST = T.let(:in_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - IS_VAT = T.let(:is_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - JP_CN = T.let(:jp_cn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - JP_RN = T.let(:jp_rn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - JP_TRN = T.let(:jp_trn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - KE_PIN = T.let(:ke_pin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - KR_BRN = T.let(:kr_brn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - KZ_BIN = T.let(:kz_bin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - LI_UID = T.let(:li_uid, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - MX_RFC = T.let(:mx_rfc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - MY_FRP = T.let(:my_frp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - MY_ITN = T.let(:my_itn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - MY_SST = T.let(:my_sst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - NG_TIN = T.let(:ng_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - NO_VAT = T.let(:no_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - NO_VOEC = T.let(:no_voec, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - NZ_GST = T.let(:nz_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - OM_VAT = T.let(:om_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - PE_RUC = T.let(:pe_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - PH_TIN = T.let(:ph_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - RO_TIN = T.let(:ro_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - RS_PIB = T.let(:rs_pib, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - RU_INN = T.let(:ru_inn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - RU_KPP = T.let(:ru_kpp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - SA_VAT = T.let(:sa_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - SG_GST = T.let(:sg_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - SG_UEN = T.let(:sg_uen, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - SI_TIN = T.let(:si_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - SV_NIT = T.let(:sv_nit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - TH_VAT = T.let(:th_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - TR_TIN = T.let(:tr_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - TW_VAT = T.let(:tw_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - UA_VAT = T.let(:ua_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - US_EIN = T.let(:us_ein, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - UY_RUC = T.let(:uy_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - VE_RIF = T.let(:ve_rif, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - VN_TIN = T.let(:vn_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - ZA_VAT = T.let(:za_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol]) } - def self.values; end + T.let( + :eu_oss_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + GB_VAT = + T.let( + :gb_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + GE_VAT = + T.let( + :ge_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + HK_BR = + T.let( + :hk_br, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + HU_TIN = + T.let( + :hu_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + ID_NPWP = + T.let( + :id_npwp, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + IL_VAT = + T.let( + :il_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + IN_GST = + T.let( + :in_gst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + IS_VAT = + T.let( + :is_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + JP_CN = + T.let( + :jp_cn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + JP_RN = + T.let( + :jp_rn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + JP_TRN = + T.let( + :jp_trn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + KE_PIN = + T.let( + :ke_pin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + KR_BRN = + T.let( + :kr_brn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + KZ_BIN = + T.let( + :kz_bin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + LI_UID = + T.let( + :li_uid, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + MX_RFC = + T.let( + :mx_rfc, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + MY_FRP = + T.let( + :my_frp, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + MY_ITN = + T.let( + :my_itn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + MY_SST = + T.let( + :my_sst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + NG_TIN = + T.let( + :ng_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + NO_VAT = + T.let( + :no_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + NO_VOEC = + T.let( + :no_voec, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + NZ_GST = + T.let( + :nz_gst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + OM_VAT = + T.let( + :om_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + PE_RUC = + T.let( + :pe_ruc, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + PH_TIN = + T.let( + :ph_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + RO_TIN = + T.let( + :ro_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + RS_PIB = + T.let( + :rs_pib, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + RU_INN = + T.let( + :ru_inn, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + RU_KPP = + T.let( + :ru_kpp, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + SA_VAT = + T.let( + :sa_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + SG_GST = + T.let( + :sg_gst, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + SG_UEN = + T.let( + :sg_uen, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + SI_TIN = + T.let( + :si_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + SV_NIT = + T.let( + :sv_nit, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + TH_VAT = + T.let( + :th_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + TR_TIN = + T.let( + :tr_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + TW_VAT = + T.let( + :tw_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + UA_VAT = + T.let( + :ua_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + US_EIN = + T.let( + :us_ein, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + UY_RUC = + T.let( + :uy_ruc, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + VE_RIF = + T.let( + :ve_rif, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + VN_TIN = + T.let( + :vn_tin, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + ZA_VAT = + T.let( + :za_vat, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol + ] + ) + end + def self.values + end end end module InvoiceSource extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource) } + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } SUBSCRIPTION = - T.let(:subscription, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) - PARTIAL = T.let(:partial, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) - ONE_OFF = T.let(:one_off, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) + T.let( + :subscription, + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol + ) + PARTIAL = + T.let( + :partial, + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol + ) + ONE_OFF = + T.let( + :one_off, + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol + ] + ) + end + def self.values + end end class LineItem < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique ID for this line item. sig { returns(String) } attr_accessor :id @@ -1456,10 +2305,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -1481,14 +2330,22 @@ module Orb attr_accessor :grouping # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum + ) + ) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash + ) + ).void end attr_writer :maximum @@ -1497,14 +2354,22 @@ module Orb attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum + ) + ) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash + ) + ).void end attr_writer :minimum @@ -1534,34 +2399,34 @@ module Orb returns( T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) ) @@ -1597,7 +2462,13 @@ module Orb # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) } + sig do + returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount + ] + ) + end attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. @@ -1608,84 +2479,92 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum - ) - ], + adjustments: + T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::OrHash + ) + ], amount: String, credits_applied: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Internal::AnyHash)), + maximum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash + ), maximum_amount: T.nilable(String), - minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash + ), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable( - T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) - ), + price: + T.nilable( + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[ - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, - Orb::Internal::AnyHash, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null - ) - ], + sub_line_items: + T::Array[ + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::OrHash, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::OrHash + ) + ], subtotal: String, - tax_amounts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount, Orb::Internal::AnyHash)], + tax_amounts: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount::OrHash + ], usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # A unique ID for this line item. @@ -1748,14 +2627,16 @@ module Orb tax_amounts:, # A list of customer ids that were used to calculate the usage for this line item. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[ + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: + T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, @@ -1764,78 +2645,104 @@ module Orb Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum ) ], - amount: String, - credits_applied: String, - discount: T.nilable( + amount: String, + credits_applied: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - end_date: Time, - filter: T.nilable(String), - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + end_date: Time, + filter: T.nilable(String), + grouping: T.nilable(String), + maximum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum + ), + maximum_amount: T.nilable(String), + minimum: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum + ), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: + T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[ + quantity: Float, + start_date: Time, + sub_line_items: + T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null ) ], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + subtotal: String, + tax_amounts: + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount + ], + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1873,8 +2780,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1891,25 +2797,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1947,8 +2857,7 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1965,25 +2874,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -2021,8 +2934,7 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2039,25 +2951,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -2100,8 +3016,7 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2120,26 +3035,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - 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, - reason: T.nilable(String) - } - ) + override.returns( + { + 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, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -2177,8 +3096,7 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2195,34 +3113,40 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2234,7 +3158,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2242,12 +3169,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2259,7 +3195,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2267,46 +3206,68 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module SubLineItem extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null + ) + end + class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping, - Orb::Internal::AnyHash + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash ) - ) - ) - .void + ).void end attr_writer :grouping - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -2322,21 +3283,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping, - Orb::Internal::AnyHash - ) - ), - matrix_config: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash + ), + matrix_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash, name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2346,23 +3302,32 @@ module Orb name:, quantity:, type: :matrix - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping), - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping + ), + matrix_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2370,49 +3335,77 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values - sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + sig do + params(dimension_values: T::Array[T.nilable(String)]).returns( + T.attached_class + ) + end def self.new( # The ordered dimension values for this line item. dimension_values: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { dimension_values: T::Array[T.nilable(String)] } + ) + end + def to_hash + end end end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping, - Orb::Internal::AnyHash + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash ) - ) - ) - .void + ).void end attr_writer :grouping @@ -2422,17 +3415,18 @@ module Orb sig { returns(Float) } attr_accessor :quantity - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig) } + sig do + returns( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig + ) + end attr_reader :tier_config sig do params( - tier_config: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig, - Orb::Internal::AnyHash - ) - ) - .void + tier_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash + ).void end attr_writer :tier_config @@ -2442,21 +3436,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping, - Orb::Internal::AnyHash - ) - ), + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash + ), name: String, quantity: Float, - tier_config: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig, - Orb::Internal::AnyHash - ), + tier_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2466,23 +3455,32 @@ module Orb quantity:, tier_config:, type: :tier - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping + ), + name: String, + quantity: Float, + tier_config: + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2490,17 +3488,29 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end class TierConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Float) } attr_accessor :first_unit @@ -2517,31 +3527,46 @@ module Orb unit_amount: String ).returns(T.attached_class) end - def self.new(first_unit:, last_unit:, unit_amount:); end + def self.new(first_unit:, last_unit:, unit_amount:) + end - sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } - def to_hash; end + sig do + override.returns( + { + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + } + ) + end + def to_hash + end end end class Null < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping, - Orb::Internal::AnyHash + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash ) - ) - ) - .void + ).void end attr_writer :grouping @@ -2557,17 +3582,14 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping, - Orb::Internal::AnyHash - ) - ), + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash + ), name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -2576,22 +3598,30 @@ module Orb name:, quantity:, type: :"'null'" - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping + ), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -2599,27 +3629,40 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ key: String, value: T.nilable(String) }) + end + def to_hash + end end end sig do - override - .returns( - [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants + ] + ) + end + def self.variants end - def self.variants; end end class TaxAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount of additional tax incurred by this tax rate. sig { returns(String) } attr_accessor :amount @@ -2633,8 +3676,11 @@ module Orb attr_accessor :tax_rate_percentage sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) - .returns(T.attached_class) + params( + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The amount of additional tax incurred by this tax rate. @@ -2643,7 +3689,9 @@ module Orb tax_rate_description:, # The tax rate percentage, out of 100. tax_rate_percentage: - ); end + ) + end + sig do override.returns( { @@ -2653,11 +3701,14 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2668,7 +3719,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2676,12 +3730,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2692,7 +3755,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2700,12 +3766,21 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end class PaymentAttempt < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ID of the payment attempt. sig { returns(String) } attr_accessor :id @@ -2721,7 +3796,9 @@ module Orb # The payment provider that attempted to collect the payment. sig do returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol + ) ) end attr_accessor :payment_provider @@ -2739,11 +3816,13 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol), + payment_provider: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol + ), payment_provider_id: T.nilable(String), succeeded: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The ID of the payment attempt. @@ -2758,44 +3837,61 @@ module Orb payment_provider_id:, # Whether the payment attempt succeeded. succeeded: - ); end + ) + end + sig do - override - .returns( - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - ) + override.returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: + T.nilable( + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol + ), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The payment provider that attempted to collect the payment. module PaymentProvider extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider) } + T.type_alias do + T.all( + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } STRIPE = - T.let(:stripe, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + T.let( + :stripe, + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class ShippingAddress < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :city @@ -2822,52 +3918,86 @@ module Orb line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(city:, country:, line1:, line2:, postal_code:, state:) end - def self.new(city:, country:, line1:, line2:, postal_code:, state:); end sig do - override - .returns( - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - ) + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ISSUED = T.let(:issued, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) - PAID = T.let(:paid, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) - SYNCED = T.let(:synced, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) - VOID = T.let(:void, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + ISSUED = + T.let( + :issued, + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ) + PAID = + T.let( + :paid, + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ) + SYNCED = + T.let( + :synced, + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ) + VOID = + T.let( + :void, + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ) + DRAFT = + T.let( + :draft, + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_issue_params.rbi b/rbi/orb/models/invoice_issue_params.rbi index 5ff7b672..0a3c0471 100644 --- a/rbi/orb/models/invoice_issue_params.rbi +++ b/rbi/orb/models/invoice_issue_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # If true, the invoice will be issued synchronously. If false, the invoice will be # issued asynchronously. The synchronous option is only available for invoices # that have no usage fees. If the invoice is configured to sync to an external @@ -18,8 +20,10 @@ module Orb attr_writer :synchronous sig do - params(synchronous: T::Boolean, request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)) - .returns(T.attached_class) + params( + synchronous: T::Boolean, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # If true, the invoice will be issued synchronously. If false, the invoice will be @@ -29,9 +33,16 @@ module Orb # present in the provider. synchronous: nil, request_options: {} - ); end - sig { override.returns({synchronous: T::Boolean, request_options: Orb::RequestOptions}) } - def to_hash; end + ) + end + + sig do + override.returns( + { synchronous: T::Boolean, request_options: Orb::RequestOptions } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_level_discount.rbi b/rbi/orb/models/invoice_level_discount.rbi index 358c926d..4f0412e6 100644 --- a/rbi/orb/models/invoice_level_discount.rbi +++ b/rbi/orb/models/invoice_level_discount.rbi @@ -5,11 +5,18 @@ module Orb module InvoiceLevelDiscount extend Orb::Internal::Type::Union - sig do - override - .returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount]) + Variants = + T.type_alias do + T.any( + Orb::PercentageDiscount, + Orb::AmountDiscount, + Orb::TrialDiscount + ) + end + + sig { override.returns(T::Array[Orb::InvoiceLevelDiscount::Variants]) } + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/invoice_line_item_create_params.rbi b/rbi/orb/models/invoice_line_item_create_params.rbi index 4af81424..576c59dd 100644 --- a/rbi/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/orb/models/invoice_line_item_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount in the invoice's currency to add to the line item. sig { returns(String) } attr_accessor :amount @@ -39,9 +41,8 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The total amount in the invoice's currency to add to the line item. @@ -58,22 +59,24 @@ module Orb # A date string to specify the line item's start date in the customer's timezone. start_date:, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/invoice_line_item_create_response.rbi b/rbi/orb/models/invoice_line_item_create_response.rbi index f799f484..11ffdac5 100644 --- a/rbi/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/orb/models/invoice_line_item_create_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A unique ID for this line item. sig { returns(String) } attr_accessor :id @@ -43,10 +45,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -68,14 +70,18 @@ module Orb attr_accessor :grouping # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) } + sig do + returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::Maximum::OrHash + ) + ).void end attr_writer :maximum @@ -84,14 +90,18 @@ module Orb attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. - sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) } + sig do + returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::Minimum::OrHash + ) + ).void end attr_writer :minimum @@ -121,34 +131,34 @@ module Orb returns( T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) ) @@ -184,7 +194,9 @@ module Orb # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. - sig { returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) } + sig do + returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) + end attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. @@ -195,84 +207,92 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum - ) - ], + adjustments: + T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum::OrHash + ) + ], amount: String, credits_applied: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Internal::AnyHash)), + maximum: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::Maximum::OrHash + ), maximum_amount: T.nilable(String), - minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::Minimum::OrHash + ), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable( - T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) - ), + price: + T.nilable( + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[ - T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, - Orb::Internal::AnyHash, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null - ) - ], + sub_line_items: + T::Array[ + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::OrHash, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::OrHash + ) + ], subtotal: String, - tax_amounts: T::Array[T.any(Orb::Models::InvoiceLineItemCreateResponse::TaxAmount, Orb::Internal::AnyHash)], + tax_amounts: + T::Array[ + Orb::Models::InvoiceLineItemCreateResponse::TaxAmount::OrHash + ], usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # A unique ID for this line item. @@ -335,14 +355,16 @@ module Orb tax_amounts:, # A list of customer ids that were used to calculate the usage for this line item. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[ + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: + T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, @@ -351,78 +373,98 @@ module Orb Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum ) ], - amount: String, - credits_applied: String, - discount: T.nilable( + amount: String, + credits_applied: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - end_date: Time, - filter: T.nilable(String), - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable( + end_date: Time, + filter: T.nilable(String), + grouping: T.nilable(String), + maximum: + T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), + maximum_amount: T.nilable(String), + minimum: + T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: + T.nilable( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[ + quantity: Float, + start_date: Time, + sub_line_items: + T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null ) ], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + subtotal: String, + tax_amounts: + T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -460,8 +502,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -478,25 +519,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -534,8 +579,7 @@ module Orb is_invoice_level: T::Boolean, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -552,25 +596,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -608,8 +656,7 @@ module Orb percentage_discount: Float, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -626,25 +673,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -687,8 +738,7 @@ module Orb minimum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -707,26 +757,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - 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, - reason: T.nilable(String) - } - ) + override.returns( + { + 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, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -764,8 +818,7 @@ module Orb maximum_amount: String, reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -782,34 +835,40 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -821,7 +880,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -829,12 +891,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -846,7 +917,10 @@ module Orb # This field is deprecated in favor of `adjustments`. sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -854,43 +928,68 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module SubLineItem extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null + ) + end + class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash) - ) - ) - .void + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping::OrHash + ) + ).void end attr_writer :grouping - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig) } + sig do + returns( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -906,18 +1005,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping, Orb::Internal::AnyHash) - ), - matrix_config: T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping::OrHash + ), + matrix_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig::OrHash, name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -927,23 +1024,31 @@ module Orb name:, quantity:, type: :matrix - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping), - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::Grouping + ), + matrix_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -951,46 +1056,74 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig { override.returns({ key: String, value: T.nilable(String) }) } + def to_hash + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values - sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } + sig do + params(dimension_values: T::Array[T.nilable(String)]).returns( + T.attached_class + ) + end def self.new( # The ordered dimension values for this line item. dimension_values: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { dimension_values: T::Array[T.nilable(String)] } + ) + end + def to_hash + end end end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash) - ) - ) - .void + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping::OrHash + ) + ).void end attr_writer :grouping @@ -1000,14 +1133,18 @@ module Orb sig { returns(Float) } attr_accessor :quantity - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig) } + sig do + returns( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig + ) + end attr_reader :tier_config sig do params( - tier_config: T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash) - ) - .void + tier_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig::OrHash + ).void end attr_writer :tier_config @@ -1017,15 +1154,16 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping, Orb::Internal::AnyHash) - ), + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping::OrHash + ), name: String, quantity: Float, - tier_config: T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig, Orb::Internal::AnyHash), + tier_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig::OrHash, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -1035,23 +1173,31 @@ module Orb quantity:, tier_config:, type: :tier - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::Grouping + ), + name: String, + quantity: Float, + tier_config: + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::TierConfig, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -1059,17 +1205,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig { override.returns({ key: String, value: T.nilable(String) }) } + def to_hash + end end class TierConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Float) } attr_accessor :first_unit @@ -1086,28 +1241,46 @@ module Orb unit_amount: String ).returns(T.attached_class) end - def self.new(first_unit:, last_unit:, unit_amount:); end + def self.new(first_unit:, last_unit:, unit_amount:) + end - sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } - def to_hash; end + sig do + override.returns( + { + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + } + ) + end + def to_hash + end end end class Null < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The total amount for this sub line item. sig { returns(String) } attr_accessor :amount - sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping)) } + sig do + returns( + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping + ) + ) + end attr_reader :grouping sig do params( - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping, Orb::Internal::AnyHash) - ) - ) - .void + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping::OrHash + ) + ).void end attr_writer :grouping @@ -1123,14 +1296,14 @@ module Orb sig do params( amount: String, - grouping: T.nilable( - T.any(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping, Orb::Internal::AnyHash) - ), + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping::OrHash + ), name: String, quantity: Float, type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The total amount for this sub line item. @@ -1139,22 +1312,29 @@ module Orb name:, quantity:, type: :"'null'" - ); end + ) + end + sig do - override - .returns( - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping), - name: String, - quantity: Float, - type: Symbol - } - ) + override.returns( + { + amount: String, + grouping: + T.nilable( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::Grouping + ), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_hash; end class Grouping < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :key @@ -1162,27 +1342,38 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :value - sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } + sig do + params(key: String, value: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( key:, # No value indicates the default group value: - ); end - sig { override.returns({key: String, value: T.nilable(String)}) } - def to_hash; end + ) + end + + sig { override.returns({ key: String, value: T.nilable(String) }) } + def to_hash + end end end sig do - override - .returns( - [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null] - ) + override.returns( + T::Array[ + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Variants + ] + ) + end + def self.variants end - def self.variants; end end class TaxAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The amount of additional tax incurred by this tax rate. sig { returns(String) } attr_accessor :amount @@ -1196,8 +1387,11 @@ module Orb attr_accessor :tax_rate_percentage sig do - params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) - .returns(T.attached_class) + params( + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The amount of additional tax incurred by this tax rate. @@ -1206,7 +1400,9 @@ module Orb tax_rate_description:, # The tax rate percentage, out of 100. tax_rate_percentage: - ); end + ) + end + sig do override.returns( { @@ -1216,7 +1412,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_list_params.rbi b/rbi/orb/models/invoice_list_params.rbi index b4cbb4a1..db3a1ada 100644 --- a/rbi/orb/models/invoice_list_params.rbi +++ b/rbi/orb/models/invoice_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :amount @@ -23,7 +25,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :customer_id - sig { returns(T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol)) } + sig { returns(T.nilable(Orb::InvoiceListParams::DateType::OrSymbol)) } attr_accessor :date_type sig { returns(T.nilable(Date)) } @@ -67,7 +69,9 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { returns(T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol])) } + sig do + returns(T.nilable(T::Array[Orb::InvoiceListParams::Status::OrSymbol])) + end attr_accessor :status sig { returns(T.nilable(String)) } @@ -80,7 +84,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), + date_type: T.nilable(Orb::InvoiceListParams::DateType::OrSymbol), due_date: T.nilable(Date), due_date_window: T.nilable(String), due_date_gt: T.nilable(Date), @@ -92,11 +96,10 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), + status: T.nilable(T::Array[Orb::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( amount: nil, @@ -126,63 +129,80 @@ module Orb status: nil, subscription_id: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - amount: T.nilable(String), - amount_gt: T.nilable(String), - amount_lt: T.nilable(String), - cursor: T.nilable(String), - customer_id: T.nilable(String), - date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), - due_date: T.nilable(Date), - due_date_window: T.nilable(String), - due_date_gt: T.nilable(Date), - due_date_lt: T.nilable(Date), - external_customer_id: T.nilable(String), - invoice_date_gt: T.nilable(Time), - invoice_date_gte: T.nilable(Time), - invoice_date_lt: T.nilable(Time), - invoice_date_lte: T.nilable(Time), - is_recurring: T.nilable(T::Boolean), - limit: Integer, - status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), - subscription_id: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + amount: T.nilable(String), + amount_gt: T.nilable(String), + amount_lt: T.nilable(String), + cursor: T.nilable(String), + customer_id: T.nilable(String), + date_type: T.nilable(Orb::InvoiceListParams::DateType::OrSymbol), + due_date: T.nilable(Date), + due_date_window: T.nilable(String), + due_date_gt: T.nilable(Date), + due_date_lt: T.nilable(Date), + external_customer_id: T.nilable(String), + invoice_date_gt: T.nilable(Time), + invoice_date_gte: T.nilable(Time), + invoice_date_lt: T.nilable(Time), + invoice_date_lte: T.nilable(Time), + is_recurring: T.nilable(T::Boolean), + limit: Integer, + status: + T.nilable(T::Array[Orb::InvoiceListParams::Status::OrSymbol]), + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module DateType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::DateType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::InvoiceListParams::DateType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DUE_DATE = T.let(:due_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) - INVOICE_DATE = T.let(:invoice_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) + DUE_DATE = + T.let(:due_date, Orb::InvoiceListParams::DateType::TaggedSymbol) + INVOICE_DATE = + T.let(:invoice_date, Orb::InvoiceListParams::DateType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::InvoiceListParams::DateType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::InvoiceListParams::DateType::TaggedSymbol] + ) + end + def self.values + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::Status) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::InvoiceListParams::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DRAFT = T.let(:draft, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - ISSUED = T.let(:issued, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - PAID = T.let(:paid, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - SYNCED = T.let(:synced, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - VOID = T.let(:void, Orb::Models::InvoiceListParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::InvoiceListParams::Status::TaggedSymbol) + ISSUED = T.let(:issued, Orb::InvoiceListParams::Status::TaggedSymbol) + PAID = T.let(:paid, Orb::InvoiceListParams::Status::TaggedSymbol) + SYNCED = T.let(:synced, Orb::InvoiceListParams::Status::TaggedSymbol) + VOID = T.let(:void, Orb::InvoiceListParams::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::InvoiceListParams::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::InvoiceListParams::Status::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/invoice_mark_paid_params.rbi b/rbi/orb/models/invoice_mark_paid_params.rbi index db2b9226..91b2b12d 100644 --- a/rbi/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/orb/models/invoice_mark_paid_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A date string to specify the date of the payment. sig { returns(Date) } attr_accessor :payment_received_date @@ -23,9 +25,8 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # A date string to specify the date of the payment. @@ -35,19 +36,21 @@ module Orb # An optional note to associate with the payment. notes: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - payment_received_date: Date, - external_id: T.nilable(String), - notes: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + payment_received_date: Date, + external_id: T.nilable(String), + notes: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/invoice_pay_params.rbi b/rbi/orb/models/invoice_pay_params.rbi index d38cfa1d..f1b6c7ae 100644 --- a/rbi/orb/models/invoice_pay_params.rbi +++ b/rbi/orb/models/invoice_pay_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/invoice_update_params.rbi b/rbi/orb/models/invoice_update_params.rbi index e5af4e83..ad31fe95 100644 --- a/rbi/orb/models/invoice_update_params.rbi +++ b/rbi/orb/models/invoice_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. @@ -15,9 +17,8 @@ module Orb sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # User-specified key/value pairs for the resource. Individual keys can be removed @@ -25,15 +26,19 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns({ - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - }) + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/invoice_void_params.rbi b/rbi/orb/models/invoice_void_params.rbi index 33cc29cd..38adbd83 100644 --- a/rbi/orb/models/invoice_void_params.rbi +++ b/rbi/orb/models/invoice_void_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/item.rbi b/rbi/orb/models/item.rbi index 4d74d845..be12cfd4 100644 --- a/rbi/orb/models/item.rbi +++ b/rbi/orb/models/item.rbi @@ -3,13 +3,15 @@ module Orb module Models class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { returns(Time) } attr_accessor :created_at - sig { returns(T::Array[Orb::Models::Item::ExternalConnection]) } + sig { returns(T::Array[Orb::Item::ExternalConnection]) } attr_accessor :external_connections sig { returns(String) } @@ -22,28 +24,34 @@ module Orb params( id: String, created_at: Time, - external_connections: T::Array[T.any(Orb::Models::Item::ExternalConnection, Orb::Internal::AnyHash)], + external_connections: T::Array[Orb::Item::ExternalConnection::OrHash], name: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(id:, created_at:, external_connections:, name:) end - def self.new(id:, created_at:, external_connections:, name:); end sig do - override - .returns( - { - id: String, - created_at: Time, - external_connections: T::Array[Orb::Models::Item::ExternalConnection], - name: String - } - ) + override.returns( + { + id: String, + created_at: Time, + external_connections: T::Array[Orb::Item::ExternalConnection], + name: String + } + ) + end + def to_hash end - def to_hash; end class ExternalConnection < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + end attr_accessor :external_connection_name sig { returns(String) } @@ -51,43 +59,83 @@ module Orb sig do params( - external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::OrSymbol, + external_connection_name: + Orb::Item::ExternalConnection::ExternalConnectionName::OrSymbol, external_entity_id: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(external_connection_name:, external_entity_id:) end - def self.new(external_connection_name:, external_entity_id:); end sig do - override - .returns( - { - external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol, - external_entity_id: String - } - ) + override.returns( + { + external_connection_name: + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol, + external_entity_id: String + } + ) + end + def to_hash end - def to_hash; end module ExternalConnectionName extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName) } + T.type_alias do + T.all( + Symbol, + Orb::Item::ExternalConnection::ExternalConnectionName + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - STRIPE = T.let(:stripe, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + STRIPE = + T.let( + :stripe, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) QUICKBOOKS = - T.let(:quickbooks, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :quickbooks, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) BILL_COM = - T.let(:"bill.com", Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) - NETSUITE = T.let(:netsuite, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) - TAXJAR = T.let(:taxjar, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) - AVALARA = T.let(:avalara, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) - ANROK = T.let(:anrok, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol]) } - def self.values; end + T.let( + :"bill.com", + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + TAXJAR = + T.let( + :taxjar, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + AVALARA = + T.let( + :avalara, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + ANROK = + T.let( + :anrok, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/item_create_params.rbi b/rbi/orb/models/item_create_params.rbi index 6aa353f9..cb2dc14e 100644 --- a/rbi/orb/models/item_create_params.rbi +++ b/rbi/orb/models/item_create_params.rbi @@ -6,21 +6,30 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The name of the item. sig { returns(String) } attr_accessor :name sig do - params(name: String, request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)) - .returns(T.attached_class) + params( + name: String, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The name of the item. name:, request_options: {} - ); end - sig { override.returns({name: String, request_options: Orb::RequestOptions}) } - def to_hash; end + ) + end + + sig do + override.returns({ name: String, request_options: Orb::RequestOptions }) + end + def to_hash + end end end end diff --git a/rbi/orb/models/item_fetch_params.rbi b/rbi/orb/models/item_fetch_params.rbi index 9c251146..abae7602 100644 --- a/rbi/orb/models/item_fetch_params.rbi +++ b/rbi/orb/models/item_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/item_list_params.rbi b/rbi/orb/models/item_list_params.rbi index b7bcf459..0c7f116b 100644 --- a/rbi/orb/models/item_list_params.rbi +++ b/rbi/orb/models/item_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -22,9 +24,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -33,11 +34,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/item_update_params.rbi b/rbi/orb/models/item_update_params.rbi index 3a191ad0..240bb149 100644 --- a/rbi/orb/models/item_update_params.rbi +++ b/rbi/orb/models/item_update_params.rbi @@ -6,7 +6,11 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns(T.nilable(T::Array[Orb::ItemUpdateParams::ExternalConnection])) + end attr_accessor :external_connections sig { returns(T.nilable(String)) } @@ -14,28 +18,38 @@ module Orb sig do params( - external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Internal::AnyHash)]), + external_connections: + T.nilable( + T::Array[Orb::ItemUpdateParams::ExternalConnection::OrHash] + ), name: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(external_connections: nil, name: nil, request_options: {}) end - def self.new(external_connections: nil, name: nil, request_options: {}); end sig do - override - .returns( - { - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), - name: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + external_connections: + T.nilable(T::Array[Orb::ItemUpdateParams::ExternalConnection]), + name: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class ExternalConnection < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol + ) + end attr_accessor :external_connection_name sig { returns(String) } @@ -43,57 +57,83 @@ module Orb sig do params( - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_connection_name: + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, external_entity_id: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(external_connection_name:, external_entity_id:) end - def self.new(external_connection_name:, external_entity_id:); end sig do - override - .returns( - { - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, - external_entity_id: String - } - ) + override.returns( + { + external_connection_name: + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + } + ) + end + def to_hash end - def to_hash; end module ExternalConnectionName extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName) } + T.type_alias do + T.all( + Symbol, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } STRIPE = - T.let(:stripe, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :stripe, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) QUICKBOOKS = T.let( :quickbooks, - Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol ) BILL_COM = T.let( :"bill.com", - Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol ) NETSUITE = - T.let(:netsuite, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :netsuite, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) TAXJAR = - T.let(:taxjar, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :taxjar, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) AVALARA = - T.let(:avalara, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :avalara, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) ANROK = - T.let(:anrok, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + T.let( + :anrok, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol]) + override.returns( + T::Array[ + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/metric_create_params.rbi b/rbi/orb/models/metric_create_params.rbi index 7cc40ee1..2dc4c48f 100644 --- a/rbi/orb/models/metric_create_params.rbi +++ b/rbi/orb/models/metric_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A description of the metric. sig { returns(T.nilable(String)) } attr_accessor :description @@ -35,9 +37,8 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # A description of the metric. @@ -53,21 +54,23 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - description: T.nilable(String), - item_id: String, - name: String, - sql: String, - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + description: T.nilable(String), + item_id: String, + name: String, + sql: String, + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/metric_fetch_params.rbi b/rbi/orb/models/metric_fetch_params.rbi index a5e618d5..98a392af 100644 --- a/rbi/orb/models/metric_fetch_params.rbi +++ b/rbi/orb/models/metric_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/metric_list_params.rbi b/rbi/orb/models/metric_list_params.rbi index 93fb394e..008259b7 100644 --- a/rbi/orb/models/metric_list_params.rbi +++ b/rbi/orb/models/metric_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -38,9 +40,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -53,22 +54,24 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/metric_update_params.rbi b/rbi/orb/models/metric_update_params.rbi index 384e56da..79ada9fd 100644 --- a/rbi/orb/models/metric_update_params.rbi +++ b/rbi/orb/models/metric_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. @@ -15,9 +17,8 @@ module Orb sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # User-specified key/value pairs for the resource. Individual keys can be removed @@ -25,15 +26,19 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns({ - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - }) + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/pagination_metadata.rbi b/rbi/orb/models/pagination_metadata.rbi index 8f9b010e..f5198cfc 100644 --- a/rbi/orb/models/pagination_metadata.rbi +++ b/rbi/orb/models/pagination_metadata.rbi @@ -3,17 +3,29 @@ module Orb module Models class PaginationMetadata < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :has_more sig { returns(T.nilable(String)) } attr_accessor :next_cursor - sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } - def self.new(has_more:, next_cursor:); end + sig do + params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns( + T.attached_class + ) + end + def self.new(has_more:, next_cursor:) + end - sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } - def to_hash; end + sig do + override.returns( + { has_more: T::Boolean, next_cursor: T.nilable(String) } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/percentage_discount.rbi b/rbi/orb/models/percentage_discount.rbi index 494a6ef4..c0719b3f 100644 --- a/rbi/orb/models/percentage_discount.rbi +++ b/rbi/orb/models/percentage_discount.rbi @@ -3,12 +3,14 @@ module Orb module Models class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids - sig { returns(Orb::Models::PercentageDiscount::DiscountType::OrSymbol) } + sig { returns(Orb::PercentageDiscount::DiscountType::OrSymbol) } attr_accessor :discount_type # Only available if discount_type is `percentage`. This is a number between 0 @@ -22,11 +24,10 @@ module Orb sig do params( applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, + discount_type: Orb::PercentageDiscount::DiscountType::OrSymbol, percentage_discount: Float, reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # List of price_ids that this discount applies to. For plan/plan phase discounts, @@ -37,30 +38,42 @@ module Orb # and 1. percentage_discount:, reason: nil - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, - percentage_discount: Float, - reason: T.nilable(String) - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Orb::PercentageDiscount::DiscountType::OrSymbol, + percentage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PercentageDiscount::DiscountType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::PercentageDiscount::DiscountType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - PERCENTAGE = T.let(:percentage, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) + PERCENTAGE = + T.let( + :percentage, + Orb::PercentageDiscount::DiscountType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::PercentageDiscount::DiscountType::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/plan.rbi b/rbi/orb/models/plan.rbi index fe425534..34012894 100644 --- a/rbi/orb/models/plan.rbi +++ b/rbi/orb/models/plan.rbi @@ -3,6 +3,8 @@ module Orb module Models class Plan < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -12,21 +14,21 @@ module Orb returns( T::Array[ T.any( - Orb::Models::Plan::Adjustment::UsageDiscount, - Orb::Models::Plan::Adjustment::AmountDiscount, - Orb::Models::Plan::Adjustment::PercentageDiscount, - Orb::Models::Plan::Adjustment::Minimum, - Orb::Models::Plan::Adjustment::Maximum + Orb::Plan::Adjustment::UsageDiscount, + Orb::Plan::Adjustment::AmountDiscount, + Orb::Plan::Adjustment::PercentageDiscount, + Orb::Plan::Adjustment::Minimum, + Orb::Plan::Adjustment::Maximum ) ] ) end attr_accessor :adjustments - sig { returns(T.nilable(Orb::Models::Plan::BasePlan)) } + sig { returns(T.nilable(Orb::Plan::BasePlan)) } attr_reader :base_plan - sig { params(base_plan: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Internal::AnyHash))).void } + sig { params(base_plan: T.nilable(Orb::Plan::BasePlan::OrHash)).void } attr_writer :base_plan # The parent plan id if the given plan was created by overriding one or more of @@ -54,10 +56,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -75,10 +77,10 @@ module Orb sig { returns(String) } attr_accessor :invoicing_currency - sig { returns(T.nilable(Orb::Models::Plan::Maximum)) } + sig { returns(T.nilable(Orb::Plan::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Internal::AnyHash))).void } + sig { params(maximum: T.nilable(Orb::Plan::Maximum::OrHash)).void } attr_writer :maximum sig { returns(T.nilable(String)) } @@ -91,10 +93,10 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Plan::Minimum)) } + sig { returns(T.nilable(Orb::Plan::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Internal::AnyHash))).void } + sig { params(minimum: T.nilable(Orb::Plan::Minimum::OrHash)).void } attr_writer :minimum sig { returns(T.nilable(String)) } @@ -111,7 +113,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :net_terms - sig { returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) } + sig { returns(T.nilable(T::Array[Orb::Plan::PlanPhase])) } attr_accessor :plan_phases # Prices for this plan. If the plan has phases, this includes prices across all @@ -120,53 +122,53 @@ module Orb returns( T::Array[ T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ] ) end attr_accessor :prices - sig { returns(Orb::Models::Plan::Product) } + sig { returns(Orb::Plan::Product) } attr_reader :product - sig { params(product: T.any(Orb::Models::Plan::Product, Orb::Internal::AnyHash)).void } + sig { params(product: Orb::Plan::Product::OrHash).void } attr_writer :product - sig { returns(Orb::Models::Plan::Status::TaggedSymbol) } + sig { returns(Orb::Plan::Status::TaggedSymbol) } attr_accessor :status - sig { returns(Orb::Models::Plan::TrialConfig) } + sig { returns(Orb::Plan::TrialConfig) } attr_reader :trial_config - sig { params(trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Internal::AnyHash)).void } + sig { params(trial_config: Orb::Plan::TrialConfig::OrHash).void } attr_writer :trial_config sig { returns(Integer) } @@ -179,80 +181,79 @@ module Orb sig do params( id: String, - adjustments: T::Array[ - T.any( - Orb::Models::Plan::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::Plan::Adjustment::AmountDiscount, - Orb::Models::Plan::Adjustment::PercentageDiscount, - Orb::Models::Plan::Adjustment::Minimum, - Orb::Models::Plan::Adjustment::Maximum - ) - ], - base_plan: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Internal::AnyHash)), + adjustments: + T::Array[ + T.any( + Orb::Plan::Adjustment::UsageDiscount::OrHash, + Orb::Plan::Adjustment::AmountDiscount::OrHash, + Orb::Plan::Adjustment::PercentageDiscount::OrHash, + Orb::Plan::Adjustment::Minimum::OrHash, + Orb::Plan::Adjustment::Maximum::OrHash + ) + ], + base_plan: T.nilable(Orb::Plan::BasePlan::OrHash), base_plan_id: T.nilable(String), created_at: Time, currency: String, default_invoice_memo: T.nilable(String), description: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_plan_id: T.nilable(String), invoicing_currency: String, - maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Internal::AnyHash)), + maximum: T.nilable(Orb::Plan::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Plan::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[T.any(Orb::Models::Plan::PlanPhase, Orb::Internal::AnyHash)]), - prices: T::Array[ - T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) - ], - product: T.any(Orb::Models::Plan::Product, Orb::Internal::AnyHash), - status: Orb::Models::Plan::Status::OrSymbol, - trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Internal::AnyHash), + plan_phases: T.nilable(T::Array[Orb::Plan::PlanPhase::OrHash]), + prices: + T::Array[ + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ) + ], + product: Orb::Plan::Product::OrHash, + status: Orb::Plan::Status::OrSymbol, + trial_config: Orb::Plan::TrialConfig::OrHash, version: Integer - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -303,90 +304,108 @@ module Orb status:, trial_config:, version: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustments: T::Array[ + override.returns( + { + id: String, + adjustments: + T::Array[ T.any( - Orb::Models::Plan::Adjustment::UsageDiscount, - Orb::Models::Plan::Adjustment::AmountDiscount, - Orb::Models::Plan::Adjustment::PercentageDiscount, - Orb::Models::Plan::Adjustment::Minimum, - Orb::Models::Plan::Adjustment::Maximum + Orb::Plan::Adjustment::UsageDiscount, + Orb::Plan::Adjustment::AmountDiscount, + Orb::Plan::Adjustment::PercentageDiscount, + Orb::Plan::Adjustment::Minimum, + Orb::Plan::Adjustment::Maximum ) ], - base_plan: T.nilable(Orb::Models::Plan::BasePlan), - base_plan_id: T.nilable(String), - created_at: Time, - currency: String, - default_invoice_memo: T.nilable(String), - description: String, - discount: T.nilable( + base_plan: T.nilable(Orb::Plan::BasePlan), + base_plan_id: T.nilable(String), + created_at: Time, + currency: String, + default_invoice_memo: T.nilable(String), + description: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_plan_id: T.nilable(String), - invoicing_currency: String, - maximum: T.nilable(Orb::Models::Plan::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Plan::Minimum), - minimum_amount: T.nilable(String), - name: String, - net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), - prices: T::Array[ + external_plan_id: T.nilable(String), + invoicing_currency: String, + maximum: T.nilable(Orb::Plan::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Plan::Minimum), + minimum_amount: T.nilable(String), + name: String, + net_terms: T.nilable(Integer), + plan_phases: T.nilable(T::Array[Orb::Plan::PlanPhase]), + prices: + T::Array[ T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ], - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status::TaggedSymbol, - trial_config: Orb::Models::Plan::TrialConfig, - version: Integer - } - ) + product: Orb::Plan::Product, + status: Orb::Plan::Status::TaggedSymbol, + trial_config: Orb::Plan::TrialConfig, + version: Integer + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Plan::Adjustment::UsageDiscount, + Orb::Plan::Adjustment::AmountDiscount, + Orb::Plan::Adjustment::PercentageDiscount, + Orb::Plan::Adjustment::Minimum, + Orb::Plan::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -424,8 +443,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -442,25 +460,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -498,8 +520,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -516,25 +537,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -572,8 +597,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -590,25 +614,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -651,8 +679,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -671,26 +698,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -728,8 +759,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -746,34 +776,34 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end - sig do - override - .returns( - [Orb::Models::Plan::Adjustment::UsageDiscount, Orb::Models::Plan::Adjustment::AmountDiscount, Orb::Models::Plan::Adjustment::PercentageDiscount, Orb::Models::Plan::Adjustment::Minimum, Orb::Models::Plan::Adjustment::Maximum] - ) + sig { override.returns(T::Array[Orb::Plan::Adjustment::Variants]) } + def self.variants end - def self.variants; end end class BasePlan < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :id @@ -787,8 +817,11 @@ module Orb attr_accessor :name sig do - params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) - .returns(T.attached_class) + params( + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String) + ).returns(T.attached_class) end def self.new( id:, @@ -797,7 +830,9 @@ module Orb # identifier in your system. external_plan_id:, name: - ); end + ) + end + sig do override.returns( { @@ -807,10 +842,13 @@ module Orb } ) end - def to_hash; end + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -821,7 +859,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -829,12 +870,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -845,7 +895,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -853,12 +906,21 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end class PlanPhase < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -869,10 +931,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -884,22 +946,28 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :duration - sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol)) } + sig do + returns(T.nilable(Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol)) + end attr_accessor :duration_unit - sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) } + sig { returns(T.nilable(Orb::Plan::PlanPhase::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Plan::PlanPhase::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } attr_accessor :maximum_amount - sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) } + sig { returns(T.nilable(Orb::Plan::PlanPhase::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Plan::PlanPhase::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -916,25 +984,25 @@ module Orb params( id: String, description: T.nilable(String), - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), duration: T.nilable(Integer), - duration_unit: T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::OrSymbol), - maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Internal::AnyHash)), + duration_unit: + T.nilable(Orb::Plan::PlanPhase::DurationUnit::OrSymbol), + maximum: T.nilable(Orb::Plan::PlanPhase::Maximum::OrHash), maximum_amount: T.nilable(String), - minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Plan::PlanPhase::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, order: Integer - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -951,51 +1019,71 @@ module Orb name:, # Determines the ordering of the phase in a plan's lifecycle. 1 = first phase. order: - ); end + ) + end + sig do - override - .returns( - { - id: String, - description: T.nilable(String), - discount: T.nilable( + override.returns( + { + id: String, + description: T.nilable(String), + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - duration: T.nilable(Integer), - duration_unit: T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol), - maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), - minimum_amount: T.nilable(String), - name: String, - order: Integer - } - ) + duration: T.nilable(Integer), + duration_unit: + T.nilable(Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol), + maximum: T.nilable(Orb::Plan::PlanPhase::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Plan::PlanPhase::Minimum), + minimum_amount: T.nilable(String), + name: String, + order: Integer + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::PlanPhase::DurationUnit) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Plan::PlanPhase::DurationUnit) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DAILY = T.let(:daily, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) + DAILY = + T.let(:daily, Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Plan::PlanPhase::DurationUnit::TaggedSymbol] + ) + end + def self.values + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1006,7 +1094,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1014,12 +1105,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1030,7 +1130,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1038,13 +1141,22 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end end class Product < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1054,64 +1166,83 @@ module Orb sig { returns(String) } attr_accessor :name - sig { params(id: String, created_at: Time, name: String).returns(T.attached_class) } - def self.new(id:, created_at:, name:); end + sig do + params(id: String, created_at: Time, name: String).returns( + T.attached_class + ) + end + def self.new(id:, created_at:, name:) + end - sig { override.returns({id: String, created_at: Time, name: String}) } - def to_hash; end + sig { override.returns({ id: String, created_at: Time, name: String }) } + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::Status) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Plan::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::Plan::Status::TaggedSymbol) - ARCHIVED = T.let(:archived, Orb::Models::Plan::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::Plan::Status::TaggedSymbol) + ACTIVE = T.let(:active, Orb::Plan::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::Plan::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Plan::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Plan::Status::TaggedSymbol]) } - def self.values; end + sig { override.returns(T::Array[Orb::Plan::Status::TaggedSymbol]) } + def self.values + end end class TrialConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Integer)) } attr_accessor :trial_period - sig { returns(Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } + sig { returns(Orb::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } attr_accessor :trial_period_unit sig do params( trial_period: T.nilable(Integer), - trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::OrSymbol - ) - .returns(T.attached_class) + trial_period_unit: Orb::Plan::TrialConfig::TrialPeriodUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(trial_period:, trial_period_unit:) end - def self.new(trial_period:, trial_period_unit:); end sig do - override - .returns( - { - trial_period: T.nilable(Integer), - trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol - } - ) + override.returns( + { + trial_period: T.nilable(Integer), + trial_period_unit: + Orb::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module TrialPeriodUnit extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Plan::TrialConfig::TrialPeriodUnit) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAYS = T.let(:days, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) + DAYS = + T.let(:days, Orb::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/plan_create_params.rbi b/rbi/orb/models/plan_create_params.rbi index 7f13767d..e7708e5e 100644 --- a/rbi/orb/models/plan_create_params.rbi +++ b/rbi/orb/models/plan_create_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An ISO 4217 currency string for invoices generated by subscriptions on this # plan. sig { returns(String) } @@ -20,31 +22,31 @@ module Orb returns( T::Array[ T.any( - Orb::Models::PlanCreateParams::Price::Unit, - Orb::Models::PlanCreateParams::Price::Package, - Orb::Models::PlanCreateParams::Price::Matrix, - Orb::Models::PlanCreateParams::Price::Tiered, - Orb::Models::PlanCreateParams::Price::TieredBps, - Orb::Models::PlanCreateParams::Price::Bps, - Orb::Models::PlanCreateParams::Price::BulkBps, - Orb::Models::PlanCreateParams::Price::Bulk, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, - Orb::Models::PlanCreateParams::Price::TieredPackage, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum, - Orb::Models::PlanCreateParams::Price::UnitWithPercent, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation, - Orb::Models::PlanCreateParams::Price::TieredWithProration, - Orb::Models::PlanCreateParams::Price::UnitWithProration, - Orb::Models::PlanCreateParams::Price::GroupedAllocation, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, - Orb::Models::PlanCreateParams::Price::BulkWithProration, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk + Orb::PlanCreateParams::Price::Unit, + Orb::PlanCreateParams::Price::Package, + Orb::PlanCreateParams::Price::Matrix, + Orb::PlanCreateParams::Price::Tiered, + Orb::PlanCreateParams::Price::TieredBps, + Orb::PlanCreateParams::Price::Bps, + Orb::PlanCreateParams::Price::BulkBps, + Orb::PlanCreateParams::Price::Bulk, + Orb::PlanCreateParams::Price::ThresholdTotalAmount, + Orb::PlanCreateParams::Price::TieredPackage, + Orb::PlanCreateParams::Price::TieredWithMinimum, + Orb::PlanCreateParams::Price::UnitWithPercent, + Orb::PlanCreateParams::Price::PackageWithAllocation, + Orb::PlanCreateParams::Price::TieredWithProration, + Orb::PlanCreateParams::Price::UnitWithProration, + Orb::PlanCreateParams::Price::GroupedAllocation, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, + Orb::PlanCreateParams::Price::MatrixWithDisplayName, + Orb::PlanCreateParams::Price::BulkWithProration, + Orb::PlanCreateParams::Price::GroupedTieredPackage, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk ) ] ) @@ -72,54 +74,53 @@ module Orb # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Status::OrSymbol)) } + sig { returns(T.nilable(Orb::PlanCreateParams::Status::OrSymbol)) } attr_reader :status - sig { params(status: Orb::Models::PlanCreateParams::Status::OrSymbol).void } + sig { params(status: Orb::PlanCreateParams::Status::OrSymbol).void } attr_writer :status sig do params( currency: String, name: String, - prices: T::Array[ - T.any( - Orb::Models::PlanCreateParams::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::PlanCreateParams::Price::Package, - Orb::Models::PlanCreateParams::Price::Matrix, - Orb::Models::PlanCreateParams::Price::Tiered, - Orb::Models::PlanCreateParams::Price::TieredBps, - Orb::Models::PlanCreateParams::Price::Bps, - Orb::Models::PlanCreateParams::Price::BulkBps, - Orb::Models::PlanCreateParams::Price::Bulk, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, - Orb::Models::PlanCreateParams::Price::TieredPackage, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum, - Orb::Models::PlanCreateParams::Price::UnitWithPercent, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation, - Orb::Models::PlanCreateParams::Price::TieredWithProration, - Orb::Models::PlanCreateParams::Price::UnitWithProration, - Orb::Models::PlanCreateParams::Price::GroupedAllocation, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, - Orb::Models::PlanCreateParams::Price::BulkWithProration, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk - ) - ], + prices: + T::Array[ + T.any( + Orb::PlanCreateParams::Price::Unit::OrHash, + Orb::PlanCreateParams::Price::Package::OrHash, + Orb::PlanCreateParams::Price::Matrix::OrHash, + Orb::PlanCreateParams::Price::Tiered::OrHash, + Orb::PlanCreateParams::Price::TieredBps::OrHash, + Orb::PlanCreateParams::Price::Bps::OrHash, + Orb::PlanCreateParams::Price::BulkBps::OrHash, + Orb::PlanCreateParams::Price::Bulk::OrHash, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::OrHash, + Orb::PlanCreateParams::Price::TieredPackage::OrHash, + Orb::PlanCreateParams::Price::TieredWithMinimum::OrHash, + Orb::PlanCreateParams::Price::UnitWithPercent::OrHash, + Orb::PlanCreateParams::Price::PackageWithAllocation::OrHash, + Orb::PlanCreateParams::Price::TieredWithProration::OrHash, + Orb::PlanCreateParams::Price::UnitWithProration::OrHash, + Orb::PlanCreateParams::Price::GroupedAllocation::OrHash, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::OrHash, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::OrHash, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::OrHash, + Orb::PlanCreateParams::Price::BulkWithProration::OrHash, + Orb::PlanCreateParams::Price::GroupedTieredPackage::OrHash, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::OrHash, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::OrHash + ) + ], default_invoice_memo: T.nilable(String), external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Orb::Models::PlanCreateParams::Status::OrSymbol, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + status: Orb::PlanCreateParams::Status::OrSymbol, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # An ISO 4217 currency string for invoices generated by subscriptions on this @@ -144,59 +145,95 @@ module Orb # this defaults to active. status: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: String, - name: String, - prices: T::Array[ + override.returns( + { + currency: String, + name: String, + prices: + T::Array[ T.any( - Orb::Models::PlanCreateParams::Price::Unit, - Orb::Models::PlanCreateParams::Price::Package, - Orb::Models::PlanCreateParams::Price::Matrix, - Orb::Models::PlanCreateParams::Price::Tiered, - Orb::Models::PlanCreateParams::Price::TieredBps, - Orb::Models::PlanCreateParams::Price::Bps, - Orb::Models::PlanCreateParams::Price::BulkBps, - Orb::Models::PlanCreateParams::Price::Bulk, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, - Orb::Models::PlanCreateParams::Price::TieredPackage, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum, - Orb::Models::PlanCreateParams::Price::UnitWithPercent, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation, - Orb::Models::PlanCreateParams::Price::TieredWithProration, - Orb::Models::PlanCreateParams::Price::UnitWithProration, - Orb::Models::PlanCreateParams::Price::GroupedAllocation, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, - Orb::Models::PlanCreateParams::Price::BulkWithProration, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk + Orb::PlanCreateParams::Price::Unit, + Orb::PlanCreateParams::Price::Package, + Orb::PlanCreateParams::Price::Matrix, + Orb::PlanCreateParams::Price::Tiered, + Orb::PlanCreateParams::Price::TieredBps, + Orb::PlanCreateParams::Price::Bps, + Orb::PlanCreateParams::Price::BulkBps, + Orb::PlanCreateParams::Price::Bulk, + Orb::PlanCreateParams::Price::ThresholdTotalAmount, + Orb::PlanCreateParams::Price::TieredPackage, + Orb::PlanCreateParams::Price::TieredWithMinimum, + Orb::PlanCreateParams::Price::UnitWithPercent, + Orb::PlanCreateParams::Price::PackageWithAllocation, + Orb::PlanCreateParams::Price::TieredWithProration, + Orb::PlanCreateParams::Price::UnitWithProration, + Orb::PlanCreateParams::Price::GroupedAllocation, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, + Orb::PlanCreateParams::Price::MatrixWithDisplayName, + Orb::PlanCreateParams::Price::BulkWithProration, + Orb::PlanCreateParams::Price::GroupedTieredPackage, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk ) ], - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - status: Orb::Models::PlanCreateParams::Status::OrSymbol, - request_options: Orb::RequestOptions - } - ) + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + status: Orb::PlanCreateParams::Status::OrSymbol, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Unit, + Orb::PlanCreateParams::Price::Package, + Orb::PlanCreateParams::Price::Matrix, + Orb::PlanCreateParams::Price::Tiered, + Orb::PlanCreateParams::Price::TieredBps, + Orb::PlanCreateParams::Price::Bps, + Orb::PlanCreateParams::Price::BulkBps, + Orb::PlanCreateParams::Price::Bulk, + Orb::PlanCreateParams::Price::ThresholdTotalAmount, + Orb::PlanCreateParams::Price::TieredPackage, + Orb::PlanCreateParams::Price::TieredWithMinimum, + Orb::PlanCreateParams::Price::UnitWithPercent, + Orb::PlanCreateParams::Price::PackageWithAllocation, + Orb::PlanCreateParams::Price::TieredWithProration, + Orb::PlanCreateParams::Price::UnitWithProration, + Orb::PlanCreateParams::Price::GroupedAllocation, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum, + Orb::PlanCreateParams::Price::MatrixWithDisplayName, + Orb::PlanCreateParams::Price::BulkWithProration, + Orb::PlanCreateParams::Price::GroupedTieredPackage, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Unit::Cadence::OrSymbol) } + sig { returns(Orb::PlanCreateParams::Price::Unit::Cadence::OrSymbol) } attr_accessor :cadence # The id of the item the price will be associated with. @@ -210,12 +247,14 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::PlanCreateParams::Price::Unit::UnitConfig) } + sig { returns(Orb::PlanCreateParams::Price::Unit::UnitConfig) } attr_reader :unit_config sig do - params(unit_config: T.any(Orb::Models::PlanCreateParams::Price::Unit::UnitConfig, Orb::Internal::AnyHash)) - .void + params( + unit_config: + Orb::PlanCreateParams::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -231,16 +270,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -268,16 +313,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -289,27 +340,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::Unit::Cadence::OrSymbol, + cadence: Orb::PlanCreateParams::Price::Unit::Cadence::OrSymbol, item_id: String, name: String, - unit_config: T.any(Orb::Models::PlanCreateParams::Price::Unit::UnitConfig, Orb::Internal::AnyHash), + unit_config: + Orb::PlanCreateParams::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -348,50 +401,94 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::Unit::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::PlanCreateParams::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: Orb::PlanCreateParams::Price::Unit::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Unit::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Unit::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -400,18 +497,27 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -419,63 +525,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -483,60 +605,74 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Package::Cadence::OrSymbol) } + sig do + returns(Orb::PlanCreateParams::Price::Package::Cadence::OrSymbol) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -550,14 +686,14 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::PlanCreateParams::Price::Package::PackageConfig) } + sig { returns(Orb::PlanCreateParams::Price::Package::PackageConfig) } attr_reader :package_config sig do params( - package_config: T.any(Orb::Models::PlanCreateParams::Price::Package::PackageConfig, Orb::Internal::AnyHash) - ) - .void + package_config: + Orb::PlanCreateParams::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -573,16 +709,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -610,16 +752,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -631,27 +779,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::Package::Cadence::OrSymbol, + cadence: Orb::PlanCreateParams::Price::Package::Cadence::OrSymbol, item_id: String, name: String, - package_config: T.any(Orb::Models::PlanCreateParams::Price::Package::PackageConfig, Orb::Internal::AnyHash), + package_config: + Orb::PlanCreateParams::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -690,50 +840,96 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::Package::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::PlanCreateParams::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Package::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::PlanCreateParams::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Package::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Package::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Package::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -743,25 +939,42 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -769,57 +982,69 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -827,7 +1052,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -837,74 +1062,88 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Matrix::Cadence::OrSymbol) } + sig do + returns(Orb::PlanCreateParams::Price::Matrix::Cadence::OrSymbol) + end attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig) } + sig { returns(Orb::PlanCreateParams::Price::Matrix::MatrixConfig) } attr_reader :matrix_config sig do params( - matrix_config: T.any(Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig, Orb::Internal::AnyHash) - ) - .void + matrix_config: + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -927,16 +1166,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -964,16 +1209,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - sig do - params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, Orb::Internal::AnyHash) + returns( + T.nilable( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration ) ) - .void + end + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -985,27 +1236,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::Matrix::Cadence::OrSymbol, + cadence: Orb::PlanCreateParams::Price::Matrix::Cadence::OrSymbol, item_id: String, - matrix_config: T.any(Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig, Orb::Internal::AnyHash), + matrix_config: + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1044,50 +1297,96 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::Matrix::Cadence::OrSymbol, - item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Matrix::Cadence::OrSymbol, + item_id: String, + matrix_config: + Orb::PlanCreateParams::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Matrix::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Matrix::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -1097,16 +1396,24 @@ module Orb attr_accessor :dimensions # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue]) } + sig do + returns( + T::Array[ + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue + ] + ) + end attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[T.any(Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1115,20 +1422,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -1152,19 +1467,35 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -1172,63 +1503,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1236,60 +1583,74 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Tiered::Cadence::OrSymbol) } + sig do + returns(Orb::PlanCreateParams::Price::Tiered::Cadence::OrSymbol) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1303,14 +1664,14 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig) } + sig { returns(Orb::PlanCreateParams::Price::Tiered::TieredConfig) } attr_reader :tiered_config sig do params( - tiered_config: T.any(Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig, Orb::Internal::AnyHash) - ) - .void + tiered_config: + Orb::PlanCreateParams::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -1326,16 +1687,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -1363,16 +1730,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -1384,27 +1757,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::Tiered::Cadence::OrSymbol, + cadence: Orb::PlanCreateParams::Price::Tiered::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: T.any(Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig, Orb::Internal::AnyHash), + tiered_config: + Orb::PlanCreateParams::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1443,68 +1818,137 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::Tiered::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Tiered::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::PlanCreateParams::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Tiered::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Tiered::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -1531,19 +1975,36 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end - sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -1551,63 +2012,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -1615,60 +2092,74 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol) } + sig do + returns(Orb::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1682,14 +2173,16 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig) } + sig do + returns(Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig) + end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig, Orb::Internal::AnyHash) - ) - .void + tiered_bps_config: + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -1705,16 +2198,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -1742,19 +2241,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1766,30 +2268,30 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig, Orb::Internal::AnyHash), + tiered_bps_config: + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1828,72 +2330,139 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::TieredBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::TieredBps::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier]}) + override.returns( + { + tiers: + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -1916,8 +2485,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -1928,23 +2496,27 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1952,7 +2524,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1962,57 +2534,69 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2020,7 +2604,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2030,69 +2614,82 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::PlanCreateParams::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::PlanCreateParams::Price::Bps::BpsConfig) } attr_reader :bps_config sig do - params(bps_config: T.any(Orb::Models::PlanCreateParams::Price::Bps::BpsConfig, Orb::Internal::AnyHash)) - .void + params( + bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Bps::Cadence::OrSymbol) } + sig { returns(Orb::PlanCreateParams::Price::Bps::Cadence::OrSymbol) } attr_accessor :cadence # The id of the item the price will be associated with. @@ -2118,16 +2715,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -2155,16 +2758,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -2176,27 +2785,28 @@ module Orb sig do params( - bps_config: T.any(Orb::Models::PlanCreateParams::Price::Bps::BpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::PlanCreateParams::Price::Bps::Cadence::OrSymbol, + bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig::OrHash, + cadence: Orb::PlanCreateParams::Price::Bps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -2235,32 +2845,42 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::PlanCreateParams::Price::Bps::BpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig, + cadence: Orb::PlanCreateParams::Price::Bps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -2269,42 +2889,93 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bps::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Bps::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -2312,63 +2983,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -2376,71 +3063,85 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig) } attr_reader :bulk_bps_config sig do params( - bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig, Orb::Internal::AnyHash) - ) - .void + bulk_bps_config: + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::OrHash + ).void end attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol) } + sig do + returns(Orb::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -2466,16 +3167,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -2503,16 +3210,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -2524,27 +3237,29 @@ module Orb sig do params( - bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: Orb::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -2583,52 +3298,87 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bulk_bps_config: + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::PlanCreateParams::Price::BulkBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -2642,8 +3392,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -2652,7 +3405,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -2662,7 +3417,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -2670,27 +3426,67 @@ module Orb module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::BulkBps::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -2698,57 +3494,69 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2756,7 +3564,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2766,69 +3574,83 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(Orb::PlanCreateParams::Price::Bulk::BulkConfig) } attr_reader :bulk_config sig do - params(bulk_config: T.any(Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig, Orb::Internal::AnyHash)) - .void + params( + bulk_config: + Orb::PlanCreateParams::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::Bulk::Cadence::OrSymbol) } + sig { returns(Orb::PlanCreateParams::Price::Bulk::Cadence::OrSymbol) } attr_accessor :cadence # The id of the item the price will be associated with. @@ -2854,16 +3676,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -2891,16 +3719,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -2912,27 +3746,29 @@ module Orb sig do params( - bulk_config: T.any(Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::PlanCreateParams::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::PlanCreateParams::Price::Bulk::BulkConfig::OrHash, + cadence: Orb::PlanCreateParams::Price::Bulk::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -2971,50 +3807,81 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bulk::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig, + cadence: Orb::PlanCreateParams::Price::Bulk::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier]) } + sig do + returns( + T::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -3023,15 +3890,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -3039,27 +3918,67 @@ module Orb module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bulk::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::PlanCreateParams::Price::Bulk::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -3067,63 +3986,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -3131,60 +4066,76 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3213,19 +4164,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3255,21 +4209,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3281,33 +4234,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -3346,60 +4295,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3407,7 +4394,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3417,26 +4404,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3444,34 +4434,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3479,7 +4474,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3489,26 +4484,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + duration_unit: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The duration of the billing period. + duration:, + # The unit of billing period duration. + duration_unit: + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } ) - .returns(T.attached_class) end - def self.new( - # The duration of the billing period. - duration:, - # The unit of billing period duration. - duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3516,37 +4514,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3575,19 +4582,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3615,19 +4625,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3639,33 +4652,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -3704,52 +4713,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::TieredPackage::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3757,7 +4812,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3767,26 +4822,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3794,32 +4852,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3827,7 +4892,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3837,26 +4902,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3864,37 +4932,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3923,19 +5000,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3963,19 +5043,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3987,33 +5070,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -4052,54 +5131,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4107,7 +5230,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4117,26 +5240,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4144,34 +5270,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4179,7 +5310,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4189,26 +5320,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4216,37 +5350,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4275,19 +5418,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4315,19 +5461,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4339,33 +5488,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -4404,53 +5549,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit_with_percent - ); end - sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + ) + end + + sig do + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4458,7 +5648,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4468,26 +5658,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4495,34 +5688,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4530,7 +5728,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4540,26 +5738,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4567,37 +5768,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4626,19 +5836,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4668,21 +5881,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4694,33 +5906,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -4759,60 +5967,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4820,7 +6066,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4830,26 +6076,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4857,34 +6106,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4892,7 +6146,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4902,26 +6156,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4929,37 +6186,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4988,19 +6254,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5028,19 +6297,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5052,33 +6324,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5117,58 +6385,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5176,7 +6484,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5186,26 +6494,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5213,34 +6524,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5248,7 +6564,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5258,26 +6574,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5285,37 +6604,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -5344,19 +6672,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5384,19 +6715,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5408,33 +6742,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5473,54 +6803,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5528,7 +6902,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5538,26 +6912,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5565,34 +6942,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5600,7 +6982,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5610,26 +6992,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5637,37 +7022,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -5696,19 +7090,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5736,19 +7133,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5760,33 +7160,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5825,54 +7221,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::OrSymbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5880,7 +7320,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5890,26 +7330,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5917,34 +7360,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5952,7 +7400,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5962,26 +7410,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5989,37 +7440,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -6050,21 +7510,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6094,21 +7553,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6120,33 +7578,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6185,63 +7639,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6249,7 +7739,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6259,26 +7749,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6286,34 +7779,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6321,7 +7819,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6331,26 +7829,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6358,37 +7859,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -6419,21 +7929,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6463,21 +7972,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6489,33 +7997,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6554,63 +8058,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6618,7 +8158,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6628,26 +8168,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6655,34 +8198,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6690,7 +8238,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6700,26 +8248,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6727,37 +8278,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -6786,19 +8346,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6828,21 +8391,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6854,33 +8416,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6919,60 +8477,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::OrSymbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6980,7 +8576,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6990,26 +8586,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7017,34 +8616,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7052,7 +8656,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7062,26 +8666,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7089,40 +8696,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -7148,19 +8764,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7188,19 +8807,22 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7213,32 +8835,28 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -7277,54 +8895,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7332,7 +8994,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7342,26 +9004,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7369,34 +9034,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7404,7 +9074,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7414,26 +9084,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7441,37 +9114,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -7500,19 +9182,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7542,21 +9227,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7568,33 +9252,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7633,60 +9313,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::OrSymbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7694,7 +9412,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7704,26 +9422,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7731,34 +9452,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7766,7 +9492,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7776,26 +9502,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7803,37 +9532,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -7862,19 +9600,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7904,21 +9645,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7930,33 +9670,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7995,60 +9731,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8056,7 +9830,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8066,26 +9840,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8093,34 +9870,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8128,7 +9910,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8138,26 +9920,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8165,37 +9950,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -8226,21 +10020,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8271,7 +10064,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -8279,14 +10072,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8298,33 +10088,30 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8363,76 +10150,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8440,7 +10250,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8450,26 +10260,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8477,34 +10290,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8512,7 +10330,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8522,26 +10340,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8549,37 +10370,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -8611,7 +10441,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -8619,14 +10449,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8657,7 +10484,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -8665,14 +10492,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8684,33 +10508,30 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8749,84 +10570,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8834,7 +10670,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8844,26 +10680,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8871,34 +10710,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8906,7 +10750,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8916,26 +10760,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8943,37 +10790,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol) } + sig do + returns( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -9002,19 +10858,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9044,21 +10903,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration) + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9070,33 +10928,29 @@ module Orb sig do params( - cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9135,60 +10989,98 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9196,7 +11088,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9206,26 +11098,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9233,34 +11128,39 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9268,7 +11168,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9278,26 +11178,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9305,41 +11208,42 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::PlanCreateParams::Price::Unit, Orb::Models::PlanCreateParams::Price::Package, Orb::Models::PlanCreateParams::Price::Matrix, Orb::Models::PlanCreateParams::Price::Tiered, Orb::Models::PlanCreateParams::Price::TieredBps, Orb::Models::PlanCreateParams::Price::Bps, Orb::Models::PlanCreateParams::Price::BulkBps, Orb::Models::PlanCreateParams::Price::Bulk, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, Orb::Models::PlanCreateParams::Price::TieredPackage, Orb::Models::PlanCreateParams::Price::TieredWithMinimum, Orb::Models::PlanCreateParams::Price::UnitWithPercent, Orb::Models::PlanCreateParams::Price::PackageWithAllocation, Orb::Models::PlanCreateParams::Price::TieredWithProration, Orb::Models::PlanCreateParams::Price::UnitWithProration, Orb::Models::PlanCreateParams::Price::GroupedAllocation, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, Orb::Models::PlanCreateParams::Price::BulkWithProration, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk] - ) + override.returns(T::Array[Orb::PlanCreateParams::Price::Variants]) + end + def self.variants end - def self.variants; end end # The status of the plan to create (either active or draft). If not specified, @@ -9347,14 +11251,20 @@ module Orb module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Status) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::PlanCreateParams::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::PlanCreateParams::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::PlanCreateParams::Status::TaggedSymbol) + ACTIVE = T.let(:active, Orb::PlanCreateParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::PlanCreateParams::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::PlanCreateParams::Status::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/plan_fetch_params.rbi b/rbi/orb/models/plan_fetch_params.rbi index 8cc2d0ab..3e9465ce 100644 --- a/rbi/orb/models/plan_fetch_params.rbi +++ b/rbi/orb/models/plan_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/plan_list_params.rbi b/rbi/orb/models/plan_list_params.rbi index b6527fea..b2731159 100644 --- a/rbi/orb/models/plan_list_params.rbi +++ b/rbi/orb/models/plan_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -31,10 +33,10 @@ module Orb attr_writer :limit # The plan status to filter to ('active', 'archived', or 'draft'). - sig { returns(T.nilable(Orb::Models::PlanListParams::Status::OrSymbol)) } + sig { returns(T.nilable(Orb::PlanListParams::Status::OrSymbol)) } attr_reader :status - sig { params(status: Orb::Models::PlanListParams::Status::OrSymbol).void } + sig { params(status: Orb::PlanListParams::Status::OrSymbol).void } attr_writer :status sig do @@ -45,10 +47,9 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Orb::Models::PlanListParams::Status::OrSymbol, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + status: Orb::PlanListParams::Status::OrSymbol, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -63,37 +64,43 @@ module Orb # The plan status to filter to ('active', 'archived', or 'draft'). status: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - status: Orb::Models::PlanListParams::Status::OrSymbol, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + status: Orb::PlanListParams::Status::OrSymbol, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # The plan status to filter to ('active', 'archived', or 'draft'). module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanListParams::Status) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::PlanListParams::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::PlanListParams::Status::TaggedSymbol) - ARCHIVED = T.let(:archived, Orb::Models::PlanListParams::Status::TaggedSymbol) - DRAFT = T.let(:draft, Orb::Models::PlanListParams::Status::TaggedSymbol) + ACTIVE = T.let(:active, Orb::PlanListParams::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::PlanListParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::PlanListParams::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::PlanListParams::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::PlanListParams::Status::TaggedSymbol]) + end + def self.values + end end end end diff --git a/rbi/orb/models/plan_update_params.rbi b/rbi/orb/models/plan_update_params.rbi index a2ad18df..b882b5bc 100644 --- a/rbi/orb/models/plan_update_params.rbi +++ b/rbi/orb/models/plan_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. @@ -22,9 +24,8 @@ module Orb params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # An optional user-defined ID for this plan resource, used throughout the system @@ -36,18 +37,20 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/plans/external_plan_id_fetch_params.rbi b/rbi/orb/models/plans/external_plan_id_fetch_params.rbi index 02a432c8..7f87efc0 100644 --- a/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +++ b/rbi/orb/models/plans/external_plan_id_fetch_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/plans/external_plan_id_update_params.rbi b/rbi/orb/models/plans/external_plan_id_update_params.rbi index 693b6be2..b7f67ef1 100644 --- a/rbi/orb/models/plans/external_plan_id_update_params.rbi +++ b/rbi/orb/models/plans/external_plan_id_update_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. @@ -23,9 +25,8 @@ module Orb params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # An optional user-defined ID for this plan resource, used throughout the system @@ -37,18 +38,20 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index b9d24f39..ff74dfcd 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -15,33 +15,68 @@ module Orb module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Unit::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Unit::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::Unit::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: T.nilable(Orb::Price::Unit::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Unit::BillingCycleConfiguration) } + sig { returns(Orb::Price::Unit::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Unit::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Unit::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Unit::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Unit::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -50,14 +85,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Unit::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Unit::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Unit::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Unit::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -68,10 +103,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -84,27 +119,31 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Unit::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Unit::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Unit::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable(Orb::Price::Unit::InvoicingCycleConfiguration::OrHash) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Unit::Item) } + sig { returns(Orb::Price::Unit::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Unit::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Unit::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::Unit::Maximum)) } + sig { returns(T.nilable(Orb::Price::Unit::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Unit::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Unit::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -117,10 +156,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Unit::Minimum)) } + sig { returns(T.nilable(Orb::Price::Unit::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Unit::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Unit::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -135,62 +176,70 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Unit::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Unit::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(Orb::Models::Price::Unit::UnitConfig) } + sig { returns(Orb::Price::Unit::UnitConfig) } attr_reader :unit_config - sig { params(unit_config: T.any(Orb::Models::Price::Unit::UnitConfig, Orb::Internal::AnyHash)).void } + sig { params(unit_config: Orb::Price::Unit::UnitConfig::OrHash).void } attr_writer :unit_config - sig { returns(T.nilable(Orb::Models::Price::Unit::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Unit::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Unit::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable(Orb::Price::Unit::DimensionalPriceConfiguration::OrHash) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Unit::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Unit::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Unit::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::Unit::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Unit::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::Unit::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Unit::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Unit::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Unit::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Unit::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Unit::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Unit::InvoicingCycleConfiguration::OrHash), + item: Orb::Price::Unit::Item::OrHash, + maximum: T.nilable(Orb::Price::Unit::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Unit::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Unit::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Unit::PriceType::OrSymbol, - unit_config: T.any(Orb::Models::Price::Unit::UnitConfig, Orb::Internal::AnyHash), - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Unit::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Unit::PriceType::OrSymbol, + unit_config: Orb::Price::Unit::UnitConfig::OrHash, + dimensional_price_configuration: + T.nilable( + Orb::Price::Unit::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -221,179 +270,257 @@ module Orb unit_config:, dimensional_price_configuration: nil, model_type: :unit - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Unit::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Unit::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Unit::BillableMetric), + billing_cycle_configuration: + Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Price::Unit::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Unit::InvoicingCycleConfiguration), - item: Orb::Models::Price::Unit::Item, - maximum: T.nilable(Orb::Models::Price::Unit::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Unit::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Unit::PriceType::TaggedSymbol, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Unit::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Unit::InvoicingCycleConfiguration), + item: Orb::Price::Unit::Item, + maximum: T.nilable(Orb::Price::Unit::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Unit::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Unit::PriceType::TaggedSymbol, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: + T.nilable(Orb::Price::Unit::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override.returns(T::Array[Orb::Models::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Unit::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Unit::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Unit::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Unit::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Unit::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Unit::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Unit::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Unit::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Unit::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Unit::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Price::Unit::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Unit::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Unit::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Unit::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Unit::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Price::Unit::Cadence::TaggedSymbol]) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -401,13 +528,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -418,7 +549,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -426,12 +560,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -442,7 +585,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -450,25 +596,42 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Unit::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Unit::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Unit::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Unit::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Unit::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Unit::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Unit::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Unit::PriceType::TaggedSymbol] + ) + end + def self.values + end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -477,12 +640,17 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -495,40 +663,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Package::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Package::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::Package::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::Package::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Package::BillingCycleConfiguration) } + sig { returns(Orb::Price::Package::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Package::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Package::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Package::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Package::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -537,14 +716,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Package::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Package::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Package::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Package::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -555,10 +734,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -571,27 +750,33 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Package::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Package::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Package::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::Package::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Package::Item) } + sig { returns(Orb::Price::Package::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Package::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Package::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::Package::Maximum)) } + sig { returns(T.nilable(Orb::Price::Package::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Package::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Package::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -604,10 +789,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Package::Minimum)) } + sig { returns(T.nilable(Orb::Price::Package::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Package::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Package::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -619,65 +806,81 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::Price::Package::PackageConfig) } + sig { returns(Orb::Price::Package::PackageConfig) } attr_reader :package_config - sig { params(package_config: T.any(Orb::Models::Price::Package::PackageConfig, Orb::Internal::AnyHash)).void } + sig do + params( + package_config: Orb::Price::Package::PackageConfig::OrHash + ).void + end attr_writer :package_config sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Package::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Package::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::Package::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Package::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Package::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::Package::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Package::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Package::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Package::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::Package::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Package::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::Package::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Package::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Package::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Package::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Package::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Package::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::Package::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::Package::Item::OrHash, + maximum: T.nilable(Orb::Price::Package::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Package::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Package::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, - package_config: T.any(Orb::Models::Price::Package::PackageConfig, Orb::Internal::AnyHash), + package_config: Orb::Price::Package::PackageConfig::OrHash, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Package::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Package::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Package::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::Package::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -708,181 +911,262 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :package - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Package::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Package::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Package::BillableMetric), + billing_cycle_configuration: + Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::Package::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Package::InvoicingCycleConfiguration), - item: Orb::Models::Price::Package::Item, - maximum: T.nilable(Orb::Models::Price::Package::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Package::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_config: Orb::Models::Price::Package::PackageConfig, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Package::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Package::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Package::InvoicingCycleConfiguration), + item: Orb::Price::Package::Item, + maximum: T.nilable(Orb::Price::Package::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Package::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_config: Orb::Price::Package::PackageConfig, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Package::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::Package::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Package::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Package::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Package::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Package::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Package::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Package::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Package::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Package::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Package::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::Package::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Package::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::Package::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Package::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Package::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Package::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Package::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Package::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -890,13 +1174,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -907,20 +1195,32 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) - end + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) + end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -931,7 +1231,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -939,12 +1242,21 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -954,32 +1266,51 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns({ package_amount: String, package_size: Integer }) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Package::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Package::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Package::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Package::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Package::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Package::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Package::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Package::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -992,40 +1323,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Matrix::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Matrix::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::Matrix::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::Matrix::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Matrix::BillingCycleConfiguration) } + sig { returns(Orb::Price::Matrix::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Matrix::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Matrix::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Matrix::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Matrix::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -1034,14 +1376,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Matrix::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Matrix::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Matrix::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Matrix::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -1052,10 +1394,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -1068,33 +1410,39 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Matrix::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Matrix::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Matrix::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable(Orb::Price::Matrix::InvoicingCycleConfiguration::OrHash) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Matrix::Item) } + sig { returns(Orb::Price::Matrix::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Matrix::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Matrix::Item::OrHash).void } attr_writer :item - sig { returns(Orb::Models::Price::Matrix::MatrixConfig) } + sig { returns(Orb::Price::Matrix::MatrixConfig) } attr_reader :matrix_config - sig { params(matrix_config: T.any(Orb::Models::Price::Matrix::MatrixConfig, Orb::Internal::AnyHash)).void } + sig do + params(matrix_config: Orb::Price::Matrix::MatrixConfig::OrHash).void + end attr_writer :matrix_config - sig { returns(T.nilable(Orb::Models::Price::Matrix::Maximum)) } + sig { returns(T.nilable(Orb::Price::Matrix::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Matrix::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Matrix::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -1107,10 +1455,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Matrix::Minimum)) } + sig { returns(T.nilable(Orb::Price::Matrix::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Matrix::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Matrix::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -1125,56 +1475,68 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Matrix::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Matrix::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::Matrix::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Matrix::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Matrix::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::Matrix::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Matrix::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Matrix::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Matrix::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::Matrix::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Matrix::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::Matrix::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Matrix::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Matrix::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Matrix::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Matrix::Item, Orb::Internal::AnyHash), - matrix_config: T.any(Orb::Models::Price::Matrix::MatrixConfig, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Matrix::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::Matrix::Item::OrHash, + matrix_config: Orb::Price::Matrix::MatrixConfig::OrHash, + maximum: T.nilable(Orb::Price::Matrix::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Matrix::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Matrix::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Matrix::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Matrix::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Matrix::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::Matrix::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1205,181 +1567,261 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Matrix::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Matrix::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Matrix::BillableMetric), + billing_cycle_configuration: + Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::Matrix::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Matrix::InvoicingCycleConfiguration), - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: T.nilable(Orb::Models::Price::Matrix::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Matrix::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Matrix::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Matrix::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Matrix::InvoicingCycleConfiguration), + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: T.nilable(Orb::Price::Matrix::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Matrix::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Matrix::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::Matrix::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Matrix::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Matrix::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Matrix::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Matrix::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Matrix::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::Matrix::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Matrix::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Matrix::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Matrix::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Matrix::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Matrix::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1387,13 +1829,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -1403,16 +1849,18 @@ module Orb attr_accessor :dimensions # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue]) } + sig do + returns(T::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue]) + end attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[T.any(Orb::Models::Price::Matrix::MatrixConfig::MatrixValue, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + matrix_values: + T::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue::OrHash] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1421,20 +1869,25 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -1458,13 +1911,25 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1475,7 +1940,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1483,12 +1951,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1499,7 +1976,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1507,25 +1987,42 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Matrix::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Matrix::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Matrix::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Matrix::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Matrix::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Matrix::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Matrix::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Matrix::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -1538,40 +2035,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Tiered::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Tiered::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::Tiered::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::Tiered::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Tiered::BillingCycleConfiguration) } + sig { returns(Orb::Price::Tiered::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Tiered::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Tiered::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Tiered::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Tiered::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -1580,14 +2088,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Tiered::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Tiered::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Tiered::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Tiered::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -1598,10 +2106,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -1614,27 +2122,31 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Tiered::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Tiered::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Tiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable(Orb::Price::Tiered::InvoicingCycleConfiguration::OrHash) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Tiered::Item) } + sig { returns(Orb::Price::Tiered::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Tiered::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Tiered::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::Tiered::Maximum)) } + sig { returns(T.nilable(Orb::Price::Tiered::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Tiered::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Tiered::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -1647,10 +2159,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Tiered::Minimum)) } + sig { returns(T.nilable(Orb::Price::Tiered::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Tiered::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Tiered::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -1665,62 +2179,76 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Tiered::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Tiered::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(Orb::Models::Price::Tiered::TieredConfig) } + sig { returns(Orb::Price::Tiered::TieredConfig) } attr_reader :tiered_config - sig { params(tiered_config: T.any(Orb::Models::Price::Tiered::TieredConfig, Orb::Internal::AnyHash)).void } + sig do + params(tiered_config: Orb::Price::Tiered::TieredConfig::OrHash).void + end attr_writer :tiered_config - sig { returns(T.nilable(Orb::Models::Price::Tiered::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Tiered::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Tiered::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::Tiered::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Tiered::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Tiered::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Tiered::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::Tiered::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Tiered::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::Tiered::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Tiered::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Tiered::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Tiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Tiered::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Tiered::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::Tiered::Item::OrHash, + maximum: T.nilable(Orb::Price::Tiered::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Tiered::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Tiered::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Tiered::PriceType::OrSymbol, - tiered_config: T.any(Orb::Models::Price::Tiered::TieredConfig, Orb::Internal::AnyHash), - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Tiered::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Tiered::PriceType::OrSymbol, + tiered_config: Orb::Price::Tiered::TieredConfig::OrHash, + dimensional_price_configuration: + T.nilable( + Orb::Price::Tiered::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1751,181 +2279,261 @@ module Orb tiered_config:, dimensional_price_configuration: nil, model_type: :tiered - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Tiered::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Tiered::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Tiered::BillableMetric), + billing_cycle_configuration: + Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::Tiered::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Tiered::InvoicingCycleConfiguration), - item: Orb::Models::Price::Tiered::Item, - maximum: T.nilable(Orb::Models::Price::Tiered::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Tiered::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Tiered::PriceType::TaggedSymbol, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Tiered::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Tiered::InvoicingCycleConfiguration), + item: Orb::Price::Tiered::Item, + maximum: T.nilable(Orb::Price::Tiered::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Tiered::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Tiered::PriceType::TaggedSymbol, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: + T.nilable(Orb::Price::Tiered::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end - def self.new(duration:, duration_unit:); end - - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + def self.new(duration:, duration_unit:) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Tiered::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Tiered::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Tiered::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Tiered::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Tiered::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::Tiered::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Tiered::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Tiered::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Tiered::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Tiered::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Tiered::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1933,13 +2541,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1950,7 +2562,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -1958,12 +2573,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -1974,7 +2598,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -1982,41 +2609,68 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Tiered::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Tiered::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Tiered::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Tiered::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Tiered::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Tiered::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Tiered::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Tiered::PriceType::TaggedSymbol] + ) + end + def self.values + end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::Price::Tiered::TieredConfig::Tier]) } + sig { returns(T::Array[Orb::Price::Tiered::TieredConfig::Tier]) } attr_accessor :tiers sig do - params(tiers: T::Array[T.any(Orb::Models::Price::Tiered::TieredConfig::Tier, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + tiers: T::Array[Orb::Price::Tiered::TieredConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::Price::Tiered::TieredConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::Price::Tiered::TieredConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -2043,13 +2697,26 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end - sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash + end end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2062,40 +2729,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::TieredBps::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::TieredBps::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBps::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::TieredBps::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::TieredBps::BillingCycleConfiguration) } + sig { returns(Orb::Price::TieredBps::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::TieredBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::TieredBps::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredBps::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -2104,14 +2782,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::TieredBps::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::TieredBps::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBps::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::TieredBps::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -2122,10 +2800,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -2138,27 +2816,35 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::TieredBps::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::TieredBps::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::TieredBps::Item) } + sig { returns(Orb::Price::TieredBps::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::TieredBps::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::TieredBps::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::TieredBps::Maximum)) } + sig { returns(T.nilable(Orb::Price::TieredBps::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredBps::Maximum, Orb::Internal::AnyHash))).void } + sig do + params( + maximum: T.nilable(Orb::Price::TieredBps::Maximum::OrHash) + ).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -2171,10 +2857,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::TieredBps::Minimum)) } + sig { returns(T.nilable(Orb::Price::TieredBps::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredBps::Minimum, Orb::Internal::AnyHash))).void } + sig do + params( + minimum: T.nilable(Orb::Price::TieredBps::Minimum::OrHash) + ).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -2189,65 +2879,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::TieredBps::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::TieredBps::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(Orb::Models::Price::TieredBps::TieredBpsConfig) } + sig { returns(Orb::Price::TieredBps::TieredBpsConfig) } attr_reader :tiered_bps_config sig do - params(tiered_bps_config: T.any(Orb::Models::Price::TieredBps::TieredBpsConfig, Orb::Internal::AnyHash)) - .void + params( + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config - sig { returns(T.nilable(Orb::Models::Price::TieredBps::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::TieredBps::DimensionalPriceConfiguration) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredBps::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBps::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::TieredBps::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::TieredBps::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::TieredBps::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::TieredBps::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::TieredBps::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBps::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::TieredBps::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::TieredBps::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::TieredBps::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::TieredBps::Item::OrHash, + maximum: T.nilable(Orb::Price::TieredBps::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::TieredBps::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::TieredBps::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredBps::PriceType::OrSymbol, - tiered_bps_config: T.any(Orb::Models::Price::TieredBps::TieredBpsConfig, Orb::Internal::AnyHash), - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::TieredBps::PriceType::OrSymbol, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig::OrHash, + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredBps::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2278,182 +2983,263 @@ module Orb tiered_bps_config:, dimensional_price_configuration: nil, model_type: :tiered_bps - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredBps::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredBps::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::TieredBps::BillableMetric), + billing_cycle_configuration: + Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::TieredBps::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBps::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredBps::Item, - maximum: T.nilable(Orb::Models::Price::TieredBps::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredBps::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredBps::PriceType::TaggedSymbol, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBps::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::TieredBps::InvoicingCycleConfiguration), + item: Orb::Price::TieredBps::Item, + maximum: T.nilable(Orb::Price::TieredBps::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::TieredBps::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::TieredBps::PriceType::TaggedSymbol, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: + T.nilable(Orb::Price::TieredBps::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBps::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::TieredBps::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::TieredBps::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::TieredBps::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::TieredBps::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::TieredBps::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::TieredBps::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::TieredBps::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::TieredBps::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::TieredBps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredBps::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -2461,13 +3247,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2478,7 +3268,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -2486,12 +3279,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -2502,7 +3304,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -2510,45 +3315,73 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBps::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::TieredBps::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredBps::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredBps::PriceType::TaggedSymbol) - - sig { override.returns(T::Array[Orb::Models::Price::TieredBps::PriceType::TaggedSymbol]) } - def self.values; end - end + USAGE_PRICE = + T.let(:usage_price, Orb::Price::TieredBps::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::TieredBps::PriceType::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::TieredBps::PriceType::TaggedSymbol] + ) + end + def self.values + end + end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers - sig { returns(T::Array[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier]) } + sig do + returns(T::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier]) + end attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::Price::TieredBps::TieredBpsConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -2571,8 +3404,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -2583,23 +3415,27 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2612,44 +3448,56 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class Bps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Bps::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Bps::BillableMetric)) } attr_reader :billable_metric sig do - params(billable_metric: T.nilable(T.any(Orb::Models::Price::Bps::BillableMetric, Orb::Internal::AnyHash))) - .void + params( + billable_metric: T.nilable(Orb::Price::Bps::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Bps::BillingCycleConfiguration) } + sig { returns(Orb::Price::Bps::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Bps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Bps::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Bps::BpsConfig) } + sig { returns(Orb::Price::Bps::BpsConfig) } attr_reader :bps_config - sig { params(bps_config: T.any(Orb::Models::Price::Bps::BpsConfig, Orb::Internal::AnyHash)).void } + sig { params(bps_config: Orb::Price::Bps::BpsConfig::OrHash).void } attr_writer :bps_config - sig { returns(Orb::Models::Price::Bps::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Bps::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -2658,14 +3506,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Bps::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Bps::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Bps::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Bps::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -2676,10 +3524,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -2692,27 +3540,29 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Bps::InvoicingCycleConfiguration)) } + sig { returns(T.nilable(Orb::Price::Bps::InvoicingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Bps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bps::InvoicingCycleConfiguration::OrHash) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Bps::Item) } + sig { returns(Orb::Price::Bps::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Bps::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Bps::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::Bps::Maximum)) } + sig { returns(T.nilable(Orb::Price::Bps::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Bps::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Bps::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -2725,10 +3575,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Bps::Minimum)) } + sig { returns(T.nilable(Orb::Price::Bps::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Bps::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Bps::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -2743,56 +3595,61 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Bps::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Bps::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::Bps::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Bps::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Bps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable(Orb::Price::Bps::DimensionalPriceConfiguration::OrHash) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Bps::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Bps::BillingCycleConfiguration, Orb::Internal::AnyHash), - bps_config: T.any(Orb::Models::Price::Bps::BpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Bps::Cadence::OrSymbol, + billable_metric: T.nilable(Orb::Price::Bps::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Bps::BillingCycleConfiguration::OrHash, + bps_config: Orb::Price::Bps::BpsConfig::OrHash, + cadence: Orb::Price::Bps::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Bps::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Bps::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Bps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Bps::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Bps::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bps::InvoicingCycleConfiguration::OrHash), + item: Orb::Price::Bps::Item::OrHash, + maximum: T.nilable(Orb::Price::Bps::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Bps::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Bps::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Bps::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Bps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Bps::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::Bps::DimensionalPriceConfiguration::OrHash), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -2823,101 +3680,141 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bps - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Bps::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Bps::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Bps::BillableMetric), + billing_cycle_configuration: + Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Price::Bps::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Bps::InvoicingCycleConfiguration), - item: Orb::Models::Price::Bps::Item, - maximum: T.nilable(Orb::Models::Price::Bps::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Bps::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Bps::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Bps::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bps::InvoicingCycleConfiguration), + item: Orb::Price::Bps::Item, + maximum: T.nilable(Orb::Price::Bps::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Bps::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Bps::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::Bps::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end end end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -2926,94 +3823,147 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Bps::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Bps::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Bps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Bps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Bps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Bps::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Bps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Bps::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Bps::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Bps::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Price::Bps::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Bps::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Bps::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Bps::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Bps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Price::Bps::Cadence::TaggedSymbol]) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -3021,13 +3971,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -3038,7 +3992,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -3046,12 +4003,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -3062,7 +4028,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -3070,25 +4039,40 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Bps::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Bps::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Bps::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Bps::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Bps::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Bps::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Bps::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Price::Bps::PriceType::TaggedSymbol]) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -3101,46 +4085,61 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class BulkBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::BulkBps::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::BulkBps::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBps::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::BulkBps::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::BulkBps::BillingCycleConfiguration) } + sig { returns(Orb::Price::BulkBps::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::BulkBps::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::BulkBps::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::BulkBps::BulkBpsConfig) } + sig { returns(Orb::Price::BulkBps::BulkBpsConfig) } attr_reader :bulk_bps_config - sig { params(bulk_bps_config: T.any(Orb::Models::Price::BulkBps::BulkBpsConfig, Orb::Internal::AnyHash)).void } + sig do + params( + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig::OrHash + ).void + end attr_writer :bulk_bps_config - sig { returns(Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::BulkBps::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -3149,14 +4148,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::BulkBps::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::BulkBps::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBps::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::BulkBps::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -3167,10 +4166,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -3183,27 +4182,33 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::BulkBps::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::BulkBps::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::BulkBps::Item) } + sig { returns(Orb::Price::BulkBps::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::BulkBps::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::BulkBps::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::BulkBps::Maximum)) } + sig { returns(T.nilable(Orb::Price::BulkBps::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BulkBps::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::BulkBps::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -3216,10 +4221,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::BulkBps::Minimum)) } + sig { returns(T.nilable(Orb::Price::BulkBps::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BulkBps::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::BulkBps::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -3234,56 +4241,68 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::BulkBps::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::BulkBps::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::BulkBps::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::BulkBps::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::BulkBps::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBps::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::BulkBps::BillingCycleConfiguration, Orb::Internal::AnyHash), - bulk_bps_config: T.any(Orb::Models::Price::BulkBps::BulkBpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::BulkBps::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::BulkBps::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::BulkBps::BillingCycleConfiguration::OrHash, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: Orb::Price::BulkBps::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBps::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::BulkBps::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBps::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::BulkBps::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::BulkBps::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::BulkBps::Item::OrHash, + maximum: T.nilable(Orb::Price::BulkBps::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::BulkBps::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::BulkBps::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::BulkBps::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBps::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::BulkBps::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::BulkBps::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -3314,122 +4333,170 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk_bps - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkBps::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkBps::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::BulkBps::BillableMetric), + billing_cycle_configuration: + Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::BulkBps::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBps::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkBps::Item, - maximum: T.nilable(Orb::Models::Price::BulkBps::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkBps::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::BulkBps::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBps::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::BulkBps::InvoicingCycleConfiguration), + item: Orb::Price::BulkBps::Item, + maximum: T.nilable(Orb::Price::BulkBps::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::BulkBps::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::BulkBps::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::BulkBps::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume - sig { returns(T::Array[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier]) } + sig { returns(T::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier]) } attr_accessor :tiers sig do - params(tiers: T::Array[T.any(Orb::Models::Price::BulkBps::BulkBpsConfig::Tier, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + tiers: T::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier]}) } - def to_hash; end - + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier] } + ) + end + def to_hash + end + class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -3443,8 +4510,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -3453,7 +4523,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -3463,88 +4535,134 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBps::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::BulkBps::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::BulkBps::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::BulkBps::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::BulkBps::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::BulkBps::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::BulkBps::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::BulkBps::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::BulkBps::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::BulkBps::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::BulkBps::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -3552,13 +4670,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -3569,7 +4691,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -3577,12 +4702,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -3593,7 +4727,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -3601,25 +4738,42 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBps::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::BulkBps::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkBps::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkBps::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::BulkBps::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::BulkBps::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::BulkBps::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::BulkBps::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -3632,46 +4786,56 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class Bulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::Bulk::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::Bulk::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::Bulk::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: T.nilable(Orb::Price::Bulk::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::Bulk::BillingCycleConfiguration) } + sig { returns(Orb::Price::Bulk::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::Bulk::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::Bulk::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::Bulk::BulkConfig) } + sig { returns(Orb::Price::Bulk::BulkConfig) } attr_reader :bulk_config - sig { params(bulk_config: T.any(Orb::Models::Price::Bulk::BulkConfig, Orb::Internal::AnyHash)).void } + sig { params(bulk_config: Orb::Price::Bulk::BulkConfig::OrHash).void } attr_writer :bulk_config - sig { returns(Orb::Models::Price::Bulk::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Bulk::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -3680,14 +4844,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::Bulk::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::Bulk::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::Bulk::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::Bulk::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -3698,10 +4862,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -3714,27 +4878,31 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::Bulk::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Bulk::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Bulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bulk::InvoicingCycleConfiguration::OrHash) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::Bulk::Item) } + sig { returns(Orb::Price::Bulk::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::Bulk::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::Bulk::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::Bulk::Maximum)) } + sig { returns(T.nilable(Orb::Price::Bulk::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::Bulk::Maximum, Orb::Internal::AnyHash))).void } + sig do + params(maximum: T.nilable(Orb::Price::Bulk::Maximum::OrHash)).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -3747,10 +4915,12 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::Bulk::Minimum)) } + sig { returns(T.nilable(Orb::Price::Bulk::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::Bulk::Minimum, Orb::Internal::AnyHash))).void } + sig do + params(minimum: T.nilable(Orb::Price::Bulk::Minimum::OrHash)).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -3765,56 +4935,64 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::Bulk::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Bulk::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::Bulk::DimensionalPriceConfiguration)) } + sig do + returns(T.nilable(Orb::Price::Bulk::DimensionalPriceConfiguration)) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Bulk::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable(Orb::Price::Bulk::DimensionalPriceConfiguration::OrHash) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::Bulk::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::Bulk::BillingCycleConfiguration, Orb::Internal::AnyHash), - bulk_config: T.any(Orb::Models::Price::Bulk::BulkConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::Bulk::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::Bulk::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::Bulk::BillingCycleConfiguration::OrHash, + bulk_config: Orb::Price::Bulk::BulkConfig::OrHash, + cadence: Orb::Price::Bulk::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::Bulk::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::Bulk::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::Bulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::Bulk::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::Bulk::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bulk::InvoicingCycleConfiguration::OrHash), + item: Orb::Price::Bulk::Item::OrHash, + maximum: T.nilable(Orb::Price::Bulk::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::Bulk::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::Bulk::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Bulk::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::Bulk::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::Bulk::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::Bulk::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -3845,119 +5023,167 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::Bulk::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::Bulk::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Price::Bulk::BillableMetric), + billing_cycle_configuration: + Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Price::Bulk::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::Bulk::InvoicingCycleConfiguration), - item: Orb::Models::Price::Bulk::Item, - maximum: T.nilable(Orb::Models::Price::Bulk::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::Bulk::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::Bulk::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::Bulk::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable(Orb::Price::Bulk::InvoicingCycleConfiguration), + item: Orb::Price::Bulk::Item, + maximum: T.nilable(Orb::Price::Bulk::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::Bulk::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::Bulk::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable(Orb::Price::Bulk::DimensionalPriceConfiguration) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override.returns(T::Array[Orb::Models::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::Price::Bulk::BulkConfig::Tier]) } + sig { returns(T::Array[Orb::Price::Bulk::BulkConfig::Tier]) } attr_accessor :tiers sig do - params(tiers: T::Array[T.any(Orb::Models::Price::Bulk::BulkConfig::Tier, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + tiers: T::Array[Orb::Price::Bulk::BulkConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::Price::Bulk::BulkConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::Price::Bulk::BulkConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -3966,95 +5192,149 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Bulk::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Bulk::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::Bulk::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Bulk::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Bulk::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Price::Bulk::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Bulk::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Bulk::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Price::Bulk::Cadence::TaggedSymbol]) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - MONTH = T.let(:month, Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -4062,13 +5342,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -4079,7 +5363,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -4087,12 +5374,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -4103,7 +5399,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -4111,25 +5410,42 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::Bulk::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Bulk::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::Bulk::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::Bulk::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::Bulk::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::Bulk::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4142,40 +5458,57 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end - end - end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end + end + end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::ThresholdTotalAmount::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::ThresholdTotalAmount::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration) } + sig do + returns(Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -4184,14 +5517,18 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::ThresholdTotalAmount::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::ThresholdTotalAmount::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -4202,10 +5539,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -4218,33 +5555,41 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::ThresholdTotalAmount::Item) } + sig { returns(Orb::Price::ThresholdTotalAmount::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::ThresholdTotalAmount::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::ThresholdTotalAmount::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::Maximum)) } + sig { returns(T.nilable(Orb::Price::ThresholdTotalAmount::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::ThresholdTotalAmount::Maximum::OrHash) + ).void end attr_writer :maximum @@ -4258,14 +5603,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::Minimum)) } + sig { returns(T.nilable(Orb::Price::ThresholdTotalAmount::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::ThresholdTotalAmount::Minimum::OrHash) + ).void end attr_writer :minimum @@ -4281,65 +5626,83 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) + end attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :threshold_total_amount_config - sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::ThresholdTotalAmount::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::ThresholdTotalAmount::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::ThresholdTotalAmount::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::ThresholdTotalAmount::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::ThresholdTotalAmount::Item::OrHash, + maximum: + T.nilable(Orb::Price::ThresholdTotalAmount::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmount::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::ThresholdTotalAmount::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType::OrSymbol, + price_type: Orb::Price::ThresholdTotalAmount::PriceType::OrSymbol, threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -4370,200 +5733,291 @@ module Orb threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmount::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmount::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::ThresholdTotalAmount::BillableMetric), + billing_cycle_configuration: + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::ThresholdTotalAmount::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration), - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmount::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmount::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType::TaggedSymbol, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + ), + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: T.nilable(Orb::Price::ThresholdTotalAmount::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::ThresholdTotalAmount::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::ThresholdTotalAmount::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmount::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -4571,13 +6025,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -4588,7 +6046,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -4596,12 +6057,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -4612,7 +6082,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -4620,25 +6093,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmount::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::ThresholdTotalAmount::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmount::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4651,40 +6151,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::TieredPackage::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackage::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::TieredPackage::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::TieredPackage::BillingCycleConfiguration) } + sig { returns(Orb::Price::TieredPackage::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::TieredPackage::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -4693,14 +6204,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::TieredPackage::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackage::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::TieredPackage::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -4711,10 +6222,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -4727,27 +6238,37 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::TieredPackage::InvoicingCycleConfiguration) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::TieredPackage::Item) } + sig { returns(Orb::Price::TieredPackage::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::TieredPackage::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::TieredPackage::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::Maximum)) } + sig { returns(T.nilable(Orb::Price::TieredPackage::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredPackage::Maximum, Orb::Internal::AnyHash))).void } + sig do + params( + maximum: T.nilable(Orb::Price::TieredPackage::Maximum::OrHash) + ).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -4760,10 +6281,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::Minimum)) } + sig { returns(T.nilable(Orb::Price::TieredPackage::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredPackage::Minimum, Orb::Internal::AnyHash))).void } + sig do + params( + minimum: T.nilable(Orb::Price::TieredPackage::Minimum::OrHash) + ).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -4778,59 +6303,73 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::TieredPackage::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::TieredPackage::PriceType::TaggedSymbol) } attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :tiered_package_config - sig { returns(T.nilable(Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::TieredPackage::DimensionalPriceConfiguration) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackage::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackage::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::TieredPackage::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::TieredPackage::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::TieredPackage::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::TieredPackage::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackage::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::TieredPackage::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::TieredPackage::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::TieredPackage::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::TieredPackage::Item::OrHash, + maximum: T.nilable(Orb::Price::TieredPackage::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::TieredPackage::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::TieredPackage::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredPackage::PriceType::OrSymbol, + price_type: Orb::Price::TieredPackage::PriceType::OrSymbol, tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackage::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -4861,188 +6400,273 @@ module Orb tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackage::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackage::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::TieredPackage::BillableMetric), + billing_cycle_configuration: + Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::TieredPackage::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackage::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackage::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackage::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredPackage::PriceType::TaggedSymbol, - tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackage::InvoicingCycleConfiguration + ), + item: Orb::Price::TieredPackage::Item, + maximum: T.nilable(Orb::Price::TieredPackage::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::TieredPackage::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::TieredPackage::PriceType::TaggedSymbol, + tiered_package_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackage::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackage::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::TieredPackage::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::TieredPackage::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::TieredPackage::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredPackage::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -5050,13 +6674,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -5067,7 +6695,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -5075,12 +6706,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -5091,7 +6731,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -5099,25 +6742,48 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackage::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPackage::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPackage::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::TieredPackage::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::TieredPackage::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredPackage::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredPackage::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5130,40 +6796,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class GroupedTiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::GroupedTiered::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTiered::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::GroupedTiered::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::GroupedTiered::BillingCycleConfiguration) } + sig { returns(Orb::Price::GroupedTiered::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::GroupedTiered::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -5172,14 +6849,14 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::CreditAllocation)) } + sig { returns(T.nilable(Orb::Price::GroupedTiered::CreditAllocation)) } attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTiered::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::GroupedTiered::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -5190,10 +6867,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -5209,27 +6886,37 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :grouped_tiered_config - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::GroupedTiered::InvoicingCycleConfiguration) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedTiered::Item) } + sig { returns(Orb::Price::GroupedTiered::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::GroupedTiered::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::GroupedTiered::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::Maximum)) } + sig { returns(T.nilable(Orb::Price::GroupedTiered::Maximum)) } attr_reader :maximum - sig { params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedTiered::Maximum, Orb::Internal::AnyHash))).void } + sig do + params( + maximum: T.nilable(Orb::Price::GroupedTiered::Maximum::OrHash) + ).void + end attr_writer :maximum sig { returns(T.nilable(String)) } @@ -5242,10 +6929,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::Minimum)) } + sig { returns(T.nilable(Orb::Price::GroupedTiered::Minimum)) } attr_reader :minimum - sig { params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedTiered::Minimum, Orb::Internal::AnyHash))).void } + sig do + params( + minimum: T.nilable(Orb::Price::GroupedTiered::Minimum::OrHash) + ).void + end attr_writer :minimum sig { returns(T.nilable(String)) } @@ -5260,56 +6951,70 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::GroupedTiered::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::GroupedTiered::DimensionalPriceConfiguration) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration, Orb::Internal::AnyHash)) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTiered::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTiered::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::GroupedTiered::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::GroupedTiered::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::GroupedTiered::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTiered::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::GroupedTiered::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::GroupedTiered::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::GroupedTiered::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::GroupedTiered::Item::OrHash, + maximum: T.nilable(Orb::Price::GroupedTiered::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::GroupedTiered::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::GroupedTiered::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedTiered::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration, Orb::Internal::AnyHash)), + price_type: Orb::Price::GroupedTiered::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTiered::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -5340,188 +7045,273 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTiered::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTiered::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::GroupedTiered::BillableMetric), + billing_cycle_configuration: + Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::GroupedTiered::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTiered::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTiered::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTiered::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedTiered::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTiered::InvoicingCycleConfiguration + ), + item: Orb::Price::GroupedTiered::Item, + maximum: T.nilable(Orb::Price::GroupedTiered::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::GroupedTiered::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::GroupedTiered::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTiered::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTiered::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::GroupedTiered::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::GroupedTiered::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::GroupedTiered::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -5529,13 +7319,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -5546,7 +7340,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -5554,12 +7351,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -5570,7 +7376,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -5578,25 +7387,48 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTiered::PriceType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTiered::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTiered::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::GroupedTiered::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::GroupedTiered::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedTiered::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::GroupedTiered::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5609,40 +7441,55 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::TieredWithMinimum::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::TieredWithMinimum::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration) } + sig do + returns(Orb::Price::TieredWithMinimum::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -5651,14 +7498,16 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::TieredWithMinimum::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::TieredWithMinimum::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -5669,10 +7518,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -5685,31 +7534,38 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::TieredWithMinimum::Item) } + sig { returns(Orb::Price::TieredWithMinimum::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::TieredWithMinimum::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::TieredWithMinimum::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::Maximum)) } + sig { returns(T.nilable(Orb::Price::TieredWithMinimum::Maximum)) } attr_reader :maximum sig do - params(maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::Maximum, Orb::Internal::AnyHash))) - .void + params( + maximum: T.nilable(Orb::Price::TieredWithMinimum::Maximum::OrHash) + ).void end attr_writer :maximum @@ -5723,12 +7579,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::Minimum)) } + sig { returns(T.nilable(Orb::Price::TieredWithMinimum::Minimum)) } attr_reader :minimum sig do - params(minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::Minimum, Orb::Internal::AnyHash))) - .void + params( + minimum: T.nilable(Orb::Price::TieredWithMinimum::Minimum::OrHash) + ).void end attr_writer :minimum @@ -5744,65 +7601,77 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::TieredWithMinimum::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol) } attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :tiered_with_minimum_config - sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::TieredWithMinimum::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::TieredWithMinimum::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::TieredWithMinimum::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::TieredWithMinimum::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::TieredWithMinimum::Item::OrHash, + maximum: T.nilable(Orb::Price::TieredWithMinimum::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimum::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::TieredWithMinimum::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredWithMinimum::PriceType::OrSymbol, + price_type: Orb::Price::TieredWithMinimum::PriceType::OrSymbol, tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -5833,197 +7702,285 @@ module Orb tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimum::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimum::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::TieredWithMinimum::BillableMetric), + billing_cycle_configuration: + Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::TieredWithMinimum::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithMinimum::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithMinimum::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredWithMinimum::PriceType::TaggedSymbol, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration + ), + item: Orb::Price::TieredWithMinimum::Item, + maximum: T.nilable(Orb::Price::TieredWithMinimum::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::TieredWithMinimum::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = T.let( :month, - Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimum::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimum::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -6031,13 +7988,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -6048,7 +8009,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -6056,12 +8020,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -6072,7 +8045,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -6080,25 +8056,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimum::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithMinimum::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithMinimum::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimum::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6111,40 +8112,63 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::BillableMetric)) } + sig do + returns( + T.nilable(Orb::Price::TieredPackageWithMinimum::BillableMetric) + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::TieredPackageWithMinimum::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration) } + sig do + returns( + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -6153,14 +8177,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::TieredPackageWithMinimum::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::TieredPackageWithMinimum::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -6171,10 +8201,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -6187,33 +8217,43 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::TieredPackageWithMinimum::Item) } + sig { returns(Orb::Price::TieredPackageWithMinimum::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::TieredPackageWithMinimum::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::TieredPackageWithMinimum::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::Maximum)) } + sig do + returns(T.nilable(Orb::Price::TieredPackageWithMinimum::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::TieredPackageWithMinimum::Maximum::OrHash) + ).void end attr_writer :maximum @@ -6227,14 +8267,16 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::Minimum)) } + sig do + returns(T.nilable(Orb::Price::TieredPackageWithMinimum::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::TieredPackageWithMinimum::Minimum::OrHash) + ).void end attr_writer :minimum @@ -6250,65 +8292,84 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) + end attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :tiered_package_with_minimum_config - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::TieredPackageWithMinimum::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::TieredPackageWithMinimum::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::TieredPackageWithMinimum::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::TieredPackageWithMinimum::Item::OrHash, + maximum: + T.nilable(Orb::Price::TieredPackageWithMinimum::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimum::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::TieredPackageWithMinimum::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType::OrSymbol, + price_type: + Orb::Price::TieredPackageWithMinimum::PriceType::OrSymbol, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -6339,65 +8400,87 @@ module Orb tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::TieredPackageWithMinimum::BillableMetric), + billing_cycle_configuration: + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable( + Orb::Price::TieredPackageWithMinimum::CreditAllocation + ), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration + ), + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: T.nilable(Orb::Price::TieredPackageWithMinimum::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::TieredPackageWithMinimum::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol, + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -6405,89 +8488,144 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackageWithMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -6495,52 +8633,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -6548,13 +8697,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -6565,7 +8718,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -6573,12 +8729,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -6589,7 +8754,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -6597,25 +8765,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimum::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackageWithMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6628,40 +8823,59 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::PackageWithAllocation::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::PackageWithAllocation::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration) } + sig do + returns(Orb::Price::PackageWithAllocation::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -6670,14 +8884,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::PackageWithAllocation::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::PackageWithAllocation::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -6688,10 +8908,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -6704,33 +8924,41 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::PackageWithAllocation::Item) } + sig { returns(Orb::Price::PackageWithAllocation::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::PackageWithAllocation::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::PackageWithAllocation::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::Maximum)) } + sig { returns(T.nilable(Orb::Price::PackageWithAllocation::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::PackageWithAllocation::Maximum::OrHash) + ).void end attr_writer :maximum @@ -6744,14 +8972,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::Minimum)) } + sig { returns(T.nilable(Orb::Price::PackageWithAllocation::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::PackageWithAllocation::Minimum::OrHash) + ).void end attr_writer :minimum @@ -6770,62 +8998,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::PackageWithAllocation::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::PackageWithAllocation::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::PackageWithAllocation::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::PackageWithAllocation::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::PackageWithAllocation::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::PackageWithAllocation::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::PackageWithAllocation::Item::OrHash, + maximum: + T.nilable(Orb::Price::PackageWithAllocation::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocation::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::PackageWithAllocation::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::PackageWithAllocation::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::PackageWithAllocation::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -6856,151 +9102,227 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :package_with_allocation - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocation::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocation::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::PackageWithAllocation::BillableMetric), + billing_cycle_configuration: + Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::PackageWithAllocation::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: T.nilable(Orb::Models::Price::PackageWithAllocation::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackageWithAllocation::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::PackageWithAllocation::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration + ), + item: Orb::Price::PackageWithAllocation::Item, + maximum: T.nilable(Orb::Price::PackageWithAllocation::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::PackageWithAllocation::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocation::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::PackageWithAllocation::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocation::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -7008,52 +9330,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -7061,13 +9394,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -7078,7 +9415,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -7086,12 +9426,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -7102,7 +9451,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -7110,25 +9462,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocation::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::PackageWithAllocation::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::PackageWithAllocation::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::PackageWithAllocation::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocation::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7141,40 +9520,51 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::BillableMetric)) } + sig { returns(T.nilable(Orb::Price::UnitWithPercent::BillableMetric)) } attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::UnitWithPercent::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration) } + sig { returns(Orb::Price::UnitWithPercent::BillingCycleConfiguration) } attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -7183,14 +9573,16 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::UnitWithPercent::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::UnitWithPercent::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -7201,10 +9593,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -7217,29 +9609,36 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable(Orb::Price::UnitWithPercent::InvoicingCycleConfiguration) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::UnitWithPercent::Item) } + sig { returns(Orb::Price::UnitWithPercent::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::UnitWithPercent::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::UnitWithPercent::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::Maximum)) } + sig { returns(T.nilable(Orb::Price::UnitWithPercent::Maximum)) } attr_reader :maximum sig do - params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::Maximum, Orb::Internal::AnyHash))) - .void + params( + maximum: T.nilable(Orb::Price::UnitWithPercent::Maximum::OrHash) + ).void end attr_writer :maximum @@ -7253,12 +9652,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::Minimum)) } + sig { returns(T.nilable(Orb::Price::UnitWithPercent::Minimum)) } attr_reader :minimum sig do - params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::Minimum, Orb::Internal::AnyHash))) - .void + params( + minimum: T.nilable(Orb::Price::UnitWithPercent::Minimum::OrHash) + ).void end attr_writer :minimum @@ -7274,63 +9674,75 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::UnitWithPercent::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithPercent::PriceType::TaggedSymbol) } attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :unit_with_percent_config - sig { returns(T.nilable(Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - sig do - params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration, Orb::Internal::AnyHash) + returns( + T.nilable( + Orb::Price::UnitWithPercent::DimensionalPriceConfiguration ) ) - .void + end + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithPercent::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::UnitWithPercent::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::UnitWithPercent::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::UnitWithPercent::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::UnitWithPercent::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable(Orb::Price::UnitWithPercent::CreditAllocation::OrHash), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), - item: T.any(Orb::Models::Price::UnitWithPercent::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::UnitWithPercent::Item::OrHash, + maximum: T.nilable(Orb::Price::UnitWithPercent::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercent::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::UnitWithPercent::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::UnitWithPercent::PriceType::OrSymbol, + price_type: Orb::Price::UnitWithPercent::PriceType::OrSymbol, unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithPercent::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -7361,191 +9773,276 @@ module Orb unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithPercent::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercent::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::UnitWithPercent::BillableMetric), + billing_cycle_configuration: + Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::UnitWithPercent::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithPercent::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithPercent::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::UnitWithPercent::PriceType::TaggedSymbol, - unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration + ), + item: Orb::Price::UnitWithPercent::Item, + maximum: T.nilable(Orb::Price::UnitWithPercent::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::UnitWithPercent::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Orb::Price::UnitWithPercent::PriceType::TaggedSymbol, + unit_with_percent_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithPercent::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercent::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::UnitWithPercent::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::UnitWithPercent::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::UnitWithPercent::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercent::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::UnitWithPercent::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = T.let( :month, - Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -7553,13 +10050,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -7570,7 +10071,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -7578,12 +10082,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -7594,7 +10107,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -7602,25 +10118,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercent::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithPercent::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithPercent::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithPercent::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::UnitWithPercent::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::UnitWithPercent::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercent::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::UnitWithPercent::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7633,40 +10174,57 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class MatrixWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::MatrixWithAllocation::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::MatrixWithAllocation::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration) } + sig do + returns(Orb::Price::MatrixWithAllocation::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -7675,14 +10233,18 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::MatrixWithAllocation::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::MatrixWithAllocation::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -7693,10 +10255,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -7709,44 +10271,54 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::MatrixWithAllocation::Item) } + sig { returns(Orb::Price::MatrixWithAllocation::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::MatrixWithAllocation::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::MatrixWithAllocation::Item::OrHash).void + end attr_writer :item - sig { returns(Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig) } + sig do + returns(Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig) + end attr_reader :matrix_with_allocation_config sig do params( - matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, Orb::Internal::AnyHash) - ) - .void + matrix_with_allocation_config: + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::OrHash + ).void end attr_writer :matrix_with_allocation_config - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::Maximum)) } + sig { returns(T.nilable(Orb::Price::MatrixWithAllocation::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::MatrixWithAllocation::Maximum::OrHash) + ).void end attr_writer :maximum @@ -7760,14 +10332,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::Minimum)) } + sig { returns(T.nilable(Orb::Price::MatrixWithAllocation::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::MatrixWithAllocation::Minimum::OrHash) + ).void end attr_writer :minimum @@ -7783,62 +10355,81 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::MatrixWithAllocation::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::MatrixWithAllocation::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::MatrixWithAllocation::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::MatrixWithAllocation::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::MatrixWithAllocation::Item, Orb::Internal::AnyHash), - matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::MatrixWithAllocation::Item::OrHash, + matrix_with_allocation_config: + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::OrHash, + maximum: + T.nilable(Orb::Price::MatrixWithAllocation::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocation::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::MatrixWithAllocation::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::MatrixWithAllocation::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -7869,200 +10460,292 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocation::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocation::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::MatrixWithAllocation::BillableMetric), + billing_cycle_configuration: + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::MatrixWithAllocation::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: T.nilable(Orb::Models::Price::MatrixWithAllocation::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithAllocation::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration + ), + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: T.nilable(Orb::Price::MatrixWithAllocation::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::MatrixWithAllocation::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithAllocation::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocation::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -8070,13 +10753,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Allocation to be used to calculate the price sig { returns(Float) } attr_accessor :allocation @@ -8090,7 +10777,13 @@ module Orb attr_accessor :dimensions # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue]) } + sig do + returns( + T::Array[ + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue + ] + ) + end attr_accessor :matrix_values sig do @@ -8098,14 +10791,11 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Allocation to be used to calculate the price @@ -8116,21 +10806,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] - } - ) + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -8154,13 +10851,25 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -8171,7 +10880,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -8179,12 +10891,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -8195,7 +10916,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -8203,25 +10927,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocation::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithAllocation::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixWithAllocation::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixWithAllocation::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocation::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8234,40 +10985,55 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::TieredWithProration::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProration::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::TieredWithProration::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::TieredWithProration::BillingCycleConfiguration) } + sig do + returns(Orb::Price::TieredWithProration::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -8276,14 +11042,18 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::TieredWithProration::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProration::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::TieredWithProration::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -8294,10 +11064,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -8310,33 +11080,38 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::TieredWithProration::Item) } + sig { returns(Orb::Price::TieredWithProration::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::TieredWithProration::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::TieredWithProration::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::Maximum)) } + sig { returns(T.nilable(Orb::Price::TieredWithProration::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProration::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: T.nilable(Orb::Price::TieredWithProration::Maximum::OrHash) + ).void end attr_writer :maximum @@ -8350,14 +11125,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::Minimum)) } + sig { returns(T.nilable(Orb::Price::TieredWithProration::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProration::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: T.nilable(Orb::Price::TieredWithProration::Minimum::OrHash) + ).void end attr_writer :minimum @@ -8373,65 +11147,83 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::TieredWithProration::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::TieredWithProration::PriceType::TaggedSymbol) + end attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :tiered_with_proration_config - sig { returns(T.nilable(Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::TieredWithProration::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithProration::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProration::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::TieredWithProration::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::TieredWithProration::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::TieredWithProration::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::TieredWithProration::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProration::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::TieredWithProration::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::TieredWithProration::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProration::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::TieredWithProration::Item::OrHash, + maximum: + T.nilable(Orb::Price::TieredWithProration::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProration::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::TieredWithProration::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredWithProration::PriceType::OrSymbol, + price_type: Orb::Price::TieredWithProration::PriceType::OrSymbol, tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithProration::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -8462,200 +11254,291 @@ module Orb tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithProration::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithProration::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::TieredWithProration::BillableMetric), + billing_cycle_configuration: + Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::TieredWithProration::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithProration::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithProration::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithProration::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::TieredWithProration::PriceType::TaggedSymbol, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration + ), + item: Orb::Price::TieredWithProration::Item, + maximum: T.nilable(Orb::Price::TieredWithProration::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::TieredWithProration::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::TieredWithProration::PriceType::TaggedSymbol, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::TieredWithProration::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProration::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithProration::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::TieredWithProration::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredWithProration::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredWithProration::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -8663,13 +11546,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -8680,7 +11567,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -8688,12 +11578,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -8704,7 +11603,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -8712,25 +11614,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProration::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithProration::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithProration::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithProration::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::TieredWithProration::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::TieredWithProration::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::TieredWithProration::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::TieredWithProration::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8743,40 +11670,55 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::UnitWithProration::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProration::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::UnitWithProration::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::UnitWithProration::BillingCycleConfiguration) } + sig do + returns(Orb::Price::UnitWithProration::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -8785,14 +11727,16 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::UnitWithProration::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProration::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::UnitWithProration::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -8803,10 +11747,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -8819,31 +11763,38 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::UnitWithProration::Item) } + sig { returns(Orb::Price::UnitWithProration::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::UnitWithProration::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::UnitWithProration::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::Maximum)) } + sig { returns(T.nilable(Orb::Price::UnitWithProration::Maximum)) } attr_reader :maximum sig do - params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProration::Maximum, Orb::Internal::AnyHash))) - .void + params( + maximum: T.nilable(Orb::Price::UnitWithProration::Maximum::OrHash) + ).void end attr_writer :maximum @@ -8857,12 +11808,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::Minimum)) } + sig { returns(T.nilable(Orb::Price::UnitWithProration::Minimum)) } attr_reader :minimum sig do - params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProration::Minimum, Orb::Internal::AnyHash))) - .void + params( + minimum: T.nilable(Orb::Price::UnitWithProration::Minimum::OrHash) + ).void end attr_writer :minimum @@ -8878,65 +11830,77 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::UnitWithProration::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithProration::PriceType::TaggedSymbol) } attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :unit_with_proration_config - sig { returns(T.nilable(Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::UnitWithProration::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithProration::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProration::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::UnitWithProration::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::UnitWithProration::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::UnitWithProration::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::UnitWithProration::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProration::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::UnitWithProration::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::UnitWithProration::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProration::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::UnitWithProration::Item::OrHash, + maximum: T.nilable(Orb::Price::UnitWithProration::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProration::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::UnitWithProration::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::UnitWithProration::PriceType::OrSymbol, + price_type: Orb::Price::UnitWithProration::PriceType::OrSymbol, unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithProration::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -8967,197 +11931,285 @@ module Orb unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithProration::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithProration::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::UnitWithProration::BillableMetric), + billing_cycle_configuration: + Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::UnitWithProration::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithProration::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithProration::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithProration::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::UnitWithProration::PriceType::TaggedSymbol, - unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration + ), + item: Orb::Price::UnitWithProration::Item, + maximum: T.nilable(Orb::Price::UnitWithProration::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::UnitWithProration::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::UnitWithProration::PriceType::TaggedSymbol, + unit_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::UnitWithProration::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = T.let( :month, - Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProration::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithProration::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::UnitWithProration::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::UnitWithProration::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -9165,13 +12217,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -9182,7 +12238,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -9190,12 +12249,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -9206,7 +12274,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -9214,25 +12285,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProration::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithProration::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithProration::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithProration::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::UnitWithProration::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::UnitWithProration::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::UnitWithProration::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::UnitWithProration::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -9245,40 +12341,55 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::GroupedAllocation::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::GroupedAllocation::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration) } + sig do + returns(Orb::Price::GroupedAllocation::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -9287,14 +12398,16 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::GroupedAllocation::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::GroupedAllocation::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -9305,10 +12418,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -9324,31 +12437,38 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :grouped_allocation_config - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedAllocation::Item) } + sig { returns(Orb::Price::GroupedAllocation::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::GroupedAllocation::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::GroupedAllocation::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::Maximum)) } + sig { returns(T.nilable(Orb::Price::GroupedAllocation::Maximum)) } attr_reader :maximum sig do - params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::Maximum, Orb::Internal::AnyHash))) - .void + params( + maximum: T.nilable(Orb::Price::GroupedAllocation::Maximum::OrHash) + ).void end attr_writer :maximum @@ -9362,12 +12482,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::Minimum)) } + sig { returns(T.nilable(Orb::Price::GroupedAllocation::Minimum)) } attr_reader :minimum sig do - params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::Minimum, Orb::Internal::AnyHash))) - .void + params( + minimum: T.nilable(Orb::Price::GroupedAllocation::Minimum::OrHash) + ).void end attr_writer :minimum @@ -9383,62 +12504,74 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::GroupedAllocation::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::GroupedAllocation::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedAllocation::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedAllocation::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::GroupedAllocation::Cadence::OrSymbol, + billable_metric: + T.nilable(Orb::Price::GroupedAllocation::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::GroupedAllocation::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::GroupedAllocation::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::GroupedAllocation::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_allocation_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::GroupedAllocation::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::GroupedAllocation::Item::OrHash, + maximum: T.nilable(Orb::Price::GroupedAllocation::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocation::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::GroupedAllocation::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedAllocation::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::GroupedAllocation::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedAllocation::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -9469,197 +12602,285 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_allocation - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedAllocation::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocation::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::GroupedAllocation::BillableMetric), + billing_cycle_configuration: + Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::GroupedAllocation::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: T.nilable(Orb::Models::Price::GroupedAllocation::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedAllocation::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedAllocation::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_allocation_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration + ), + item: Orb::Price::GroupedAllocation::Item, + maximum: T.nilable(Orb::Price::GroupedAllocation::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::GroupedAllocation::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedAllocation::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = T.let( :month, - Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocation::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedAllocation::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocation::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::GroupedAllocation::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -9667,13 +12888,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -9684,20 +12909,32 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) + end + def self.new( + # List of price_ids that this maximum amount applies to. For plan/plan phase + # maximums, this can be a subset of prices. + applies_to_price_ids:, + # Maximum amount applied + maximum_amount: + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash end - def self.new( - # List of price_ids that this maximum amount applies to. For plan/plan phase - # maximums, this can be a subset of prices. - applies_to_price_ids:, - # Maximum amount applied - maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -9708,7 +12945,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -9716,25 +12956,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocation::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedAllocation::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedAllocation::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedAllocation::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocation::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::GroupedAllocation::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -9747,40 +13012,63 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric)) } + sig do + returns( + T.nilable(Orb::Price::GroupedWithProratedMinimum::BillableMetric) + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration) } + sig do + returns( + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -9789,14 +13077,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::GroupedWithProratedMinimum::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -9807,10 +13101,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -9826,33 +13120,45 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :grouped_with_prorated_minimum_config - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedWithProratedMinimum::Item) } + sig { returns(Orb::Price::GroupedWithProratedMinimum::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::GroupedWithProratedMinimum::Item, Orb::Internal::AnyHash)).void } + sig do + params( + item: Orb::Price::GroupedWithProratedMinimum::Item::OrHash + ).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::Maximum)) } + sig do + returns(T.nilable(Orb::Price::GroupedWithProratedMinimum::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::GroupedWithProratedMinimum::Maximum::OrHash) + ).void end attr_writer :maximum @@ -9866,14 +13172,16 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::Minimum)) } + sig do + returns(T.nilable(Orb::Price::GroupedWithProratedMinimum::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::GroupedWithProratedMinimum::Minimum::OrHash) + ).void end attr_writer :minimum @@ -9889,68 +13197,87 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, - Orb::Internal::AnyHash + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::GroupedWithProratedMinimum::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::GroupedWithProratedMinimum::Item::OrHash, + maximum: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::Maximum::OrHash + ), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimum::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::Minimum::OrHash + ), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration, - Orb::Internal::AnyHash - ) - ), + price_type: + Orb::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -9981,65 +13308,91 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation), - currency: String, - discount: T.nilable( + override.returns( + { + id: String, + billable_metric: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::BillableMetric + ), + billing_cycle_configuration: + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::CreditAllocation + ), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + ), + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: + T.nilable(Orb::Price::GroupedWithProratedMinimum::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: + T.nilable(Orb::Price::GroupedWithProratedMinimum::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -10047,89 +13400,144 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -10137,52 +13545,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -10190,13 +13609,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -10207,7 +13630,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -10215,12 +13641,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -10231,7 +13666,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -10239,27 +13677,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Models::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Models::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -10272,40 +13735,63 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric)) } + sig do + returns( + T.nilable(Orb::Price::GroupedWithMeteredMinimum::BillableMetric) + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration) } + sig do + returns( + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -10314,14 +13800,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::GroupedWithMeteredMinimum::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -10332,10 +13824,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -10351,33 +13843,43 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :grouped_with_metered_minimum_config - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimum::Item) } + sig { returns(Orb::Price::GroupedWithMeteredMinimum::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::GroupedWithMeteredMinimum::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::Maximum)) } + sig do + returns(T.nilable(Orb::Price::GroupedWithMeteredMinimum::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Maximum::OrHash) + ).void end attr_writer :maximum @@ -10391,14 +13893,16 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::Minimum)) } + sig do + returns(T.nilable(Orb::Price::GroupedWithMeteredMinimum::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Minimum::OrHash) + ).void end attr_writer :minimum @@ -10414,68 +13918,83 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, - Orb::Internal::AnyHash - ) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::GroupedWithMeteredMinimum::Item::OrHash, + maximum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimum::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration, - Orb::Internal::AnyHash - ) - ), + price_type: + Orb::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -10506,65 +14025,91 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation), - currency: String, - discount: T.nilable( + override.returns( + { + id: String, + billable_metric: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::BillableMetric + ), + billing_cycle_configuration: + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::CreditAllocation + ), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + ), + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: + T.nilable(Orb::Price::GroupedWithMeteredMinimum::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -10572,89 +14117,144 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -10662,52 +14262,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -10715,13 +14326,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -10732,7 +14347,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -10740,12 +14358,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -10756,7 +14383,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -10764,25 +14394,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -10795,40 +14452,59 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::MatrixWithDisplayName::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::MatrixWithDisplayName::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration) } + sig do + returns(Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -10837,14 +14513,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::MatrixWithDisplayName::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::MatrixWithDisplayName::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -10855,10 +14537,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -10871,36 +14553,44 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::MatrixWithDisplayName::Item) } + sig { returns(Orb::Price::MatrixWithDisplayName::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::MatrixWithDisplayName::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::MatrixWithDisplayName::Item::OrHash).void + end attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :matrix_with_display_name_config - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::Maximum)) } + sig { returns(T.nilable(Orb::Price::MatrixWithDisplayName::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::MatrixWithDisplayName::Maximum::OrHash) + ).void end attr_writer :maximum @@ -10914,14 +14604,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::Minimum)) } + sig { returns(T.nilable(Orb::Price::MatrixWithDisplayName::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::MatrixWithDisplayName::Minimum::OrHash) + ).void end attr_writer :minimum @@ -10937,62 +14627,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::MatrixWithDisplayName::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::MatrixWithDisplayName::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::MatrixWithDisplayName::Item, Orb::Internal::AnyHash), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::MatrixWithDisplayName::Item::OrHash, matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::Maximum, Orb::Internal::AnyHash)), + maximum: + T.nilable(Orb::Price::MatrixWithDisplayName::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayName::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::MatrixWithDisplayName::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::MatrixWithDisplayName::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -11023,151 +14731,227 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayName::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayName::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::MatrixWithDisplayName::BillableMetric), + billing_cycle_configuration: + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::MatrixWithDisplayName::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithDisplayName::Item, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayName::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayName::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + ), + item: Orb::Price::MatrixWithDisplayName::Item, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Price::MatrixWithDisplayName::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::MatrixWithDisplayName::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithDisplayName::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayName::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -11175,52 +14959,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -11228,13 +15023,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -11245,7 +15044,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -11253,12 +15055,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -11269,7 +15080,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -11277,25 +15091,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithDisplayName::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayName::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -11308,43 +15149,58 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::BulkWithProration::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProration::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable(Orb::Price::BulkWithProration::BillableMetric::OrHash) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::BulkWithProration::BillingCycleConfiguration) } + sig do + returns(Orb::Price::BulkWithProration::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config - sig { returns(Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::BulkWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -11353,14 +15209,16 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::BulkWithProration::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProration::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable(Orb::Price::BulkWithProration::CreditAllocation::OrHash) + ).void end attr_writer :credit_allocation @@ -11371,10 +15229,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -11387,31 +15245,38 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::BulkWithProration::Item) } + sig { returns(Orb::Price::BulkWithProration::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::BulkWithProration::Item, Orb::Internal::AnyHash)).void } + sig { params(item: Orb::Price::BulkWithProration::Item::OrHash).void } attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::Maximum)) } + sig { returns(T.nilable(Orb::Price::BulkWithProration::Maximum)) } attr_reader :maximum sig do - params(maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProration::Maximum, Orb::Internal::AnyHash))) - .void + params( + maximum: T.nilable(Orb::Price::BulkWithProration::Maximum::OrHash) + ).void end attr_writer :maximum @@ -11425,12 +15290,13 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::Minimum)) } + sig { returns(T.nilable(Orb::Price::BulkWithProration::Minimum)) } attr_reader :minimum sig do - params(minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProration::Minimum, Orb::Internal::AnyHash))) - .void + params( + minimum: T.nilable(Orb::Price::BulkWithProration::Minimum::OrHash) + ).void end attr_writer :minimum @@ -11446,62 +15312,74 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::BulkWithProration::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::BulkWithProration::PriceType::TaggedSymbol) } attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::BulkWithProration::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::BulkWithProration::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProration::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, Orb::Internal::AnyHash), + billable_metric: + T.nilable(Orb::Price::BulkWithProration::BillableMetric::OrHash), + billing_cycle_configuration: + Orb::Price::BulkWithProration::BillingCycleConfiguration::OrHash, bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::Price::BulkWithProration::Cadence::OrSymbol, + cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProration::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::BulkWithProration::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::BulkWithProration::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProration::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::BulkWithProration::Item::OrHash, + maximum: T.nilable(Orb::Price::BulkWithProration::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProration::Minimum, Orb::Internal::AnyHash)), + minimum: T.nilable(Orb::Price::BulkWithProration::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::BulkWithProration::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::BulkWithProration::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::BulkWithProration::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -11532,197 +15410,285 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk_with_proration - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkWithProration::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkWithProration::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::BulkWithProration::BillableMetric), + billing_cycle_configuration: + Orb::Price::BulkWithProration::BillingCycleConfiguration, + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::BulkWithProration::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkWithProration::Item, - maximum: T.nilable(Orb::Models::Price::BulkWithProration::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkWithProration::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::BulkWithProration::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration + ), + item: Orb::Price::BulkWithProration::Item, + maximum: T.nilable(Orb::Price::BulkWithProration::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::BulkWithProration::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::BulkWithProration::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::BulkWithProration::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = T.let( :month, - Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProration::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::BulkWithProration::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::BulkWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::BulkWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::BulkWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::BulkWithProration::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Price::BulkWithProration::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::BulkWithProration::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -11730,13 +15696,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -11747,7 +15717,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -11755,12 +15728,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -11771,7 +15753,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -11779,25 +15764,50 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProration::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::BulkWithProration::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkWithProration::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkWithProration::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::BulkWithProration::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::BulkWithProration::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::BulkWithProration::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::BulkWithProration::PriceType::TaggedSymbol] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -11810,40 +15820,57 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::GroupedTieredPackage::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::GroupedTieredPackage::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration) } + sig do + returns(Orb::Price::GroupedTieredPackage::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -11852,14 +15879,18 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::CreditAllocation)) } + sig do + returns(T.nilable(Orb::Price::GroupedTieredPackage::CreditAllocation)) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::GroupedTieredPackage::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -11870,10 +15901,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -11889,33 +15920,41 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :grouped_tiered_package_config - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::GroupedTieredPackage::Item) } + sig { returns(Orb::Price::GroupedTieredPackage::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::GroupedTieredPackage::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::GroupedTieredPackage::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::Maximum)) } + sig { returns(T.nilable(Orb::Price::GroupedTieredPackage::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::GroupedTieredPackage::Maximum::OrHash) + ).void end attr_writer :maximum @@ -11929,14 +15968,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::Minimum)) } + sig { returns(T.nilable(Orb::Price::GroupedTieredPackage::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::GroupedTieredPackage::Minimum::OrHash) + ).void end attr_writer :minimum @@ -11952,62 +15991,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::GroupedTieredPackage::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::GroupedTieredPackage::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::GroupedTieredPackage::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_package_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::GroupedTieredPackage::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::GroupedTieredPackage::Item::OrHash, + maximum: + T.nilable(Orb::Price::GroupedTieredPackage::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackage::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::GroupedTieredPackage::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::GroupedTieredPackage::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -12038,200 +16095,291 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackage::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackage::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::GroupedTieredPackage::BillableMetric), + billing_cycle_configuration: + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::GroupedTieredPackage::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPackage::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPackage::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration + ), + item: Orb::Price::GroupedTieredPackage::Item, + maximum: T.nilable(Orb::Price::GroupedTieredPackage::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::GroupedTieredPackage::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedTieredPackage::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackage::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -12239,13 +16387,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -12256,7 +16408,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -12264,12 +16419,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -12280,7 +16444,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -12288,25 +16455,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedTieredPackage::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPackage::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPackage::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackage::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -12319,40 +16513,59 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::MaxGroupTieredPackage::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::MaxGroupTieredPackage::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration) } + sig do + returns(Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -12361,14 +16574,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::MaxGroupTieredPackage::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::MaxGroupTieredPackage::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -12379,10 +16598,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -12395,36 +16614,44 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::MaxGroupTieredPackage::Item) } + sig { returns(Orb::Price::MaxGroupTieredPackage::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::MaxGroupTieredPackage::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::MaxGroupTieredPackage::Item::OrHash).void + end attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :max_group_tiered_package_config - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::Maximum)) } + sig { returns(T.nilable(Orb::Price::MaxGroupTieredPackage::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::MaxGroupTieredPackage::Maximum::OrHash) + ).void end attr_writer :maximum @@ -12438,14 +16665,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::Minimum)) } + sig { returns(T.nilable(Orb::Price::MaxGroupTieredPackage::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::MaxGroupTieredPackage::Minimum::OrHash) + ).void end attr_writer :minimum @@ -12461,62 +16688,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::MaxGroupTieredPackage::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::MaxGroupTieredPackage::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::MaxGroupTieredPackage::Item, Orb::Internal::AnyHash), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::MaxGroupTieredPackage::Item::OrHash, max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::Maximum, Orb::Internal::AnyHash)), + maximum: + T.nilable(Orb::Price::MaxGroupTieredPackage::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackage::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::MaxGroupTieredPackage::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::MaxGroupTieredPackage::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -12547,151 +16792,227 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation), - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::MaxGroupTieredPackage::BillableMetric), + billing_cycle_configuration: + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::MaxGroupTieredPackage::CreditAllocation), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration), - item: Orb::Models::Price::MaxGroupTieredPackage::Item, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + ), + item: Orb::Price::MaxGroupTieredPackage::Item, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Price::MaxGroupTieredPackage::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::MaxGroupTieredPackage::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -12699,52 +17020,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -12752,13 +17084,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -12769,7 +17105,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -12777,12 +17116,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -12793,7 +17141,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -12801,25 +17152,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -12832,45 +17210,65 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric)) } + sig do + returns( + T.nilable(Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric) + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric, Orb::Internal::AnyHash) - ) - ) - .void + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration) } + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -12879,16 +17277,22 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation + ) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation, Orb::Internal::AnyHash) - ) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -12899,10 +17303,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -12915,36 +17319,47 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricing::Item) } + sig { returns(Orb::Price::ScalableMatrixWithUnitPricing::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, Orb::Internal::AnyHash)).void } + sig do + params( + item: Orb::Price::ScalableMatrixWithUnitPricing::Item::OrHash + ).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum)) } + sig do + returns(T.nilable(Orb::Price::ScalableMatrixWithUnitPricing::Maximum)) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::Maximum::OrHash + ) + ).void end attr_writer :maximum @@ -12958,14 +17373,18 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum)) } + sig do + returns(T.nilable(Orb::Price::ScalableMatrixWithUnitPricing::Minimum)) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::Minimum::OrHash + ) + ).void end attr_writer :minimum @@ -12981,81 +17400,92 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ) + end attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :scalable_matrix_with_unit_pricing_config - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, - Orb::Internal::AnyHash + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric, Orb::Internal::AnyHash) - ), - billing_cycle_configuration: T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash, + cadence: + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation, Orb::Internal::AnyHash) - ), + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), - item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::ScalableMatrixWithUnitPricing::Item::OrHash, + maximum: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::Maximum::OrHash + ), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::Minimum::OrHash + ), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration, - Orb::Internal::AnyHash - ) - ), + price_type: + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -13086,65 +17516,92 @@ module Orb scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation), - currency: String, - discount: T.nilable( + override.returns( + { + id: String, + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric + ), + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation + ), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + ), + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: + T.nilable(Orb::Price::ScalableMatrixWithUnitPricing::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: + T.nilable(Orb::Price::ScalableMatrixWithUnitPricing::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -13152,90 +17609,144 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -13243,54 +17754,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13298,13 +17818,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -13315,7 +17839,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -13323,12 +17850,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -13339,7 +17875,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -13347,28 +17886,55 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -13381,45 +17947,67 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric + ) + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric, Orb::Internal::AnyHash) - ) - ) - .void + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration) } + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -13428,16 +18016,22 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation + ) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation, Orb::Internal::AnyHash) - ) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -13448,10 +18042,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -13464,38 +18058,49 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricing::Item) } + sig { returns(Orb::Price::ScalableMatrixWithTieredPricing::Item) } attr_reader :item sig do - params(item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, Orb::Internal::AnyHash)).void + params( + item: Orb::Price::ScalableMatrixWithTieredPricing::Item::OrHash + ).void end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum)) } + sig do + returns( + T.nilable(Orb::Price::ScalableMatrixWithTieredPricing::Maximum) + ) + end attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::Maximum::OrHash + ) + ).void end attr_writer :maximum @@ -13509,14 +18114,20 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum)) } + sig do + returns( + T.nilable(Orb::Price::ScalableMatrixWithTieredPricing::Minimum) + ) + end attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::Minimum::OrHash + ) + ).void end attr_writer :minimum @@ -13532,81 +18143,92 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) + end attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :scalable_matrix_with_tiered_pricing_config - sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, - Orb::Internal::AnyHash + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric, Orb::Internal::AnyHash) - ), - billing_cycle_configuration: T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable( - T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation, Orb::Internal::AnyHash) - ), + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation::OrHash + ), currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), - item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::ScalableMatrixWithTieredPricing::Item::OrHash, + maximum: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::Maximum::OrHash + ), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::Minimum::OrHash + ), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable( - T.any( - Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration, - Orb::Internal::AnyHash - ) - ), + price_type: + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -13637,65 +18259,92 @@ module Orb scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation), - currency: String, - discount: T.nilable( + override.returns( + { + id: String, + billable_metric: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric + ), + billing_cycle_configuration: + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation + ), + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + ), + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: + T.nilable(Orb::Price::ScalableMatrixWithTieredPricing::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: + T.nilable(Orb::Price::ScalableMatrixWithTieredPricing::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + dimensional_price_configuration: + T.nilable( + Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -13703,50 +18352,57 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end @@ -13754,42 +18410,89 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -13797,56 +18500,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13854,13 +18564,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -13871,7 +18585,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -13879,12 +18596,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -13895,7 +18621,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -13903,28 +18632,55 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType) } + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -13937,40 +18693,59 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::BillableMetric)) } + sig do + returns(T.nilable(Orb::Price::CumulativeGroupedBulk::BillableMetric)) + end attr_reader :billable_metric sig do params( - billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::BillableMetric, Orb::Internal::AnyHash)) - ) - .void + billable_metric: + T.nilable( + Orb::Price::CumulativeGroupedBulk::BillableMetric::OrHash + ) + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration) } + sig do + returns(Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_configuration: + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ).void end attr_writer :billing_cycle_configuration - sig { returns(Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(Float)) } @@ -13979,14 +18754,20 @@ module Orb sig { returns(Time) } attr_accessor :created_at - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation)) } + sig do + returns( + T.nilable(Orb::Price::CumulativeGroupedBulk::CreditAllocation) + ) + end attr_reader :credit_allocation sig do params( - credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation, Orb::Internal::AnyHash)) - ) - .void + credit_allocation: + T.nilable( + Orb::Price::CumulativeGroupedBulk::CreditAllocation::OrHash + ) + ).void end attr_writer :credit_allocation @@ -14000,10 +18781,10 @@ module Orb returns( T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ) ) @@ -14016,33 +18797,41 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + ) + ) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration - sig { returns(Orb::Models::Price::CumulativeGroupedBulk::Item) } + sig { returns(Orb::Price::CumulativeGroupedBulk::Item) } attr_reader :item - sig { params(item: T.any(Orb::Models::Price::CumulativeGroupedBulk::Item, Orb::Internal::AnyHash)).void } + sig do + params(item: Orb::Price::CumulativeGroupedBulk::Item::OrHash).void + end attr_writer :item - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::Maximum)) } + sig { returns(T.nilable(Orb::Price::CumulativeGroupedBulk::Maximum)) } attr_reader :maximum sig do params( - maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::Maximum, Orb::Internal::AnyHash)) - ) - .void + maximum: + T.nilable(Orb::Price::CumulativeGroupedBulk::Maximum::OrHash) + ).void end attr_writer :maximum @@ -14056,14 +18845,14 @@ module Orb sig { returns(T::Hash[Symbol, String]) } attr_accessor :metadata - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::Minimum)) } + sig { returns(T.nilable(Orb::Price::CumulativeGroupedBulk::Minimum)) } attr_reader :minimum sig do params( - minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::Minimum, Orb::Internal::AnyHash)) - ) - .void + minimum: + T.nilable(Orb::Price::CumulativeGroupedBulk::Minimum::OrHash) + ).void end attr_writer :minimum @@ -14079,62 +18868,80 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Models::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) + end attr_accessor :price_type - sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration)) } + sig do + returns( + T.nilable( + Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration + ) + ) + end attr_reader :dimensional_price_configuration sig do params( - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + dimensional_price_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration::OrHash + ) + ).void end attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::BillableMetric, Orb::Internal::AnyHash)), - billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, Orb::Internal::AnyHash), - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + billable_metric: + T.nilable( + Orb::Price::CumulativeGroupedBulk::BillableMetric::OrHash + ), + billing_cycle_configuration: + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation, Orb::Internal::AnyHash)), + credit_allocation: + T.nilable( + Orb::Price::CumulativeGroupedBulk::CreditAllocation::OrHash + ), cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable( - T.any(Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, Orb::Internal::AnyHash) - ), - item: T.any(Orb::Models::Price::CumulativeGroupedBulk::Item, Orb::Internal::AnyHash), - maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::Maximum, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), + item: Orb::Price::CumulativeGroupedBulk::Item::OrHash, + maximum: + T.nilable(Orb::Price::CumulativeGroupedBulk::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulk::Minimum, Orb::Internal::AnyHash)), + minimum: + T.nilable(Orb::Price::CumulativeGroupedBulk::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType::OrSymbol, - dimensional_price_configuration: T.nilable( - T.any(Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration, Orb::Internal::AnyHash) - ), + price_type: Orb::Price::CumulativeGroupedBulk::PriceType::OrSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration::OrHash + ), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -14165,151 +18972,227 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk - ); end - sig do - override - .returns( - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - discount: T.nilable( + ) + end + + sig do + override.returns( + { + id: String, + billable_metric: + T.nilable(Orb::Price::CumulativeGroupedBulk::BillableMetric), + billing_cycle_configuration: + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: + T.nilable(Orb::Price::CumulativeGroupedBulk::CreditAllocation), + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + currency: String, + discount: + T.nilable( T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount + Orb::PercentageDiscount, + Orb::TrialDiscount, + Orb::UsageDiscount, + Orb::AmountDiscount ) ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration), - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration) - } - ) + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + ), + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: T.nilable(Orb::Price::CumulativeGroupedBulk::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Price::CumulativeGroupedBulk::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, + dimensional_price_configuration: + T.nilable( + Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration + ) + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration - sig { returns(Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + sig do + returns( + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end attr_accessor :duration_unit sig do params( duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] + ) + end + def self.values + end end class CreditAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Boolean) } attr_accessor :allows_rollover sig { returns(String) } attr_accessor :currency - sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } - def self.new(allows_rollover:, currency:); end + sig do + params(allows_rollover: T::Boolean, currency: String).returns( + T.attached_class + ) + end + def self.new(allows_rollover:, currency:) + end - sig { override.returns({allows_rollover: T::Boolean, currency: String}) } - def to_hash; end + sig do + override.returns({ allows_rollover: T::Boolean, currency: String }) + end + def to_hash + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Integer) } attr_accessor :duration sig do returns( - Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) end attr_accessor :duration_unit @@ -14317,52 +19200,63 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) + end + def self.new(duration:, duration_unit:) end - def self.new(duration:, duration_unit:); end sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Item < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -14370,13 +19264,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -14387,7 +19285,10 @@ module Orb attr_accessor :maximum_amount sig do - params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + maximum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this maximum amount applies to. For plan/plan phase @@ -14395,12 +19296,21 @@ module Orb applies_to_price_ids:, # Maximum amount applied maximum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], maximum_amount: String } + ) + end + def to_hash + end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } @@ -14411,7 +19321,10 @@ module Orb attr_accessor :minimum_amount sig do - params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) + params( + applies_to_price_ids: T::Array[String], + minimum_amount: String + ).returns(T.attached_class) end def self.new( # List of price_ids that this minimum amount applies to. For plan/plan phase @@ -14419,25 +19332,52 @@ module Orb applies_to_price_ids:, # Minimum amount applied minimum_amount: - ); end - sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { applies_to_price_ids: T::Array[String], minimum_amount: String } + ) + end + def to_hash + end end module PriceType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) - FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) + USAGE_PRICE = + T.let( + :usage_price, + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + ) + FIXED_PRICE = + T.let( + :fixed_price, + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + ] + ) + end + def self.values + end end class DimensionalPriceConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -14450,20 +19390,25 @@ module Orb dimensional_price_group_id: String ).returns(T.attached_class) end - def self.new(dimension_values:, dimensional_price_group_id:); end + def self.new(dimension_values:, dimensional_price_group_id:) + end - sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } - def to_hash; end + sig do + override.returns( + { + dimension_values: T::Array[String], + dimensional_price_group_id: String + } + ) + end + def to_hash + end end end - sig do - override - .returns( - [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] - ) + sig { override.returns(T::Array[Orb::Price::Variants]) } + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index d7e553be..975eb451 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -6,8 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::PriceCreateParams::Cadence::OrSymbol) } + sig { returns(Orb::PriceCreateParams::Cadence::OrSymbol) } attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -18,17 +20,19 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::PriceCreateParams::ModelType::OrSymbol) } + sig { returns(Orb::PriceCreateParams::ModelType::OrSymbol) } attr_accessor :model_type # The name of the price. sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::PriceCreateParams::UnitConfig) } + sig { returns(Orb::PriceCreateParams::UnitConfig) } attr_reader :unit_config - sig { params(unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Internal::AnyHash)).void } + sig do + params(unit_config: Orb::PriceCreateParams::UnitConfig::OrHash).void + end attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is @@ -43,14 +47,16 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::PriceCreateParams::BillingCycleConfiguration)) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + billing_cycle_configuration: + T.nilable(Orb::PriceCreateParams::BillingCycleConfiguration::OrHash) + ).void end attr_writer :billing_cycle_configuration @@ -73,14 +79,18 @@ module Orb # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) } + sig do + returns(T.nilable(Orb::PriceCreateParams::InvoicingCycleConfiguration)) + end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Internal::AnyHash)) - ) - .void + invoicing_cycle_configuration: + T.nilable( + Orb::PriceCreateParams::InvoicingCycleConfiguration::OrHash + ) + ).void end attr_writer :invoicing_cycle_configuration @@ -90,60 +100,75 @@ module Orb sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata - sig { returns(Orb::Models::PriceCreateParams::PackageConfig) } + sig { returns(Orb::PriceCreateParams::PackageConfig) } attr_reader :package_config - sig { params(package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Internal::AnyHash)).void } + sig do + params( + package_config: Orb::PriceCreateParams::PackageConfig::OrHash + ).void + end attr_writer :package_config - sig { returns(Orb::Models::PriceCreateParams::MatrixConfig) } + sig { returns(Orb::PriceCreateParams::MatrixConfig) } attr_reader :matrix_config - sig { params(matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Internal::AnyHash)).void } + sig do + params(matrix_config: Orb::PriceCreateParams::MatrixConfig::OrHash).void + end attr_writer :matrix_config - sig { returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) } + sig { returns(Orb::PriceCreateParams::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config sig do params( - matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Internal::AnyHash) - ) - .void + matrix_with_allocation_config: + Orb::PriceCreateParams::MatrixWithAllocationConfig::OrHash + ).void end attr_writer :matrix_with_allocation_config - sig { returns(Orb::Models::PriceCreateParams::TieredConfig) } + sig { returns(Orb::PriceCreateParams::TieredConfig) } attr_reader :tiered_config - sig { params(tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Internal::AnyHash)).void } + sig do + params(tiered_config: Orb::PriceCreateParams::TieredConfig::OrHash).void + end attr_writer :tiered_config - sig { returns(Orb::Models::PriceCreateParams::TieredBpsConfig) } + sig { returns(Orb::PriceCreateParams::TieredBpsConfig) } attr_reader :tiered_bps_config sig do - params(tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Internal::AnyHash)) - .void + params( + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config - sig { returns(Orb::Models::PriceCreateParams::BpsConfig) } + sig { returns(Orb::PriceCreateParams::BpsConfig) } attr_reader :bps_config - sig { params(bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Internal::AnyHash)).void } + sig { params(bps_config: Orb::PriceCreateParams::BpsConfig::OrHash).void } attr_writer :bps_config - sig { returns(Orb::Models::PriceCreateParams::BulkBpsConfig) } + sig { returns(Orb::PriceCreateParams::BulkBpsConfig) } attr_reader :bulk_bps_config - sig { params(bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Internal::AnyHash)).void } + sig do + params( + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig::OrHash + ).void + end attr_writer :bulk_bps_config - sig { returns(Orb::Models::PriceCreateParams::BulkConfig) } + sig { returns(Orb::PriceCreateParams::BulkConfig) } attr_reader :bulk_config - sig { params(bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Internal::AnyHash)).void } + sig do + params(bulk_config: Orb::PriceCreateParams::BulkConfig::OrHash).void + end attr_writer :bulk_config sig { returns(T::Hash[Symbol, T.anything]) } @@ -205,20 +230,21 @@ module Orb sig do params( - cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, + cadence: Orb::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, + model_type: Orb::PriceCreateParams::ModelType::OrSymbol, name: String, - unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Internal::AnyHash), - package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Internal::AnyHash), - matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Internal::AnyHash), - matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Internal::AnyHash), - tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Internal::AnyHash), - tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Internal::AnyHash), - bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Internal::AnyHash), - bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Internal::AnyHash), - bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Internal::AnyHash), + unit_config: Orb::PriceCreateParams::UnitConfig::OrHash, + package_config: Orb::PriceCreateParams::PackageConfig::OrHash, + matrix_config: Orb::PriceCreateParams::MatrixConfig::OrHash, + matrix_with_allocation_config: + Orb::PriceCreateParams::MatrixWithAllocationConfig::OrHash, + tiered_config: Orb::PriceCreateParams::TieredConfig::OrHash, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig::OrHash, + bps_config: Orb::PriceCreateParams::BpsConfig::OrHash, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig::OrHash, + bulk_config: Orb::PriceCreateParams::BulkConfig::OrHash, threshold_total_amount_config: T::Hash[Symbol, T.anything], tiered_package_config: T::Hash[Symbol, T.anything], grouped_tiered_config: T::Hash[Symbol, T.anything], @@ -236,20 +262,26 @@ module Orb bulk_with_proration_config: T::Hash[Symbol, T.anything], grouped_tiered_package_config: T::Hash[Symbol, T.anything], scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Internal::AnyHash)), + billing_cycle_configuration: + T.nilable( + Orb::PriceCreateParams::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::PriceCreateParams::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -315,91 +347,118 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, - name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - package_config: Orb::Models::PriceCreateParams::PackageConfig, - matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, - matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - request_options: Orb::RequestOptions - } - ) + override.returns( + { + cadence: Orb::PriceCreateParams::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Orb::PriceCreateParams::ModelType::OrSymbol, + name: String, + unit_config: Orb::PriceCreateParams::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::PriceCreateParams::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::PriceCreateParams::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + package_config: Orb::PriceCreateParams::PackageConfig, + matrix_config: Orb::PriceCreateParams::MatrixConfig, + matrix_with_allocation_config: + Orb::PriceCreateParams::MatrixWithAllocationConfig, + tiered_config: Orb::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::PriceCreateParams::BulkConfig, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::Cadence) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::PriceCreateParams::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ANNUAL = T.let(:annual, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::PriceCreateParams::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::PriceCreateParams::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::PriceCreateParams::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::PriceCreateParams::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::PriceCreateParams::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::PriceCreateParams::Cadence::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::PriceCreateParams::Cadence::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::PriceCreateParams::Cadence::TaggedSymbol] + ) + end + def self.values + end end module ModelType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::ModelType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::PriceCreateParams::ModelType) } OrSymbol = T.type_alias { T.any(Symbol, String) } CUMULATIVE_GROUPED_BULK = - T.let(:cumulative_grouped_bulk, Orb::Models::PriceCreateParams::ModelType::TaggedSymbol) + T.let( + :cumulative_grouped_bulk, + Orb::PriceCreateParams::ModelType::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::PriceCreateParams::ModelType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::PriceCreateParams::ModelType::TaggedSymbol] + ) + end + def self.values + end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -408,18 +467,27 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or @@ -427,54 +495,79 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + DAY = + T.let( + :day, + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration # The unit of billing period duration. - sig { returns(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + sig do + returns( + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + end attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. @@ -482,49 +575,69 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit) } + T.type_alias do + T.all( + Symbol, + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = - T.let(:day, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :day, + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) MONTH = - T.let(:month, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + T.let( + :month, + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + override.returns( + T::Array[ + Orb::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -534,19 +647,30 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns({ package_amount: String, package_size: Integer }) + end + def to_hash + end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -556,16 +680,20 @@ module Orb attr_accessor :dimensions # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) } + sig do + returns(T::Array[Orb::PriceCreateParams::MatrixConfig::MatrixValue]) + end attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::PriceCreateParams::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -574,20 +702,25 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[Orb::PriceCreateParams::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -611,13 +744,25 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Allocation to be used to calculate the price sig { returns(Float) } attr_accessor :allocation @@ -631,7 +776,13 @@ module Orb attr_accessor :dimensions # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) } + sig do + returns( + T::Array[ + Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue + ] + ) + end attr_accessor :matrix_values sig do @@ -639,9 +790,11 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Allocation to be used to calculate the price @@ -652,21 +805,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - } - ) + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -690,29 +850,51 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) } + sig { returns(T::Array[Orb::PriceCreateParams::TieredConfig::Tier]) } attr_accessor :tiers sig do - params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredConfig::Tier, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + tiers: T::Array[Orb::PriceCreateParams::TieredConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::PriceCreateParams::TieredConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -739,33 +921,55 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end - sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash + end end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers - sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) } + sig { returns(T::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier]) } attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredBpsConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: + T::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -788,8 +992,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -800,23 +1003,27 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -825,38 +1032,57 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns({ bps: Float, per_unit_maximum: T.nilable(String) }) + end + def to_hash + end end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume - sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) } + sig { returns(T::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier]) } attr_accessor :tiers sig do params( - tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkBpsConfig::Tier, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + tiers: T::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -870,8 +1096,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -880,7 +1109,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -890,27 +1121,40 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) } + sig { returns(T::Array[Orb::PriceCreateParams::BulkConfig::Tier]) } attr_accessor :tiers sig do - params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkConfig::Tier, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + tiers: T::Array[Orb::PriceCreateParams::BulkConfig::Tier::OrHash] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end - sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]}) } - def to_hash; end + ) + end + + sig do + override.returns( + { tiers: T::Array[Orb::PriceCreateParams::BulkConfig::Tier] } + ) + end + def to_hash + end class Tier < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -919,15 +1163,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/price_evaluate_params.rbi b/rbi/orb/models/price_evaluate_params.rbi index 91dff47a..a227426b 100644 --- a/rbi/orb/models/price_evaluate_params.rbi +++ b/rbi/orb/models/price_evaluate_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The exclusive upper bound for event timestamps sig { returns(Time) } attr_accessor :timeframe_end @@ -45,9 +47,8 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The exclusive upper bound for event timestamps @@ -67,22 +68,24 @@ module Orb # to group the underlying billable metric grouping_keys: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - timeframe_end: Time, - timeframe_start: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - filter: T.nilable(String), - grouping_keys: T::Array[String], - request_options: Orb::RequestOptions - } - ) + override.returns( + { + timeframe_end: Time, + timeframe_start: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + filter: T.nilable(String), + grouping_keys: T::Array[String], + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/price_evaluate_response.rbi b/rbi/orb/models/price_evaluate_response.rbi index 73badb16..e12fa0c4 100644 --- a/rbi/orb/models/price_evaluate_response.rbi +++ b/rbi/orb/models/price_evaluate_response.rbi @@ -3,17 +3,22 @@ module Orb module Models class PriceEvaluateResponse < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::EvaluatePriceGroup]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::EvaluatePriceGroup]) } attr_accessor :data sig do - params(data: T::Array[T.any(Orb::Models::EvaluatePriceGroup, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params(data: T::Array[Orb::EvaluatePriceGroup::OrHash]).returns( + T.attached_class + ) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::EvaluatePriceGroup]}) } - def to_hash; end + sig { override.returns({ data: T::Array[Orb::EvaluatePriceGroup] }) } + def to_hash + end end end end diff --git a/rbi/orb/models/price_fetch_params.rbi b/rbi/orb/models/price_fetch_params.rbi index 9a099069..bb3860c3 100644 --- a/rbi/orb/models/price_fetch_params.rbi +++ b/rbi/orb/models/price_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/price_list_params.rbi b/rbi/orb/models/price_list_params.rbi index e55bbd7d..88c4547e 100644 --- a/rbi/orb/models/price_list_params.rbi +++ b/rbi/orb/models/price_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -22,9 +24,8 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -33,11 +34,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + sig do - override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/price_update_params.rbi b/rbi/orb/models/price_update_params.rbi index abf4b50f..c9cc4f77 100644 --- a/rbi/orb/models/price_update_params.rbi +++ b/rbi/orb/models/price_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. @@ -15,9 +17,8 @@ module Orb sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # User-specified key/value pairs for the resource. Individual keys can be removed @@ -25,15 +26,19 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns({ - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - }) + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/prices/external_price_id_fetch_params.rbi b/rbi/orb/models/prices/external_price_id_fetch_params.rbi index 4ceeb3b8..21e5da12 100644 --- a/rbi/orb/models/prices/external_price_id_fetch_params.rbi +++ b/rbi/orb/models/prices/external_price_id_fetch_params.rbi @@ -7,18 +7,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params( - request_options: T.any( - Orb::RequestOptions, - Orb::Internal::AnyHash - ) - ).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/prices/external_price_id_update_params.rbi b/rbi/orb/models/prices/external_price_id_update_params.rbi index ab1024fd..30008589 100644 --- a/rbi/orb/models/prices/external_price_id_update_params.rbi +++ b/rbi/orb/models/prices/external_price_id_update_params.rbi @@ -7,6 +7,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. @@ -16,9 +18,8 @@ module Orb sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # User-specified key/value pairs for the resource. Individual keys can be removed @@ -26,15 +27,19 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + sig do - override - .returns({ - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOptions - }) + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription.rbi b/rbi/orb/models/subscription.rbi index e66995bc..4929760f 100644 --- a/rbi/orb/models/subscription.rbi +++ b/rbi/orb/models/subscription.rbi @@ -3,6 +3,8 @@ module Orb module Models class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,7 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) } + sig { returns(T::Array[Orb::Subscription::AdjustmentInterval]) } attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,14 +24,14 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) } + sig { returns(Orb::Subscription::BillingCycleAnchorConfiguration) } attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_anchor_configuration: + Orb::Subscription::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -73,10 +75,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -89,9 +91,9 @@ module Orb returns( T::Array[ T.any( - Orb::Models::Subscription::DiscountInterval::Amount, - Orb::Models::Subscription::DiscountInterval::Percentage, - Orb::Models::Subscription::DiscountInterval::Usage + Orb::Subscription::DiscountInterval::Amount, + Orb::Subscription::DiscountInterval::Percentage, + Orb::Subscription::DiscountInterval::Usage ) ] ) @@ -102,14 +104,14 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) } + sig { returns(T::Array[Orb::Subscription::FixedFeeQuantitySchedule]) } attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::Subscription::MaximumInterval]) } + sig { returns(T::Array[Orb::Subscription::MaximumInterval]) } attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -120,7 +122,7 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::Subscription::MinimumInterval]) } + sig { returns(T::Array[Orb::Subscription::MinimumInterval]) } attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -131,14 +133,14 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::Subscription::PendingSubscriptionChange)) } + sig { returns(T.nilable(Orb::Subscription::PendingSubscriptionChange)) } attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable(T.any(Orb::Models::Subscription::PendingSubscriptionChange, Orb::Internal::AnyHash)) - ) - .void + pending_subscription_change: + T.nilable(Orb::Subscription::PendingSubscriptionChange::OrHash) + ).void end attr_writer :pending_subscription_change @@ -146,24 +148,23 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::Subscription::PriceInterval]) } + sig { returns(T::Array[Orb::Subscription::PriceInterval]) } attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) } + sig { returns(T.nilable(Orb::Subscription::RedeemedCoupon)) } attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: T.nilable(Orb::Subscription::RedeemedCoupon::OrHash) + ).void end attr_writer :redeemed_coupon @@ -171,13 +172,13 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::Subscription::Status::TaggedSymbol) } + sig { returns(Orb::Subscription::Status::TaggedSymbol) } attr_accessor :status - sig { returns(Orb::Models::Subscription::TrialInfo) } + sig { returns(Orb::Subscription::TrialInfo) } attr_reader :trial_info - sig { params(trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Internal::AnyHash)).void } + sig { params(trial_info: Orb::Subscription::TrialInfo::OrHash).void } attr_writer :trial_info # A [subscription](/core-concepts#subscription) represents the purchase of a plan @@ -203,39 +204,44 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::Subscription::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[Orb::Subscription::AdjustmentInterval::OrHash], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash), + billing_cycle_anchor_configuration: + Orb::Subscription::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::Subscription::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::Subscription::DiscountInterval::Percentage, - Orb::Models::Subscription::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Subscription::DiscountInterval::Amount::OrHash, + Orb::Subscription::DiscountInterval::Percentage::OrHash, + Orb::Subscription::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::Subscription::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[Orb::Subscription::FixedFeeQuantitySchedule::OrHash], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::Subscription::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[Orb::Subscription::MaximumInterval::OrHash], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::Subscription::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[Orb::Subscription::MinimumInterval::OrHash], net_terms: Integer, - pending_subscription_change: T.nilable(T.any(Orb::Models::Subscription::PendingSubscriptionChange, Orb::Internal::AnyHash)), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::Subscription::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable(Orb::Subscription::PendingSubscriptionChange::OrHash), + plan: Orb::Plan::OrHash, + price_intervals: T::Array[Orb::Subscription::PriceInterval::OrHash], + redeemed_coupon: T.nilable(Orb::Subscription::RedeemedCoupon::OrHash), start_date: Time, - status: Orb::Models::Subscription::Status::OrSymbol, - trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + status: Orb::Subscription::Status::OrSymbol, + trial_info: Orb::Subscription::TrialInfo::OrHash + ).returns(T.attached_class) end def self.new( id:, @@ -320,60 +326,69 @@ module Orb start_date:, status:, trial_info: - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[Orb::Subscription::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( - Orb::Models::Subscription::DiscountInterval::Amount, - Orb::Models::Subscription::DiscountInterval::Percentage, - Orb::Models::Subscription::DiscountInterval::Usage + Orb::Subscription::DiscountInterval::Amount, + Orb::Subscription::DiscountInterval::Percentage, + Orb::Subscription::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::Subscription::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), - start_date: Time, - status: Orb::Models::Subscription::Status::TaggedSymbol, - trial_info: Orb::Models::Subscription::TrialInfo - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[Orb::Subscription::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Subscription::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Subscription::MinimumInterval], + net_terms: Integer, + pending_subscription_change: + T.nilable(Orb::Subscription::PendingSubscriptionChange), + plan: Orb::Plan, + price_intervals: T::Array[Orb::Subscription::PriceInterval], + redeemed_coupon: T.nilable(Orb::Subscription::RedeemedCoupon), + start_date: Time, + status: Orb::Subscription::Status::TaggedSymbol, + trial_info: Orb::Subscription::TrialInfo + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id sig do returns( T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum ) ) end @@ -394,19 +409,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -417,31 +431,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum + override.returns( + { + id: String, + adjustment: + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -479,8 +509,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -497,25 +526,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -553,8 +586,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -571,25 +603,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -627,8 +663,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -645,25 +680,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -706,8 +745,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -726,26 +764,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -783,8 +825,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -801,35 +842,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Subscription::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -849,7 +896,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -864,15 +915,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Subscription::DiscountInterval::Amount, + Orb::Subscription::DiscountInterval::Percentage, + Orb::Subscription::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -904,8 +977,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -919,24 +991,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -969,8 +1045,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -985,24 +1060,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1035,8 +1114,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1051,33 +1129,37 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage] - ) + override.returns( + T::Array[Orb::Subscription::DiscountInterval::Variants] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1091,18 +1173,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1131,8 +1228,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1146,23 +1242,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1191,8 +1291,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1206,35 +1305,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1265,7 +1372,15 @@ module Orb # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. - sig { returns(T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition])) } + sig do + returns( + T.nilable( + T::Array[ + Orb::Subscription::PriceInterval::FixedFeeQuantityTransition + ] + ) + ) + end attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, @@ -1281,34 +1396,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1335,44 +1450,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[T.any(Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition, Orb::Internal::AnyHash)] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1411,56 +1528,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1470,15 +1597,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1489,37 +1630,54 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Subscription::Status) } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Subscription::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::Subscription::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::Subscription::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::Subscription::Status::TaggedSymbol) + ACTIVE = T.let(:active, Orb::Subscription::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Subscription::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Subscription::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::Subscription::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns(T::Array[Orb::Subscription::Status::TaggedSymbol]) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_cancel_params.rbi b/rbi/orb/models/subscription_cancel_params.rbi index 8637a253..dfef8364 100644 --- a/rbi/orb/models/subscription_cancel_params.rbi +++ b/rbi/orb/models/subscription_cancel_params.rbi @@ -6,8 +6,10 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Determines the timing of subscription cancellation - sig { returns(Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol) } + sig { returns(Orb::SubscriptionCancelParams::CancelOption::OrSymbol) } attr_accessor :cancel_option # If false, this request will fail if it would void an issued invoice or create a @@ -23,12 +25,11 @@ module Orb sig do params( - cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, + cancel_option: Orb::SubscriptionCancelParams::CancelOption::OrSymbol, allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Determines the timing of subscription cancellation @@ -41,35 +42,56 @@ module Orb # passed if the `cancel_option` is `requested_date`. cancellation_date: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, - allow_invoice_credit_or_void: T.nilable(T::Boolean), - cancellation_date: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + cancel_option: + Orb::SubscriptionCancelParams::CancelOption::OrSymbol, + allow_invoice_credit_or_void: T.nilable(T::Boolean), + cancellation_date: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # Determines the timing of subscription cancellation module CancelOption extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelParams::CancelOption) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionCancelParams::CancelOption) + end OrSymbol = T.type_alias { T.any(Symbol, String) } END_OF_SUBSCRIPTION_TERM = - T.let(:end_of_subscription_term, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) - IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + T.let( + :end_of_subscription_term, + Orb::SubscriptionCancelParams::CancelOption::TaggedSymbol + ) + IMMEDIATE = + T.let( + :immediate, + Orb::SubscriptionCancelParams::CancelOption::TaggedSymbol + ) REQUESTED_DATE = - T.let(:requested_date, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + T.let( + :requested_date, + Orb::SubscriptionCancelParams::CancelOption::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::SubscriptionCancelParams::CancelOption::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/subscription_cancel_response.rbi b/rbi/orb/models/subscription_cancel_response.rbi index 1cbb7237..12c99e6c 100644 --- a/rbi/orb/models/subscription_cancel_response.rbi +++ b/rbi/orb/models/subscription_cancel_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionCancelResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,11 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,14 +28,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -73,10 +83,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -102,14 +112,24 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -120,7 +140,11 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -131,16 +155,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ) - ) - .void + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange::OrHash + ) + ).void end attr_writer :pending_subscription_change @@ -148,24 +178,34 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCancelResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -173,26 +213,38 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) } + sig do + returns(Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) + end attr_accessor :status sig { returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) } attr_reader :trial_info - sig { params(trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Internal::AnyHash)).void } + sig do + params( + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo::OrHash + ).void + end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionCancelResponse::ChangedResources)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionCancelResponse::ChangedResources) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionCancelResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -200,42 +252,65 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCancelResponse::RedeemedCoupon::OrHash + ), start_date: Time, status: Orb::Models::SubscriptionCancelResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + trial_info: + Orb::Models::SubscriptionCancelResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionCancelResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -324,50 +399,79 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionCancelResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionCancelResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCancelResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol, + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionCancelResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -399,19 +503,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -422,31 +525,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -484,8 +603,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -502,25 +620,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -558,8 +680,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -576,25 +697,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -632,8 +757,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -650,25 +774,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -711,8 +839,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -731,26 +858,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -788,8 +919,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -806,35 +936,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -854,7 +990,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -869,15 +1009,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -909,8 +1071,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -924,24 +1085,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -974,8 +1139,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -990,24 +1154,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1040,8 +1208,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1056,33 +1223,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1096,18 +1269,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1136,8 +1324,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1151,23 +1338,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1196,8 +1387,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1211,35 +1401,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1272,7 +1470,11 @@ module Orb # relevant for fixed fees. sig do returns( - T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) + T.nilable( + T::Array[ + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition + ] + ) ) end attr_accessor :fixed_fee_quantity_transitions @@ -1290,34 +1492,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1344,49 +1546,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1425,56 +1624,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1484,15 +1693,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1503,54 +1726,92 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCancelResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1558,12 +1819,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1574,19 +1834,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_change_apply_params.rbi b/rbi/orb/models/subscription_change_apply_params.rbi index 07363c79..0f035a05 100644 --- a/rbi/orb/models/subscription_change_apply_params.rbi +++ b/rbi/orb/models/subscription_change_apply_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Description to apply to the balance transaction representing this credit. sig { returns(T.nilable(String)) } attr_accessor :description @@ -18,9 +20,8 @@ module Orb params( description: T.nilable(String), previously_collected_amount: T.nilable(String), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Description to apply to the balance transaction representing this credit. @@ -28,18 +29,20 @@ module Orb # Amount already collected to apply to the customer's balance. previously_collected_amount: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - description: T.nilable(String), - previously_collected_amount: T.nilable(String), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + description: T.nilable(String), + previously_collected_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_change_apply_response.rbi b/rbi/orb/models/subscription_change_apply_response.rbi index e5e50bcd..f7b868d8 100644 --- a/rbi/orb/models/subscription_change_apply_response.rbi +++ b/rbi/orb/models/subscription_change_apply_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionChangeApplyResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -10,17 +12,27 @@ module Orb sig { returns(Time) } attr_accessor :expiration_time - sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription) + ) + end attr_reader :subscription sig do params( - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription, Orb::Internal::AnyHash)) - ) - .void + subscription: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash + ) + ).void end attr_writer :subscription @@ -40,12 +52,15 @@ module Orb params( id: String, expiration_time: Time, - status: Orb::Models::SubscriptionChangeApplyResponse::Status::OrSymbol, - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription, Orb::Internal::AnyHash)), + status: + Orb::Models::SubscriptionChangeApplyResponse::Status::OrSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::OrHash + ), applied_at: T.nilable(Time), cancelled_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -57,37 +72,67 @@ module Orb applied_at: nil, # When this change was cancelled. cancelled_at: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - expiration_time: Time, - status: Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol, - subscription: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription), - applied_at: T.nilable(Time), - cancelled_at: T.nilable(Time) - } - ) + override.returns( + { + id: String, + expiration_time: Time, + status: + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription + ), + applied_at: T.nilable(Time), + cancelled_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol) - APPLIED = T.let(:applied, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol) - CANCELLED = T.let(:cancelled, Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol + ) + APPLIED = + T.let( + :applied, + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol + ) + CANCELLED = + T.let( + :cancelled, + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -98,7 +143,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -107,17 +158,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -161,10 +213,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -190,14 +242,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -208,7 +272,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -219,19 +289,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -239,26 +312,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash) - ) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -266,36 +351,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .void + ).void end attr_writer :changed_resources @@ -303,65 +399,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval, - Orb::Internal::AnyHash - ) - ], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + status: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -450,50 +547,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionChangeApplyResponse::Subscription::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -525,19 +654,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -548,31 +676,48 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -610,8 +755,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -628,25 +772,30 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -684,8 +833,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -702,25 +850,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -758,8 +911,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -776,25 +928,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -837,8 +994,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -857,26 +1013,31 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -914,8 +1075,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -932,35 +1092,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -999,15 +1165,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -1039,8 +1227,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -1054,24 +1241,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1104,8 +1295,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1120,24 +1310,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1170,8 +1364,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1186,33 +1379,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1226,18 +1425,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1266,8 +1480,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1281,23 +1494,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1326,8 +1543,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1341,35 +1557,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1403,7 +1627,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1422,34 +1648,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1476,49 +1702,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1557,58 +1780,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1619,16 +1850,28 @@ module Orb attr_accessor :quantity sig do - params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) end - def self.new(effective_date:, price_id:, quantity:); end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1639,59 +1882,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeApplyResponse::Subscription::Status::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1699,12 +1978,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1715,19 +1993,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_change_cancel_params.rbi b/rbi/orb/models/subscription_change_cancel_params.rbi index 9a255d08..19b4a067 100644 --- a/rbi/orb/models/subscription_change_cancel_params.rbi +++ b/rbi/orb/models/subscription_change_cancel_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_change_cancel_response.rbi b/rbi/orb/models/subscription_change_cancel_response.rbi index 4162d78d..f391825c 100644 --- a/rbi/orb/models/subscription_change_cancel_response.rbi +++ b/rbi/orb/models/subscription_change_cancel_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionChangeCancelResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -10,17 +12,27 @@ module Orb sig { returns(Time) } attr_accessor :expiration_time - sig { returns(Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription) + ) + end attr_reader :subscription sig do params( - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription, Orb::Internal::AnyHash)) - ) - .void + subscription: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::OrHash + ) + ).void end attr_writer :subscription @@ -40,12 +52,15 @@ module Orb params( id: String, expiration_time: Time, - status: Orb::Models::SubscriptionChangeCancelResponse::Status::OrSymbol, - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription, Orb::Internal::AnyHash)), + status: + Orb::Models::SubscriptionChangeCancelResponse::Status::OrSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::OrHash + ), applied_at: T.nilable(Time), cancelled_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -57,37 +72,67 @@ module Orb applied_at: nil, # When this change was cancelled. cancelled_at: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - expiration_time: Time, - status: Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol, - subscription: T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription), - applied_at: T.nilable(Time), - cancelled_at: T.nilable(Time) - } - ) + override.returns( + { + id: String, + expiration_time: Time, + status: + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription + ), + applied_at: T.nilable(Time), + cancelled_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeCancelResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionChangeCancelResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol) - APPLIED = T.let(:applied, Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol) - CANCELLED = T.let(:cancelled, Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol + ) + APPLIED = + T.let( + :applied, + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol + ) + CANCELLED = + T.let( + :cancelled, + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -98,7 +143,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -107,17 +158,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -161,10 +213,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -190,14 +242,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -208,7 +272,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -219,19 +289,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -239,26 +312,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash) - ) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -266,36 +351,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .void + ).void end attr_writer :changed_resources @@ -303,75 +399,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval, - Orb::Internal::AnyHash - ) - ], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval, - Orb::Internal::AnyHash - ) - ], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval, - Orb::Internal::AnyHash - ) - ], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon, Orb::Internal::AnyHash) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + status: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -460,50 +547,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionChangeCancelResponse::Subscription::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -535,19 +654,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -558,31 +676,48 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -620,8 +755,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -638,25 +772,30 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -694,8 +833,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -712,25 +850,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -768,8 +911,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -786,25 +928,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -847,8 +994,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -867,26 +1013,31 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -924,8 +1075,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -942,35 +1092,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -1009,15 +1165,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -1049,8 +1227,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -1064,24 +1241,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1114,8 +1295,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1130,24 +1310,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1180,8 +1364,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1196,33 +1379,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1236,18 +1425,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1276,8 +1480,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1291,23 +1494,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1336,8 +1543,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1351,35 +1557,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1413,7 +1627,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1432,34 +1648,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1486,49 +1702,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1567,58 +1780,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1629,16 +1850,28 @@ module Orb attr_accessor :quantity sig do - params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) end - def self.new(effective_date:, price_id:, quantity:); end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1649,60 +1882,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ACTIVE = - T.let(:active, Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol) + T.let( + :active, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeCancelResponse::Subscription::Status::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1710,12 +1978,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1726,19 +1993,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_change_retrieve_params.rbi b/rbi/orb/models/subscription_change_retrieve_params.rbi index d00b5792..01579df5 100644 --- a/rbi/orb/models/subscription_change_retrieve_params.rbi +++ b/rbi/orb/models/subscription_change_retrieve_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_change_retrieve_response.rbi b/rbi/orb/models/subscription_change_retrieve_response.rbi index 2c19bc6a..b22dcffa 100644 --- a/rbi/orb/models/subscription_change_retrieve_response.rbi +++ b/rbi/orb/models/subscription_change_retrieve_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionChangeRetrieveResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -10,17 +12,29 @@ module Orb sig { returns(Time) } attr_accessor :expiration_time - sig { returns(Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription + ) + ) + end attr_reader :subscription sig do params( - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription, Orb::Internal::AnyHash)) - ) - .void + subscription: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::OrHash + ) + ).void end attr_writer :subscription @@ -40,12 +54,15 @@ module Orb params( id: String, expiration_time: Time, - status: Orb::Models::SubscriptionChangeRetrieveResponse::Status::OrSymbol, - subscription: T.nilable(T.any(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription, Orb::Internal::AnyHash)), + status: + Orb::Models::SubscriptionChangeRetrieveResponse::Status::OrSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::OrHash + ), applied_at: T.nilable(Time), cancelled_at: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -57,37 +74,70 @@ module Orb applied_at: nil, # When this change was cancelled. cancelled_at: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - expiration_time: Time, - status: Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol, - subscription: T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription), - applied_at: T.nilable(Time), - cancelled_at: T.nilable(Time) - } - ) + override.returns( + { + id: String, + expiration_time: Time, + status: + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol, + subscription: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription + ), + applied_at: T.nilable(Time), + cancelled_at: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeRetrieveResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionChangeRetrieveResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PENDING = T.let(:pending, Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol) - APPLIED = T.let(:applied, Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol) - CANCELLED = T.let(:cancelled, Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol) + PENDING = + T.let( + :pending, + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol + ) + APPLIED = + T.let( + :applied, + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol + ) + CANCELLED = + T.let( + :cancelled, + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class Subscription < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -98,7 +148,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -107,17 +163,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -161,10 +218,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -190,14 +247,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -208,7 +277,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -221,21 +296,20 @@ module Orb # A pending subscription change if one exists on this subscription. sig do returns( - T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange) + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange + ) ) end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -243,29 +317,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon, - Orb::Internal::AnyHash + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon::OrHash ) - ) - ) - .void + ).void end attr_writer :redeemed_coupon @@ -273,36 +356,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .void + ).void end attr_writer :changed_resources @@ -310,83 +404,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval, - Orb::Internal::AnyHash - ) - ], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval, - Orb::Internal::AnyHash - ) - ], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval, - Orb::Internal::AnyHash - ) - ], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval, - Orb::Internal::AnyHash - ) - ], - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon, - Orb::Internal::AnyHash - ) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources, - Orb::Internal::AnyHash + status: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources::OrHash ) - ) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -475,50 +552,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -550,19 +659,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -573,31 +681,48 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -635,8 +760,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -653,25 +777,30 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -709,8 +838,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -727,25 +855,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -783,8 +916,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -801,25 +933,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -862,8 +999,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -882,26 +1018,31 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -939,8 +1080,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -957,35 +1097,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -1024,15 +1170,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -1064,8 +1232,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -1079,24 +1246,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1129,8 +1300,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1145,24 +1315,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1195,8 +1369,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1211,33 +1384,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1251,18 +1430,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1291,8 +1485,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1306,23 +1499,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1351,8 +1548,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1366,35 +1562,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1428,7 +1632,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1447,34 +1653,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1501,49 +1707,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1582,58 +1785,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1644,16 +1855,28 @@ module Orb attr_accessor :quantity sig do - params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) end - def self.new(effective_date:, price_id:, quantity:); end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1664,61 +1887,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ACTIVE = - T.let(:active, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol) + T.let( + :active, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol + ) ENDED = - T.let(:ended, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol) + T.let( + :ended, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::Status::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1726,12 +1983,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1742,19 +1998,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_create_params.rbi b/rbi/orb/models/subscription_create_params.rbi index ec17f840..d96d6dc0 100644 --- a/rbi/orb/models/subscription_create_params.rbi +++ b/rbi/orb/models/subscription_create_params.rbi @@ -6,20 +6,30 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) } + sig do + returns( + T.nilable(T::Array[Orb::SubscriptionCreateParams::AddAdjustment]) + ) + end attr_accessor :add_adjustments # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) } + sig do + returns(T.nilable(T::Array[Orb::SubscriptionCreateParams::AddPrice])) + end attr_accessor :add_prices sig { returns(T.nilable(T::Boolean)) } attr_reader :align_billing_with_subscription_start_date - sig { params(align_billing_with_subscription_start_date: T::Boolean).void } + sig do + params(align_billing_with_subscription_start_date: T::Boolean).void + end attr_writer :align_billing_with_subscription_start_date # Determines whether issued invoices for this subscription will automatically be @@ -31,16 +41,22 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :aws_region - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) } + sig do + returns( + T.nilable( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration + ) + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.nilable( - T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ) - ) - .void + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_anchor_configuration @@ -67,7 +83,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::SubscriptionCreateParams::ExternalMarketplace::OrSymbol + ) + ) + end attr_accessor :external_marketplace sig { returns(T.nilable(String)) } @@ -126,23 +148,37 @@ module Orb # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) } + sig do + returns( + T.nilable(T::Array[Orb::SubscriptionCreateParams::RemoveAdjustment]) + ) + end attr_accessor :remove_adjustments # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) } + sig do + returns(T.nilable(T::Array[Orb::SubscriptionCreateParams::RemovePrice])) + end attr_accessor :remove_prices # Plan adjustments to be replaced with additional adjustments on the subscription. # (Only available for accounts that have migrated off of legacy subscription # overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) } + sig do + returns( + T.nilable(T::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment]) + ) + end attr_accessor :replace_adjustments # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) } + sig do + returns( + T.nilable(T::Array[Orb::SubscriptionCreateParams::ReplacePrice]) + ) + end attr_accessor :replace_prices sig { returns(T.nilable(Time)) } @@ -165,21 +201,31 @@ module Orb sig do params( - add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Internal::AnyHash)]), - add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Internal::AnyHash)]), + add_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddAdjustment::OrHash] + ), + add_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddPrice::OrHash] + ), align_billing_with_subscription_start_date: T::Boolean, auto_collection: T.nilable(T::Boolean), aws_region: T.nilable(String), - billing_cycle_anchor_configuration: T.nilable( - T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration::OrHash + ), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), customer_id: T.nilable(String), default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), + external_marketplace: + T.nilable( + Orb::SubscriptionCreateParams::ExternalMarketplace::OrSymbol + ), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -191,20 +237,27 @@ module Orb plan_id: T.nilable(String), plan_version_number: T.nilable(Integer), price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Internal::AnyHash)] - ), - remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Internal::AnyHash)]), - replace_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Internal::AnyHash)] - ), - replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Internal::AnyHash)]), + remove_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::RemoveAdjustment::OrHash] + ), + remove_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::RemovePrice::OrHash] + ), + replace_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::OrHash] + ), + replace_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplacePrice::OrHash] + ), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Additional adjustments to be added to the subscription. (Only available for @@ -290,58 +343,78 @@ module Orb # subscription itself, or any of that customer's children. usage_customer_ids: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), - align_billing_with_subscription_start_date: T::Boolean, - auto_collection: T.nilable(T::Boolean), - aws_region: T.nilable(String), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - customer_id: T.nilable(String), - default_invoice_memo: T.nilable(String), - end_date: T.nilable(Time), - external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), - external_marketplace_reporting_id: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), - start_date: T.nilable(Time), - trial_duration_days: T.nilable(Integer), - usage_customer_ids: T.nilable(T::Array[String]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + add_adjustments: + T.nilable(T::Array[Orb::SubscriptionCreateParams::AddAdjustment]), + add_prices: + T.nilable(T::Array[Orb::SubscriptionCreateParams::AddPrice]), + align_billing_with_subscription_start_date: T::Boolean, + auto_collection: T.nilable(T::Boolean), + aws_region: T.nilable(String), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration + ), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + customer_id: T.nilable(String), + default_invoice_memo: T.nilable(String), + end_date: T.nilable(Time), + external_customer_id: T.nilable(String), + external_marketplace: + T.nilable( + Orb::SubscriptionCreateParams::ExternalMarketplace::OrSymbol + ), + external_marketplace_reporting_id: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::RemoveAdjustment] + ), + remove_prices: + T.nilable(T::Array[Orb::SubscriptionCreateParams::RemovePrice]), + replace_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment] + ), + replace_prices: + T.nilable(T::Array[Orb::SubscriptionCreateParams::ReplacePrice]), + start_date: T.nilable(Time), + trial_duration_days: T.nilable(Integer), + usage_customer_ids: T.nilable(T::Array[String]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class AddAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new adjustment to create and add to the subscription. sig do returns( T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum ) ) end @@ -364,19 +437,18 @@ module Orb sig do params( - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount::OrHash, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount::OrHash, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount::OrHash, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum::OrHash, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum::OrHash + ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new adjustment to create and add to the subscription. @@ -390,31 +462,47 @@ module Orb # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. start_date: nil - ); end + ) + end + sig do - override - .returns( - { - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum + override.returns( + { + adjustment: + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum ), - end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) - } - ) + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end # The definition of a new adjustment to create and add to the subscription. module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum + ) + end + class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -439,8 +527,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -450,22 +537,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -490,8 +581,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -501,22 +591,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -541,8 +635,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_discount:, @@ -552,22 +645,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -597,8 +694,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -610,23 +706,27 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -651,8 +751,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -662,47 +761,65 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class AddPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) } + sig do + returns( + T.nilable(Orb::SubscriptionCreateParams::AddPrice::AllocationPrice) + ) + end attr_reader :allocation_price sig do params( - allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Internal::AnyHash)) - ) - .void + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::OrHash + ) + ).void end attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddPrice::Discount] + ) + ) + end attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop @@ -734,31 +851,31 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::AddPrice::Price::Unit, + Orb::SubscriptionCreateParams::AddPrice::Price::Package, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage ) ) ) @@ -777,49 +894,54 @@ module Orb sig do params( - allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Internal::AnyHash)), - discounts: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Discount, Orb::Internal::AnyHash)] - ), + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::OrHash + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Discount::OrHash + ] + ), end_date: T.nilable(Time), external_price_id: T.nilable(String), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), plan_phase_order: T.nilable(Integer), - price: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage - ) - ), + price: + T.nilable( + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::OrHash + ) + ), price_id: T.nilable(String), start_date: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new allocation price to create and add to the subscription. @@ -849,61 +971,76 @@ module Orb # billing on the subscription. If null, billing will start when the phase or # subscription starts. start_date: nil - ); end + ) + end + sig do - override - .returns( - { - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable( + override.returns( + { + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice + ), + discounts: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddPrice::Discount] + ), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::AddPrice::Price::Unit, + Orb::SubscriptionCreateParams::AddPrice::Price::Package, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage ) ), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - ) + price_id: T.nilable(String), + start_date: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end class AllocationPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -920,11 +1057,11 @@ module Orb sig do params( amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, currency: String, expires_at_end_of_cadence: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # An amount of the currency to allocate to the customer at the specified cadence. @@ -937,54 +1074,87 @@ module Orb # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. expires_at_end_of_cadence: - ); end + ) + end + sig do - override - .returns( - { - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override.returns( + { + amount: String, + cadence: + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The cadence at which to allocate the amount to the customer. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Discount < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol + ) + end attr_accessor :discount_type # Only available if discount_type is `amount`. @@ -1003,12 +1173,12 @@ module Orb sig do params( - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, + discount_type: + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( discount_type:, @@ -1020,39 +1190,60 @@ module Orb # Only available if discount_type is `usage`. Number of usage units that this # discount is for usage_discount: nil - ); end + ) + end + sig do - override - .returns( - { - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override.returns( + { + discount_type: + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERCENTAGE = - T.let(:percentage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + T.let( + :percentage, + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) USAGE = - T.let(:usage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + T.let( + :usage, + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) AMOUNT = - T.let(:amount, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + T.let( + :amount, + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end @@ -1060,9 +1251,46 @@ module Orb module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit, + Orb::SubscriptionCreateParams::AddPrice::Price::Package, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1076,14 +1304,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig + ) + end attr_reader :unit_config sig do params( - unit_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, Orb::Internal::AnyHash) - ) - .void + unit_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -1101,21 +1333,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1145,21 +1376,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1176,34 +1406,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol, item_id: String, name: String, - unit_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, Orb::Internal::AnyHash), + unit_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1245,61 +1472,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -1308,12 +1575,18 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1321,7 +1594,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1331,26 +1604,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1358,34 +1634,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1393,7 +1675,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1403,26 +1685,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1430,37 +1715,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1474,17 +1768,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig + ) + end attr_reader :package_config sig do params( - package_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ) - ) - .void + package_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -1502,21 +1797,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1546,21 +1840,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1577,37 +1870,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol, item_id: String, name: String, - package_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ), + package_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1649,64 +1936,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -1716,19 +2040,33 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1736,7 +2074,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1746,26 +2084,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1773,34 +2114,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1808,7 +2155,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1818,26 +2165,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1845,54 +2195,64 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -1917,21 +2277,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1961,21 +2320,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1992,37 +2350,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol, item_id: String, - matrix_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + matrix_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2064,61 +2416,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::OrSymbol, + item_id: String, + matrix_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) - MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -2130,7 +2522,9 @@ module Orb # Matrix values for specified matrix grouping keys sig do returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue + ] ) end attr_accessor :matrix_values @@ -2139,14 +2533,11 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -2155,20 +2546,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -2192,13 +2591,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2206,7 +2618,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2216,26 +2628,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2243,34 +2658,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2278,7 +2699,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2288,26 +2709,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2315,37 +2739,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -2359,17 +2792,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig + ) + end attr_reader :tiered_config sig do params( - tiered_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -2387,21 +2821,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2431,21 +2864,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2462,37 +2894,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ), + tiered_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2534,89 +2960,142 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -2643,15 +3122,27 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end + ) + end + sig do - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2659,7 +3150,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2669,26 +3160,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2696,34 +3190,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2731,7 +3231,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2741,26 +3241,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2768,37 +3271,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -2812,17 +3324,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig + ) + end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -2840,21 +3353,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2884,21 +3396,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2915,37 +3426,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ), + tiered_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2987,103 +3492,144 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig do returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -3106,8 +3652,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -3118,23 +3663,28 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3142,7 +3692,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3152,26 +3702,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3179,34 +3732,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3214,7 +3773,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3224,26 +3783,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3251,48 +3813,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig + ) + end attr_reader :bps_config sig do params( - bps_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, Orb::Internal::AnyHash) - ) - .void + bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3318,19 +3893,22 @@ module Orb # For custom cadence: specifies the duration of the billing period in days or # months. - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration)) } + sig do + returns( + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration + ) + ) + end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3360,21 +3938,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3391,34 +3968,31 @@ module Orb sig do params( - bps_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol, + bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -3460,33 +4034,46 @@ module Orb # in the same API call. reference_id: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -3495,15 +4082,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. @@ -3511,30 +4109,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3542,7 +4170,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3552,26 +4180,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3579,34 +4210,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3614,7 +4251,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3624,26 +4261,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3651,51 +4291,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig + ) + end attr_reader :bulk_bps_config sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::OrHash + ).void end attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3723,21 +4373,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3767,21 +4416,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3798,37 +4446,31 @@ module Orb sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -3870,63 +4512,89 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + bulk_bps_config: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume - sig { returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -3940,8 +4608,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -3950,7 +4621,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -3960,7 +4633,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -3969,33 +4643,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4003,7 +4704,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4013,26 +4714,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4040,34 +4744,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4075,7 +4785,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4085,26 +4795,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4112,48 +4825,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig + ) + end attr_reader :bulk_config sig do params( - bulk_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, Orb::Internal::AnyHash) - ) - .void + bulk_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4181,21 +4907,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4225,21 +4950,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4256,34 +4980,31 @@ module Orb sig do params( - bulk_config: T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -4325,59 +5046,87 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + bulk_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end + ) + end + sig do - override - .returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier]}) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -4386,15 +5135,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -4403,30 +5164,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4434,7 +5225,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4444,26 +5235,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4471,34 +5265,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4506,7 +5306,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4516,26 +5316,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4543,37 +5346,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4605,7 +5417,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ) ) end @@ -4613,14 +5425,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4651,7 +5460,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ) ) end @@ -4659,14 +5468,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4683,34 +5489,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -4752,85 +5554,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4838,7 +5655,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4848,26 +5665,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4875,34 +5695,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4910,7 +5736,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4920,26 +5746,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4947,37 +5776,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -5009,7 +5847,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration ) ) end @@ -5017,14 +5855,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5055,7 +5890,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration ) ) end @@ -5063,14 +5898,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5087,34 +5919,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5156,85 +5984,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5242,7 +6085,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5252,26 +6095,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5279,34 +6125,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5314,7 +6166,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5324,26 +6176,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5351,37 +6206,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -5413,7 +6277,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration ) ) end @@ -5421,14 +6285,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5459,7 +6320,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ) ) end @@ -5467,14 +6328,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5491,34 +6349,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5560,85 +6414,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5646,7 +6515,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5656,26 +6525,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5683,34 +6555,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5718,7 +6596,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5728,26 +6606,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5755,37 +6636,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -5817,7 +6707,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration ) ) end @@ -5825,14 +6715,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5863,7 +6750,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration ) ) end @@ -5871,14 +6758,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5895,34 +6779,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5964,85 +6844,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_percent - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6050,7 +6945,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6060,26 +6955,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6087,34 +6985,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6122,7 +7026,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6132,26 +7036,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6159,37 +7066,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -6221,7 +7137,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration ) ) end @@ -6229,14 +7145,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6267,7 +7180,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ) ) end @@ -6275,14 +7188,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6299,34 +7209,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6368,85 +7274,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6454,7 +7375,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6464,26 +7385,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6491,34 +7415,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6526,7 +7456,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6536,26 +7466,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6563,37 +7496,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -6625,7 +7567,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration ) ) end @@ -6633,14 +7575,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6671,7 +7610,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration ) ) end @@ -6679,14 +7618,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6703,34 +7639,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6772,85 +7704,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6858,7 +7805,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6868,26 +7815,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6895,34 +7845,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6930,7 +7886,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6940,26 +7896,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6967,37 +7926,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -7029,7 +7997,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration ) ) end @@ -7037,14 +8005,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7075,7 +8040,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration ) ) end @@ -7083,14 +8048,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7107,34 +8069,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7176,85 +8134,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7262,7 +8235,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7272,26 +8245,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7299,34 +8275,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7334,7 +8316,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7344,26 +8326,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7371,37 +8356,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -7433,7 +8427,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration ) ) end @@ -7441,14 +8435,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7479,7 +8470,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration ) ) end @@ -7487,14 +8478,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7511,34 +8499,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7580,85 +8564,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7666,7 +8665,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7676,26 +8675,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7703,34 +8705,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7738,7 +8746,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7748,26 +8756,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7775,39 +8786,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -7841,7 +8857,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ) ) end @@ -7849,14 +8865,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7887,7 +8900,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ) ) end @@ -7895,14 +8908,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7919,34 +8929,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7988,85 +8995,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8074,7 +9097,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8084,26 +9107,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8111,34 +9137,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8146,7 +9178,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8156,26 +9188,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8183,40 +9218,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -8245,7 +9289,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration ) ) end @@ -8253,14 +9297,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8291,7 +9332,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration ) ) end @@ -8299,14 +9340,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8324,33 +9362,29 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -8392,85 +9426,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8478,7 +9527,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8488,26 +9537,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8515,34 +9567,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8550,7 +9608,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8560,26 +9618,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8587,39 +9648,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -8653,7 +9719,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ) ) end @@ -8661,14 +9727,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8699,7 +9762,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -8707,14 +9770,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8731,34 +9791,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8800,35 +9857,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -8836,53 +9899,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8890,7 +9959,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8900,26 +9969,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8927,34 +9999,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8962,7 +10040,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8972,26 +10050,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8999,39 +10080,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9065,7 +10151,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -9073,14 +10159,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9111,7 +10194,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -9119,14 +10202,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9143,34 +10223,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9212,35 +10289,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -9248,53 +10331,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9302,7 +10391,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9312,26 +10401,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9339,34 +10431,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9374,7 +10472,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9384,26 +10482,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9411,37 +10512,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -9473,7 +10583,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ) ) end @@ -9481,14 +10591,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9519,7 +10626,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ) ) end @@ -9527,14 +10634,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9551,34 +10655,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9620,85 +10720,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9706,7 +10821,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9716,26 +10831,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9743,34 +10861,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9778,7 +10902,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9788,26 +10912,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9815,37 +10942,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -9877,7 +11013,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ) ) end @@ -9885,14 +11021,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9923,7 +11056,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ) ) end @@ -9931,14 +11064,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9955,34 +11085,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10024,85 +11150,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10110,7 +11251,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10120,26 +11261,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10147,34 +11291,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10182,7 +11332,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10192,26 +11342,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10219,39 +11372,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -10285,7 +11443,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ) ) end @@ -10293,14 +11451,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10331,7 +11486,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ) ) end @@ -10339,14 +11494,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10363,34 +11515,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10432,85 +11581,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10518,7 +11683,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10528,26 +11693,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10555,34 +11723,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10590,7 +11764,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10600,26 +11774,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10627,37 +11804,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -10689,7 +11875,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ) ) end @@ -10697,14 +11883,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10735,7 +11918,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ) ) end @@ -10743,14 +11926,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10767,34 +11947,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10836,85 +12012,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10922,7 +12113,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10932,26 +12123,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10959,34 +12153,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10994,7 +12194,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11004,26 +12204,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11031,37 +12234,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -11093,7 +12305,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration ) ) end @@ -11101,14 +12313,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -11139,7 +12348,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ) ) end @@ -11147,14 +12356,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11171,34 +12377,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11240,85 +12442,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11326,7 +12543,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11336,26 +12553,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11363,34 +12583,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11398,7 +12624,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11408,26 +12634,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11435,45 +12664,50 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage] - ) + override.returns( + T::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Variants] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -11493,7 +12727,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -11508,26 +12746,61 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module ExternalMarketplace extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - GOOGLE = T.let(:google, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) - AWS = T.let(:aws, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) - AZURE = T.let(:azure, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) + GOOGLE = + T.let( + :google, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) + AWS = + T.let( + :aws, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) + AZURE = + T.let( + :azure, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ] + ) + end + def self.values + end end class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the adjustment to remove on the subscription. sig { returns(String) } attr_accessor :adjustment_id @@ -11536,12 +12809,17 @@ module Orb def self.new( # The id of the adjustment to remove on the subscription. adjustment_id: - ); end - sig { override.returns({adjustment_id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ adjustment_id: String }) } + def to_hash + end end class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } attr_accessor :external_price_id @@ -11551,28 +12829,43 @@ module Orb attr_accessor :price_id sig do - params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) + params( + external_price_id: T.nilable(String), + price_id: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The external price id of the price to remove on the subscription. external_price_id: nil, # The id of the price to remove on the subscription. price_id: nil - ); end - sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + external_price_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash + end end class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new adjustment to create and add to the subscription. sig do returns( T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum ) ) end @@ -11584,46 +12877,61 @@ module Orb sig do params( - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount::OrHash, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount::OrHash, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount::OrHash, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum::OrHash, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum::OrHash + ), replaces_adjustment_id: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new adjustment to create and add to the subscription. adjustment:, # The id of the adjustment on the plan to replace in the subscription. replaces_adjustment_id: - ); end + ) + end + sig do - override - .returns( - { - adjustment: T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum + override.returns( + { + adjustment: + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum ), - replaces_adjustment_id: String - } - ) + replaces_adjustment_id: String + } + ) + end + def to_hash end - def to_hash; end # The definition of a new adjustment to create and add to the subscription. module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum + ) + end + class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -11648,8 +12956,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -11659,22 +12966,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -11699,8 +13010,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -11710,22 +13020,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -11750,8 +13064,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_discount:, @@ -11761,22 +13074,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -11806,8 +13123,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -11819,23 +13135,27 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -11860,8 +13180,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -11871,53 +13190,71 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the price on the plan to replace in the subscription. sig { returns(String) } attr_accessor :replaces_price_id # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) } + sig do + returns( + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice + ) + ) + end attr_reader :allocation_price sig do params( - allocation_price: T.nilable( - T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Internal::AnyHash) - ) - ) - .void + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::OrHash + ) + ).void end attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplacePrice::Discount] + ) + ) + end attr_accessor :discounts # The external price id of the price to add to the subscription. @@ -11943,31 +13280,31 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage ) ) ) @@ -11981,49 +13318,52 @@ module Orb sig do params( replaces_price_id: String, - allocation_price: T.nilable( - T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Internal::AnyHash) - ), - discounts: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount, Orb::Internal::AnyHash)] - ), + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::OrHash + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Discount::OrHash + ] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), - price: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage - ) - ), + price: + T.nilable( + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::OrHash + ) + ), price_id: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The id of the price on the plan to replace in the subscription. @@ -12047,60 +13387,77 @@ module Orb price: nil, # The id of the price to add to the subscription. price_id: nil - ); end + ) + end + sig do - override - .returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable( + override.returns( + { + replaces_price_id: String, + allocation_price: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Discount + ] + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage ) ), - price_id: T.nilable(String) - } - ) + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class AllocationPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -12117,11 +13474,11 @@ module Orb sig do params( amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, currency: String, expires_at_end_of_cadence: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # An amount of the currency to allocate to the customer at the specified cadence. @@ -12134,71 +13491,87 @@ module Orb # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. expires_at_end_of_cadence: - ); end + ) + end + sig do - override - .returns( - { - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override.returns( + { + amount: String, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The cadence at which to allocate the amount to the customer. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Discount < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol + ) + end attr_accessor :discount_type # Only available if discount_type is `amount`. @@ -12217,12 +13590,12 @@ module Orb sig do params( - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, + discount_type: + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( discount_type:, @@ -12234,44 +13607,60 @@ module Orb # Only available if discount_type is `usage`. Number of usage units that this # discount is for usage_discount: nil - ); end + ) + end + sig do - override - .returns( - { - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override.returns( + { + discount_type: + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERCENTAGE = T.let( :percentage, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol ) USAGE = - T.let(:usage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) + T.let( + :usage, + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) AMOUNT = - T.let(:amount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) + T.let( + :amount, + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end @@ -12279,9 +13668,46 @@ module Orb module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -12295,17 +13721,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig + ) + end attr_reader :unit_config sig do params( - unit_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ) - ) - .void + unit_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -12323,21 +13750,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -12367,21 +13793,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -12398,37 +13823,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, item_id: String, name: String, - unit_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ), + unit_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -12470,64 +13889,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -12536,12 +13992,18 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -12549,7 +14011,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -12559,26 +14021,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -12586,34 +14051,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -12621,7 +14092,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -12631,26 +14102,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -12658,37 +14132,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -12702,17 +14185,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig + ) + end attr_reader :package_config sig do params( - package_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ) - ) - .void + package_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -12730,21 +14214,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -12775,7 +14258,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration ) ) end @@ -12783,14 +14266,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -12807,37 +14287,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol, item_id: String, name: String, - package_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ), + package_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -12879,77 +14353,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -12959,19 +14457,33 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -12979,7 +14491,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -12989,26 +14501,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13016,34 +14531,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] ) - - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) end - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13051,7 +14572,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13061,26 +14582,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13088,54 +14612,64 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -13160,21 +14694,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -13204,21 +14737,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -13235,37 +14767,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, item_id: String, - matrix_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + matrix_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -13307,72 +14833,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, + item_id: String, + matrix_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -13384,7 +14939,9 @@ module Orb # Matrix values for specified matrix grouping keys sig do returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue + ] ) end attr_accessor :matrix_values @@ -13393,14 +14950,11 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -13409,20 +14963,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -13446,13 +15008,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13460,7 +15035,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13470,26 +15045,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13497,34 +15075,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13532,7 +15116,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13542,26 +15126,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13569,37 +15156,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -13613,17 +15209,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig + ) + end attr_reader :tiered_config sig do params( - tiered_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -13641,21 +15238,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -13685,21 +15281,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -13716,37 +15311,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ), + tiered_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -13788,100 +15377,142 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -13908,15 +15539,27 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end + ) + end + sig do - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13924,7 +15567,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13934,26 +15577,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13961,34 +15607,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13996,7 +15648,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14006,26 +15658,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14033,37 +15688,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -14077,17 +15741,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig + ) + end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -14106,7 +15771,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration ) ) end @@ -14114,14 +15779,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -14152,7 +15814,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration ) ) end @@ -14160,14 +15822,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -14184,37 +15843,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ), + tiered_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -14256,121 +15909,144 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig do returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -14393,8 +16069,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -14405,23 +16080,28 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14429,7 +16109,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14439,26 +16119,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14466,34 +16149,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14501,7 +16190,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14511,26 +16200,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14538,48 +16230,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig + ) + end attr_reader :bps_config sig do params( - bps_config: T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, Orb::Internal::AnyHash) - ) - .void + bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -14607,21 +16312,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -14651,21 +16355,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -14682,34 +16385,31 @@ module Orb sig do params( - bps_config: T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, + bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -14751,33 +16451,46 @@ module Orb # in the same API call. reference_id: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -14786,15 +16499,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. @@ -14802,33 +16526,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14836,7 +16587,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14846,26 +16597,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14873,34 +16627,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14908,7 +16668,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14918,26 +16678,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14945,51 +16708,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig + ) + end attr_reader :bulk_bps_config sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::OrHash + ).void end attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -15017,21 +16790,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -15062,7 +16834,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration ) ) end @@ -15070,14 +16842,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -15094,37 +16863,31 @@ module Orb sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -15166,69 +16929,89 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + override.returns( + { + bulk_bps_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume sig do returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -15242,8 +17025,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -15252,7 +17038,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -15262,7 +17050,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -15271,44 +17060,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15316,7 +17121,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15326,26 +17131,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15353,34 +17161,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15388,7 +17202,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15398,26 +17212,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15425,51 +17242,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig + ) + end attr_reader :bulk_config sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -15497,21 +17324,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -15541,21 +17367,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -15572,37 +17397,31 @@ module Orb sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::OrHash, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -15644,61 +17463,87 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + override.returns( + { + bulk_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -15707,15 +17552,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -15724,33 +17581,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15758,7 +17642,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15768,26 +17652,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15795,34 +17682,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15830,7 +17723,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15840,26 +17733,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15867,39 +17763,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol ) end attr_accessor :cadence @@ -15933,7 +17834,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ) ) end @@ -15941,14 +17842,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -15979,7 +17877,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ) ) end @@ -15987,14 +17885,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -16011,34 +17906,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -16080,85 +17971,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16166,7 +18072,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16176,26 +18082,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16203,34 +18112,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16238,7 +18153,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16248,26 +18163,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16275,37 +18193,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -16337,7 +18264,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration ) ) end @@ -16345,14 +18272,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -16383,7 +18307,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration ) ) end @@ -16391,14 +18315,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -16415,34 +18336,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -16484,85 +18401,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16570,7 +18502,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16580,26 +18512,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16607,34 +18542,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16642,7 +18583,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16652,26 +18593,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16679,37 +18623,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -16741,7 +18694,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration ) ) end @@ -16749,14 +18702,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -16787,7 +18737,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ) ) end @@ -16795,14 +18745,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -16819,34 +18766,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -16888,85 +18831,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16974,7 +18932,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16984,26 +18942,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17011,34 +18972,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17046,7 +19013,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17056,26 +19023,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17083,37 +19053,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -17145,7 +19124,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration ) ) end @@ -17153,14 +19132,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -17191,7 +19167,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration ) ) end @@ -17199,14 +19175,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -17223,34 +19196,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -17292,85 +19261,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_percent - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17378,7 +19362,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17388,26 +19372,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17415,34 +19402,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17450,7 +19443,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17460,26 +19453,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17487,39 +19483,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -17553,7 +19554,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration ) ) end @@ -17561,14 +19562,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -17599,7 +19597,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ) ) end @@ -17607,14 +19605,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -17631,34 +19626,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -17700,85 +19691,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17786,7 +19792,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17796,26 +19802,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17823,34 +19832,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17858,7 +19873,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17868,26 +19883,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17895,39 +19913,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -17961,7 +19984,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration ) ) end @@ -17969,14 +19992,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -18007,7 +20027,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration ) ) end @@ -18015,14 +20035,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -18039,34 +20056,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -18108,85 +20121,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18194,7 +20222,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18204,26 +20232,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18231,34 +20262,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18266,7 +20303,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18276,26 +20313,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18303,37 +20343,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -18365,7 +20414,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration ) ) end @@ -18373,14 +20422,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -18411,7 +20457,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration ) ) end @@ -18419,14 +20465,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -18443,34 +20486,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -18512,85 +20551,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18598,7 +20652,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18608,26 +20662,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18635,34 +20692,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] ) - - sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) end - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18670,7 +20733,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18680,26 +20743,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18707,37 +20773,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } @@ -18769,7 +20844,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration ) ) end @@ -18777,14 +20852,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -18815,7 +20887,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration ) ) end @@ -18823,14 +20895,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -18847,34 +20916,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -18916,85 +20981,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19002,7 +21082,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19012,26 +21092,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19039,34 +21122,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19074,7 +21163,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19084,26 +21173,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19111,39 +21203,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -19177,7 +21274,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ) ) end @@ -19185,14 +21282,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -19223,7 +21317,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ) ) end @@ -19231,14 +21325,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -19255,34 +21346,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -19324,35 +21412,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -19360,53 +21454,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19414,7 +21514,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19424,26 +21524,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19451,34 +21554,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19486,7 +21595,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19496,26 +21605,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19523,40 +21635,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -19585,7 +21706,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration ) ) end @@ -19593,14 +21714,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -19631,7 +21749,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration ) ) end @@ -19639,14 +21757,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -19664,33 +21779,29 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -19732,85 +21843,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19818,7 +21944,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19828,26 +21954,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19855,34 +21984,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19890,7 +22025,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19900,26 +22035,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19927,39 +22065,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -19993,7 +22136,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ) ) end @@ -20001,14 +22144,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -20039,7 +22179,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -20047,14 +22187,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -20071,34 +22208,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -20140,35 +22274,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -20176,53 +22316,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20230,7 +22376,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20240,26 +22386,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20267,34 +22416,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20302,7 +22457,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20312,26 +22467,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20339,39 +22497,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -20405,7 +22568,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -20413,14 +22576,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -20451,7 +22611,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -20459,14 +22619,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -20483,34 +22640,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -20552,35 +22706,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -20588,53 +22748,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20642,7 +22808,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20652,26 +22818,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20679,34 +22848,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20714,7 +22889,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20724,26 +22899,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20751,39 +22929,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol ) end attr_accessor :cadence @@ -20817,7 +23000,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ) ) end @@ -20825,14 +23008,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -20863,7 +23043,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ) ) end @@ -20871,14 +23051,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -20895,34 +23072,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -20964,85 +23137,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21050,7 +23238,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21060,26 +23248,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21087,34 +23278,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21122,7 +23319,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21132,26 +23329,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21159,39 +23359,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -21225,7 +23430,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ) ) end @@ -21233,14 +23438,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -21271,7 +23473,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ) ) end @@ -21279,14 +23481,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -21303,34 +23502,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -21372,85 +23567,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21458,7 +23668,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21468,26 +23678,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21495,34 +23708,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21530,7 +23749,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21540,26 +23759,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21567,39 +23789,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -21633,7 +23860,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ) ) end @@ -21641,14 +23868,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -21679,7 +23903,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ) ) end @@ -21687,14 +23911,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -21711,34 +23932,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -21780,35 +23998,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -21816,53 +24040,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21870,7 +24100,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21880,26 +24110,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21907,34 +24140,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21942,7 +24181,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21952,26 +24191,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21979,39 +24221,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol ) end attr_accessor :cadence @@ -22045,7 +24292,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ) ) end @@ -22053,14 +24300,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -22091,7 +24335,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ) ) end @@ -22099,14 +24343,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -22123,34 +24364,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -22192,85 +24429,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22278,7 +24530,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22288,26 +24540,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22315,34 +24570,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22350,7 +24611,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22360,26 +24621,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22387,39 +24651,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -22453,7 +24722,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration ) ) end @@ -22461,14 +24730,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -22499,7 +24765,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ) ) end @@ -22507,14 +24773,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -22531,34 +24794,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -22600,85 +24859,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22686,7 +24960,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22696,26 +24970,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22723,34 +25000,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22758,7 +25041,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22768,26 +25051,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22795,41 +25081,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage] - ) + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/subscription_create_response.rbi b/rbi/orb/models/subscription_create_response.rbi index 4e8dcb24..3cb64820 100644 --- a/rbi/orb/models/subscription_create_response.rbi +++ b/rbi/orb/models/subscription_create_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionCreateResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,11 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,14 +28,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -73,10 +83,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -102,14 +112,24 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -120,7 +140,11 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -131,16 +155,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ) - ) - .void + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange::OrHash + ) + ).void end attr_writer :pending_subscription_change @@ -148,24 +178,34 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCreateResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -173,26 +213,38 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) } + sig do + returns(Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) + end attr_accessor :status sig { returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) } attr_reader :trial_info - sig { params(trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Internal::AnyHash)).void } + sig do + params( + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo::OrHash + ).void + end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionCreateResponse::ChangedResources)) } + sig do + returns( + T.nilable(Orb::Models::SubscriptionCreateResponse::ChangedResources) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionCreateResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -200,42 +252,65 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCreateResponse::RedeemedCoupon::OrHash + ), start_date: Time, status: Orb::Models::SubscriptionCreateResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + trial_info: + Orb::Models::SubscriptionCreateResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionCreateResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -324,50 +399,79 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionCreateResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionCreateResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionCreateResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol, + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionCreateResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -399,19 +503,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -422,31 +525,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -484,8 +603,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -502,25 +620,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -558,8 +680,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -576,25 +697,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -632,8 +757,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -650,25 +774,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -711,8 +839,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -731,26 +858,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -788,8 +919,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -806,35 +936,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -854,7 +990,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -869,15 +1009,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -909,8 +1071,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -924,24 +1085,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -974,8 +1139,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -990,24 +1154,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1040,8 +1208,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1056,33 +1223,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1096,18 +1269,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1136,8 +1324,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1151,23 +1338,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1196,8 +1387,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1211,35 +1401,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1272,7 +1470,11 @@ module Orb # relevant for fixed fees. sig do returns( - T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) + T.nilable( + T::Array[ + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition + ] + ) ) end attr_accessor :fixed_fee_quantity_transitions @@ -1290,34 +1492,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1344,49 +1546,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1425,56 +1624,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ), + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1484,15 +1693,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1503,54 +1726,92 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1558,12 +1819,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1574,19 +1834,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_fetch_costs_params.rbi b/rbi/orb/models/subscription_fetch_costs_params.rbi index 12f51bce..621cd966 100644 --- a/rbi/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/orb/models/subscription_fetch_costs_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } attr_accessor :currency @@ -22,7 +24,11 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol)) } + sig do + returns( + T.nilable(Orb::SubscriptionFetchCostsParams::ViewMode::OrSymbol) + ) + end attr_accessor :view_mode sig do @@ -30,10 +36,10 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + view_mode: + T.nilable(Orb::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The currency or custom pricing unit to use. @@ -48,20 +54,23 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: + T.nilable(Orb::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or @@ -70,14 +79,30 @@ module Orb module ViewMode extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionFetchCostsParams::ViewMode) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) - CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) + PERIODIC = + T.let( + :periodic, + Orb::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol + ) + CUMULATIVE = + T.let( + :cumulative, + Orb::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/subscription_fetch_costs_response.rbi b/rbi/orb/models/subscription_fetch_costs_response.rbi index 46966011..330d930d 100644 --- a/rbi/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/orb/models/subscription_fetch_costs_response.rbi @@ -3,20 +3,40 @@ module Orb module Models class SubscriptionFetchCostsResponse < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) + end attr_accessor :data sig do - params(data: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data, Orb::Internal::AnyHash)]) - .returns(T.attached_class) + params( + data: + T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::OrHash] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]}) } - def to_hash; end + sig do + override.returns( + { data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] } + ) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[ + Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost + ] + ) + end attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. @@ -35,13 +55,15 @@ module Orb sig do params( - per_price_costs: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost, Orb::Internal::AnyHash)], + per_price_costs: + T::Array[ + Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost::OrHash + ], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( per_price_costs:, @@ -51,54 +73,61 @@ module Orb timeframe_start:, # Total costs for the timeframe, including any minimums and discounts. total: - ); end + ) + end + sig do - override - .returns( - { - per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - ) + override.returns( + { + per_price_costs: + T::Array[ + Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost + ], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + } + ) + end + def to_hash end - def to_hash; end class PerPriceCost < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price object sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -122,43 +151,42 @@ module Orb sig do params( - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), price_id: String, subtotal: String, total: String, quantity: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price object @@ -171,49 +199,52 @@ module Orb total:, # The price's quantity for the timeframe quantity: nil - ); end + ) + end + sig do - override - .returns( - { - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + override.returns( + { + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - price_id: String, - subtotal: String, - total: String, - quantity: T.nilable(Float) - } - ) + price_id: String, + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_fetch_params.rbi b/rbi/orb/models/subscription_fetch_params.rbi index 5b896780..6ce26845 100644 --- a/rbi/orb/models/subscription_fetch_params.rbi +++ b/rbi/orb/models/subscription_fetch_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_fetch_schedule_params.rbi b/rbi/orb/models/subscription_fetch_schedule_params.rbi index 95db768e..ae6f4948 100644 --- a/rbi/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/orb/models/subscription_fetch_schedule_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } @@ -38,9 +40,8 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -53,22 +54,24 @@ module Orb start_date_lt: nil, start_date_lte: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - cursor: T.nilable(String), - limit: Integer, - start_date_gt: T.nilable(Time), - start_date_gte: T.nilable(Time), - start_date_lt: T.nilable(Time), - start_date_lte: T.nilable(Time), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + start_date_gt: T.nilable(Time), + start_date_gte: T.nilable(Time), + start_date_lt: T.nilable(Time), + start_date_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_fetch_schedule_response.rbi b/rbi/orb/models/subscription_fetch_schedule_response.rbi index 449285e7..7265aca8 100644 --- a/rbi/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/orb/models/subscription_fetch_schedule_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionFetchScheduleResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :created_at @@ -12,7 +14,11 @@ module Orb sig { returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Internal::AnyHash)).void } + sig do + params( + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan::OrHash + ).void + end attr_writer :plan sig { returns(Time) } @@ -22,27 +28,29 @@ module Orb params( created_at: Time, end_date: T.nilable(Time), - plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Internal::AnyHash), + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan::OrHash, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) + end + def self.new(created_at:, end_date:, plan:, start_date:) end - def self.new(created_at:, end_date:, plan:, start_date:); end sig do - override - .returns( - { - created_at: Time, - end_date: T.nilable(Time), - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, - start_date: Time - } - ) + override.returns( + { + created_at: Time, + end_date: T.nilable(Time), + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end class Plan < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(String)) } attr_accessor :id @@ -56,8 +64,11 @@ module Orb attr_accessor :name sig do - params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) - .returns(T.attached_class) + params( + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String) + ).returns(T.attached_class) end def self.new( id:, @@ -66,7 +77,9 @@ module Orb # identifier in your system. external_plan_id:, name: - ); end + ) + end + sig do override.returns( { @@ -76,7 +89,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_fetch_usage_params.rbi b/rbi/orb/models/subscription_fetch_usage_params.rbi index 2d5a6ee5..85b95926 100644 --- a/rbi/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/orb/models/subscription_fetch_usage_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # When specified in conjunction with `group_by`, this parameter filters usage to a # single billable metric. Note that both `group_by` and `billable_metric_id` must # be specified together. @@ -19,7 +21,11 @@ module Orb attr_accessor :first_dimension_value # This determines the windowing of usage reporting. - sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol)) } + sig do + returns( + T.nilable(Orb::SubscriptionFetchUsageParams::Granularity::OrSymbol) + ) + end attr_accessor :granularity # Groups per-price usage by the key provided. @@ -44,7 +50,11 @@ module Orb # period, or incremental day-by-day usage. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol)) } + sig do + returns( + T.nilable(Orb::SubscriptionFetchUsageParams::ViewMode::OrSymbol) + ) + end attr_accessor :view_mode sig do @@ -52,16 +62,17 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), + granularity: + T.nilable(Orb::SubscriptionFetchUsageParams::Granularity::OrSymbol), group_by: T.nilable(String), second_dimension_key: T.nilable(String), second_dimension_value: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + view_mode: + T.nilable(Orb::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # When specified in conjunction with `group_by`, this parameter filters usage to a @@ -86,38 +97,58 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - billable_metric_id: T.nilable(String), - first_dimension_key: T.nilable(String), - first_dimension_value: T.nilable(String), - granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), - group_by: T.nilable(String), - second_dimension_key: T.nilable(String), - second_dimension_value: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + billable_metric_id: T.nilable(String), + first_dimension_key: T.nilable(String), + first_dimension_value: T.nilable(String), + granularity: + T.nilable( + Orb::SubscriptionFetchUsageParams::Granularity::OrSymbol + ), + group_by: T.nilable(String), + second_dimension_key: T.nilable(String), + second_dimension_value: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: + T.nilable(Orb::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # This determines the windowing of usage reporting. module Granularity extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionFetchUsageParams::Granularity) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - DAY = T.let(:day, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) + DAY = + T.let( + :day, + Orb::SubscriptionFetchUsageParams::Granularity::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::SubscriptionFetchUsageParams::Granularity::TaggedSymbol + ] + ) + end + def self.values + end end # Controls whether Orb returns cumulative usage since the start of the billing @@ -127,14 +158,30 @@ module Orb module ViewMode extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionFetchUsageParams::ViewMode) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) - CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) + PERIODIC = + T.let( + :periodic, + Orb::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol + ) + CUMULATIVE = + T.let( + :cumulative, + Orb::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/subscription_list_params.rbi b/rbi/orb/models/subscription_list_params.rbi index 8a61ed18..de7237b2 100644 --- a/rbi/orb/models/subscription_list_params.rbi +++ b/rbi/orb/models/subscription_list_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -36,7 +38,7 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { returns(T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol)) } + sig { returns(T.nilable(Orb::SubscriptionListParams::Status::OrSymbol)) } attr_accessor :status sig do @@ -49,10 +51,9 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( created_at_gt: nil, @@ -68,38 +69,48 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(T::Array[String]), - external_customer_id: T.nilable(T::Array[String]), - limit: Integer, - status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(T::Array[String]), + external_customer_id: T.nilable(T::Array[String]), + limit: Integer, + status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionListParams::Status) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::SubscriptionListParams::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) + ACTIVE = + T.let(:active, Orb::SubscriptionListParams::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::SubscriptionListParams::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::SubscriptionListParams::Status::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::SubscriptionListParams::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::SubscriptionListParams::Status::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/subscription_price_intervals_params.rbi b/rbi/orb/models/subscription_price_intervals_params.rbi index 6f4a126a..e9248c5f 100644 --- a/rbi/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/orb/models/subscription_price_intervals_params.rbi @@ -6,25 +6,38 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A list of price intervals to add to the subscription. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add])) } + sig do + returns(T.nilable(T::Array[Orb::SubscriptionPriceIntervalsParams::Add])) + end attr_reader :add sig do - params(add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Internal::AnyHash)]) - .void + params( + add: T::Array[Orb::SubscriptionPriceIntervalsParams::Add::OrHash] + ).void end attr_writer :add # A list of adjustments to add to the subscription. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment] + ) + ) + end attr_reader :add_adjustments sig do params( - add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Internal::AnyHash)] - ) - .void + add_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::OrHash + ] + ).void end attr_writer :add_adjustments @@ -35,37 +48,55 @@ module Orb attr_accessor :allow_invoice_credit_or_void # A list of price intervals to edit on the subscription. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit])) } + sig do + returns( + T.nilable(T::Array[Orb::SubscriptionPriceIntervalsParams::Edit]) + ) + end attr_reader :edit sig do - params(edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Internal::AnyHash)]) - .void + params( + edit: T::Array[Orb::SubscriptionPriceIntervalsParams::Edit::OrHash] + ).void end attr_writer :edit # A list of adjustments to edit on the subscription. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment] + ) + ) + end attr_reader :edit_adjustments sig do params( - edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Internal::AnyHash)] - ) - .void + edit_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::OrHash + ] + ).void end attr_writer :edit_adjustments sig do params( - add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Internal::AnyHash)], - add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Internal::AnyHash)], + add: T::Array[Orb::SubscriptionPriceIntervalsParams::Add::OrHash], + add_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::OrHash + ], allow_invoice_credit_or_void: T.nilable(T::Boolean), - edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Internal::AnyHash)], - edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Internal::AnyHash)], - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + edit: T::Array[Orb::SubscriptionPriceIntervalsParams::Edit::OrHash], + edit_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::OrHash + ], + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # A list of price intervals to add to the subscription. @@ -81,39 +112,51 @@ module Orb # A list of adjustments to edit on the subscription. edit_adjustments: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: T.nilable(T::Boolean), - edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::RequestOptions - } - ) + override.returns( + { + add: T::Array[Orb::SubscriptionPriceIntervalsParams::Add], + add_adjustments: + T::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment], + allow_invoice_credit_or_void: T.nilable(T::Boolean), + edit: T::Array[Orb::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: + T::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment], + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end class Add < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The start date of the price interval. This is the date that the price will start # billing on the subscription. - sig { returns(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } + sig { returns(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) } attr_accessor :start_date # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) } + sig do + returns( + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice + ) + ) + end attr_reader :allocation_price sig do params( - allocation_price: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Internal::AnyHash) - ) - ) - .void + allocation_price: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::OrHash + ) + ).void end attr_writer :allocation_price @@ -123,9 +166,9 @@ module Orb T.nilable( T::Array[ T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage ) ] ) @@ -135,7 +178,11 @@ module Orb # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_accessor :end_date # The external price id of the price to add to the subscription. @@ -152,7 +199,11 @@ module Orb # A list of fixed fee quantity transitions to initialize on the price interval. sig do returns( - T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition + ] + ) ) end attr_accessor :fixed_fee_quantity_transitions @@ -172,34 +223,34 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk ) ) ) @@ -221,70 +272,69 @@ module Orb sig do params( - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), - allocation_price: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Internal::AnyHash) - ), - discounts: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage - ) - ] - ), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + allocation_price: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::OrHash + ), + discounts: + T.nilable( + T::Array[ + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage::OrHash + ) + ] + ), + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), external_price_id: T.nilable(String), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition::OrHash + ] + ), maximum_amount: T.nilable(Float), minimum_amount: T.nilable(Float), - price: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk - ) - ), + price: + T.nilable( + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::OrHash + ) + ), price_id: T.nilable(String), usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The start date of the price interval. This is the date that the price will start @@ -323,83 +373,114 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. usage_customer_ids: nil - ); end + ) + end + sig do - override - .returns( - { - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), - allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), - discounts: T.nilable( + override.returns( + { + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + allocation_price: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice + ), + discounts: + T.nilable( T::Array[ T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage ) ] ), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), - external_price_id: T.nilable(String), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), - maximum_amount: T.nilable(Float), - minimum_amount: T.nilable(Float), - price: T.nilable( + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), + external_price_id: T.nilable(String), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition + ] + ), + maximum_amount: T.nilable(Float), + minimum_amount: T.nilable(Float), + price: + T.nilable( T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk ) ), - price_id: T.nilable(String), - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + price_id: T.nilable(String), + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end # The start date of the price interval. This is the date that the price will start # billing on the subscription. module StartDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::StartDate::Variants + ] + ) + end + def self.variants + end end class AllocationPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -416,11 +497,11 @@ module Orb sig do params( amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, currency: String, expires_at_end_of_cadence: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # An amount of the currency to allocate to the customer at the specified cadence. @@ -433,67 +514,94 @@ module Orb # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. expires_at_end_of_cadence: - ); end + ) + end + sig do - override - .returns( - { - amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override.returns( + { + amount: String, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The cadence at which to allocate the amount to the customer. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end module Discount extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(Float) } attr_accessor :amount_discount @@ -501,17 +609,30 @@ module Orb sig { returns(Symbol) } attr_accessor :discount_type - sig { params(amount_discount: Float, discount_type: Symbol).returns(T.attached_class) } + sig do + params(amount_discount: Float, discount_type: Symbol).returns( + T.attached_class + ) + end def self.new( # Only available if discount_type is `amount`. amount_discount:, discount_type: :amount - ); end - sig { override.returns({amount_discount: Float, discount_type: Symbol}) } - def to_hash; end + ) + end + + sig do + override.returns( + { amount_discount: Float, discount_type: Symbol } + ) + end + def to_hash + end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :discount_type @@ -520,18 +641,31 @@ module Orb sig { returns(Float) } attr_accessor :percentage_discount - sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } + sig do + params(percentage_discount: Float, discount_type: Symbol).returns( + T.attached_class + ) + end def self.new( # Only available if discount_type is `percentage`. This is a number between 0 # and 1. percentage_discount:, discount_type: :percentage - ); end - sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } - def to_hash; end + ) + end + + sig do + override.returns( + { discount_type: Symbol, percentage_discount: Float } + ) + end + def to_hash + end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :discount_type @@ -540,24 +674,35 @@ module Orb sig { returns(Float) } attr_accessor :usage_discount - sig { params(usage_discount: Float, discount_type: Symbol).returns(T.attached_class) } + sig do + params(usage_discount: Float, discount_type: Symbol).returns( + T.attached_class + ) + end def self.new( # Only available if discount_type is `usage`. Number of usage units that this # discount is for. usage_discount:, discount_type: :usage - ); end - sig { override.returns({discount_type: Symbol, usage_discount: Float}) } - def to_hash; end + ) + end + + sig do + override.returns({ discount_type: Symbol, usage_discount: Float }) + end + def to_hash + end end sig do - override - .returns( - [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Variants + ] + ) + end + def self.variants end - def self.variants; end end # The end date of the price interval. This is the date that the price will stop @@ -565,11 +710,25 @@ module Orb module EndDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::EndDate::Variants + ] + ) + end + def self.variants + end end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } attr_accessor :effective_date @@ -578,24 +737,71 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } + sig do + params(effective_date: Time, quantity: Integer).returns( + T.attached_class + ) + end def self.new( # The date that the fixed fee quantity transition should take effect. effective_date:, # The quantity of the fixed fee quantity transition. quantity: - ); end - sig { override.returns({effective_date: Time, quantity: Integer}) } - def to_hash; end + ) + end + + sig { override.returns({ effective_date: Time, quantity: Integer }) } + def to_hash + end end # The definition of a new price to create and add to the subscription. module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -613,14 +819,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig + ) + end attr_reader :unit_config sig do params( - unit_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, Orb::Internal::AnyHash) - ) - .void + unit_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -638,21 +848,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -677,21 +886,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -703,33 +911,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol, currency: String, item_id: String, name: String, - unit_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, Orb::Internal::AnyHash), + unit_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -767,63 +972,100 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -832,12 +1074,18 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -845,7 +1093,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -855,26 +1103,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -882,34 +1133,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def self.values; end - end - end + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end + end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -917,7 +1174,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -927,26 +1184,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -954,37 +1214,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -1002,17 +1271,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig + ) + end attr_reader :package_config sig do params( - package_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ) - ) - .void + package_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -1030,21 +1300,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1069,21 +1338,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1095,36 +1363,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol, currency: String, item_id: String, name: String, - package_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ), + package_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1162,71 +1424,100 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -1236,19 +1527,33 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1256,7 +1561,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1266,26 +1571,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1293,34 +1601,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1328,7 +1642,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1338,26 +1652,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1365,37 +1682,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -1406,17 +1732,18 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -1441,21 +1768,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1480,21 +1806,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1506,36 +1831,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol, currency: String, item_id: String, - matrix_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + matrix_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1573,68 +1892,100 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol, - currency: String, - item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::OrSymbol, + currency: String, + item_id: String, + matrix_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -1646,7 +1997,9 @@ module Orb # Matrix values for specified matrix grouping keys sig do returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue + ] ) end attr_accessor :matrix_values @@ -1655,14 +2008,11 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -1671,20 +2021,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -1708,13 +2066,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1722,7 +2093,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1732,26 +2103,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1759,34 +2133,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1794,7 +2174,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1804,26 +2184,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1831,39 +2214,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -1878,19 +2266,16 @@ module Orb sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig ) end attr_reader :matrix_with_allocation_config sig do params( - matrix_with_allocation_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_with_allocation_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::OrHash + ).void end attr_writer :matrix_with_allocation_config @@ -1916,7 +2301,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration ) ) end @@ -1924,14 +2309,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1957,7 +2339,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration ) ) end @@ -1965,14 +2347,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1984,36 +2363,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol, currency: String, item_id: String, - matrix_with_allocation_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - Orb::Internal::AnyHash - ), + matrix_with_allocation_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2051,84 +2424,100 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :matrix_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol, - currency: String, - item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::OrSymbol, + currency: String, + item_id: String, + matrix_with_allocation_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Allocation to be used to calculate the price sig { returns(Float) } attr_accessor :allocation @@ -2145,7 +2534,7 @@ module Orb sig do returns( T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue ] ) end @@ -2156,14 +2545,11 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Allocation to be used to calculate the price @@ -2174,23 +2560,29 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue ] - } - ) + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -2214,13 +2606,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2228,7 +2633,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2238,26 +2643,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2265,34 +2673,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2300,7 +2714,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2310,26 +2724,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2337,37 +2754,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -2385,17 +2811,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig + ) + end attr_reader :tiered_config sig do params( - tiered_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -2413,21 +2840,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2452,21 +2878,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2478,36 +2903,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ), + tiered_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2545,96 +2964,141 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -2661,15 +3125,27 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end + ) + end + sig do - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2677,7 +3153,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2687,26 +3163,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2714,34 +3193,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2749,7 +3234,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2759,26 +3244,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2786,37 +3274,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -2834,17 +3331,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig + ) + end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -2862,21 +3360,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2902,7 +3399,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration ) ) end @@ -2910,14 +3407,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2929,36 +3423,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_bps_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ), + tiered_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2996,118 +3484,143 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig do returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -3130,8 +3643,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -3142,23 +3654,28 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3166,7 +3683,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3176,26 +3693,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3203,34 +3723,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3238,7 +3764,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3248,26 +3774,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3275,48 +3804,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig + ) + end attr_reader :bps_config sig do params( - bps_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, Orb::Internal::AnyHash) - ) - .void + bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -3348,21 +3890,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3387,21 +3928,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3413,33 +3953,30 @@ module Orb sig do params( - bps_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol, + bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig::OrHash, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol, currency: String, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -3477,32 +4014,45 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -3511,15 +4061,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. @@ -3527,30 +4088,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3558,7 +4149,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3568,26 +4159,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3595,34 +4189,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3630,7 +4230,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3640,26 +4240,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3667,51 +4270,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig) } - attr_reader :bulk_bps_config + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } sig do - params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ) + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig ) - .void end - attr_writer :bulk_bps_config + attr_reader :bulk_bps_config + + sig do + params( + bulk_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::OrHash + ).void + end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -3743,21 +4356,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3782,21 +4394,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3808,36 +4419,30 @@ module Orb sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol, currency: String, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -3875,62 +4480,88 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bulk_bps_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -3944,8 +4575,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -3954,7 +4588,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -3964,7 +4600,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -3973,41 +4610,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4015,7 +4671,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4025,26 +4681,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4052,34 +4711,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4087,7 +4752,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4097,26 +4762,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4124,48 +4792,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig + ) + end attr_reader :bulk_config sig do params( - bulk_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, Orb::Internal::AnyHash) - ) - .void + bulk_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -4197,21 +4878,20 @@ module Orb # months. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration + ) ) end attr_reader :billing_cycle_configuration sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4236,21 +4916,20 @@ module Orb # If unspecified, a single invoice is produced per billing cycle. sig do returns( - T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration) + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration + ) ) end attr_reader :invoicing_cycle_configuration sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4262,33 +4941,30 @@ module Orb sig do params( - bulk_config: T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, Orb::Internal::AnyHash), - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::OrHash, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol, currency: String, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -4326,60 +5002,86 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + override.returns( + { + bulk_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration + ), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier]) } + sig do + returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier + ] + ) + end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end + ) + end + sig do - override - .returns( - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier]} - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -4388,15 +5090,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -4405,33 +5119,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = - T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol ) MONTHLY = - T.let(:monthly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ) ONE_TIME = - T.let(:one_time, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4439,7 +5180,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4449,26 +5190,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4476,34 +5220,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4511,7 +5261,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4521,26 +5271,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4548,39 +5301,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol ) end attr_accessor :cadence @@ -4618,7 +5376,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration ) ) end @@ -4626,14 +5384,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4659,7 +5414,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ) ) end @@ -4667,14 +5422,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4686,33 +5438,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol, currency: String, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -4750,84 +5498,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4835,7 +5598,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4845,26 +5608,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4872,34 +5638,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4907,7 +5679,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4917,26 +5689,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4944,37 +5719,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -5010,7 +5794,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration ) ) end @@ -5018,14 +5802,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5051,7 +5832,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration ) ) end @@ -5059,14 +5840,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5078,33 +5856,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol, currency: String, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5142,84 +5916,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5227,7 +6016,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5237,26 +6026,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5264,34 +6056,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5299,7 +6097,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5309,26 +6107,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5336,37 +6137,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -5402,7 +6212,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration ) ) end @@ -5410,14 +6220,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5443,7 +6250,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration ) ) end @@ -5451,14 +6258,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5470,33 +6274,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol, currency: String, grouped_tiered_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5534,84 +6334,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol, - currency: String, - grouped_tiered_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::OrSymbol, + currency: String, + grouped_tiered_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5619,7 +6434,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5629,26 +6444,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5656,34 +6474,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5691,7 +6515,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5701,26 +6525,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5728,39 +6555,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -5798,7 +6630,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration ) ) end @@ -5806,14 +6638,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5839,7 +6668,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ) ) end @@ -5847,14 +6676,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5866,33 +6692,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol, currency: String, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5930,84 +6752,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - currency: String, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + currency: String, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6015,7 +6852,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6025,26 +6862,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6052,34 +6892,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6087,7 +6933,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6097,26 +6943,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6124,37 +6973,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -6190,7 +7048,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration ) ) end @@ -6198,14 +7056,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6231,7 +7086,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration ) ) end @@ -6239,14 +7094,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6258,33 +7110,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol, currency: String, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6322,84 +7170,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6407,7 +7270,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6417,26 +7280,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6444,34 +7310,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6479,7 +7351,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6489,26 +7361,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6516,39 +7391,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -6586,7 +7466,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration ) ) end @@ -6594,14 +7474,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6627,7 +7504,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration ) ) end @@ -6635,14 +7512,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6654,33 +7528,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol, currency: String, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6718,84 +7588,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6803,7 +7688,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6813,26 +7698,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6840,34 +7728,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6875,7 +7769,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6885,26 +7779,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6912,39 +7809,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -6982,7 +7884,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration ) ) end @@ -6990,14 +7892,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7023,7 +7922,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration ) ) end @@ -7031,14 +7930,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7050,33 +7946,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol, currency: String, item_id: String, name: String, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7114,34 +8006,40 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_package_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_with_minimum_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -7149,51 +8047,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7201,7 +8107,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7211,26 +8117,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7238,34 +8147,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7273,7 +8188,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7283,26 +8198,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7310,37 +8228,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -7376,7 +8303,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration ) ) end @@ -7384,14 +8311,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7417,7 +8341,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration ) ) end @@ -7425,14 +8349,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7444,33 +8365,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol, currency: String, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7508,84 +8425,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit_with_percent - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7593,7 +8525,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7603,26 +8535,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7630,34 +8565,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7665,7 +8606,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7675,26 +8616,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7702,37 +8646,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -7768,7 +8721,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration ) ) end @@ -7776,14 +8729,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7809,7 +8759,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration ) ) end @@ -7817,14 +8767,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7836,33 +8783,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol, currency: String, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7900,84 +8843,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7985,7 +8943,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7995,26 +8953,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8022,34 +8983,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8057,7 +9024,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8067,26 +9034,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8094,37 +9064,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -8160,7 +9139,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration ) ) end @@ -8168,14 +9147,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8201,7 +9177,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration ) ) end @@ -8209,14 +9185,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8228,33 +9201,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol, currency: String, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8292,84 +9261,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8377,7 +9361,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8387,26 +9371,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8414,34 +9401,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) - end - def self.values; end - end + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values + end + end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8449,7 +9442,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8459,26 +9452,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8486,37 +9482,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -8552,7 +9557,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration ) ) end @@ -8560,14 +9565,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8593,7 +9595,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration ) ) end @@ -8601,14 +9603,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8620,33 +9619,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol, currency: String, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8684,84 +9679,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol, - currency: String, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::OrSymbol, + currency: String, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8769,7 +9779,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8779,26 +9789,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8806,34 +9819,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8841,7 +9860,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8851,26 +9870,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8878,39 +9900,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -8948,7 +9975,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ) ) end @@ -8956,14 +9983,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8989,7 +10013,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ) ) end @@ -8997,14 +10021,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9016,33 +10037,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9080,34 +10098,40 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + currency: String, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -9115,53 +10139,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9169,7 +10199,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9179,26 +10209,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9206,34 +10239,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9241,7 +10280,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9251,26 +10290,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9278,39 +10320,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9348,7 +10395,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ) ) end @@ -9356,14 +10403,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9389,7 +10433,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ) ) end @@ -9397,14 +10441,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9416,33 +10457,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9480,34 +10518,40 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + currency: String, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -9515,53 +10559,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9569,7 +10619,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9579,26 +10629,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9606,34 +10659,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9641,7 +10700,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9651,26 +10710,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9678,39 +10740,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9748,7 +10815,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration ) ) end @@ -9756,14 +10823,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9789,7 +10853,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ) ) end @@ -9797,14 +10861,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9816,33 +10877,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9880,84 +10937,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol, - currency: String, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::OrSymbol, + currency: String, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9965,7 +11037,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9975,26 +11047,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10002,34 +11077,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10037,7 +11118,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10047,26 +11128,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10074,40 +11158,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. @@ -10140,7 +11233,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration ) ) end @@ -10148,14 +11241,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10181,7 +11271,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration ) ) end @@ -10189,14 +11279,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10209,32 +11296,28 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol, currency: String, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -10272,84 +11355,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10357,7 +11455,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10367,26 +11465,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10394,34 +11495,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10429,7 +11536,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10439,26 +11546,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10466,39 +11576,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -10536,7 +11651,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration ) ) end @@ -10544,14 +11659,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10577,7 +11689,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration ) ) end @@ -10585,14 +11697,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10604,33 +11713,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol, currency: String, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10668,84 +11773,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol, - currency: String, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::OrSymbol, + currency: String, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10753,7 +11873,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10763,26 +11883,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10790,34 +11913,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10825,7 +11954,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10835,26 +11964,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10862,39 +11994,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -10932,7 +12069,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ) ) end @@ -10940,14 +12077,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10973,7 +12107,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -10981,14 +12115,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11000,33 +12131,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, currency: String, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11064,34 +12192,40 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -11099,53 +12233,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11153,7 +12293,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11163,26 +12303,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11190,34 +12333,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11225,7 +12374,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11235,26 +12384,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11262,39 +12414,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -11332,7 +12489,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -11340,14 +12497,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -11373,7 +12527,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -11381,14 +12535,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11400,33 +12551,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, currency: String, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11464,34 +12612,40 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -11499,53 +12653,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11553,7 +12713,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11563,26 +12723,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11590,34 +12753,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11625,7 +12794,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11635,26 +12804,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11662,39 +12834,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol ) end attr_accessor :cadence @@ -11732,7 +12909,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration ) ) end @@ -11740,14 +12917,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -11773,7 +12947,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ) ) end @@ -11781,14 +12955,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11800,33 +12971,29 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11864,84 +13031,99 @@ module Orb # by setting `metadata` to `null`. metadata: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11949,7 +13131,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11959,26 +13141,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11986,34 +13171,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -12021,7 +13212,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -12031,26 +13222,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -12058,54 +13252,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class AddAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new adjustment to create and add to the subscription. sig do returns( T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum ) ) end @@ -12115,30 +13316,34 @@ module Orb # will start affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. - sig { returns(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } + sig { returns(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) } attr_accessor :start_date # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_accessor :end_date sig do params( - adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum - ), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) - ) - .returns(T.attached_class) + adjustment: + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount::OrHash, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount::OrHash, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount::OrHash, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum::OrHash, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum::OrHash + ), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ).returns(T.attached_class) end def self.new( # The definition of a new adjustment to create and add to the subscription. @@ -12153,30 +13358,47 @@ module Orb # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. end_date: nil - ); end + ) + end + sig do - override - .returns( - { - adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum + override.returns( + { + adjustment: + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum ), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) - } - ) + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + } + ) + end + def to_hash end - def to_hash; end # The definition of a new adjustment to create and add to the subscription. module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum + ) + end + class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12201,8 +13423,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12212,22 +13433,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12252,8 +13477,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12263,22 +13487,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12303,8 +13531,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_discount:, @@ -12314,22 +13541,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12359,8 +13590,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12372,23 +13602,27 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12413,8 +13647,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12424,28 +13657,32 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end # The start date of the adjustment interval. This is the date that the adjustment @@ -12455,8 +13692,20 @@ module Orb module StartDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants + ] + ) + end + def self.variants + end end # The end date of the adjustment interval. This is the date that the adjustment @@ -12466,12 +13715,26 @@ module Orb module EndDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants + ] + ) + end + def self.variants + end end end class Edit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the price interval to edit. sig { returns(String) } attr_accessor :price_interval_id @@ -12484,7 +13747,11 @@ module Orb # The updated end date of this price interval. If not specified, the start date # will not be updated. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_accessor :end_date # An additional filter to apply to usage queries. This filter must be expressed as @@ -12499,17 +13766,29 @@ module Orb # price interval. sig do returns( - T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition + ] + ) ) end attr_accessor :fixed_fee_quantity_transitions # The updated start date of this price interval. If not specified, the start date # will not be updated. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_reader :start_date - sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + sig do + params( + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol) + ).void + end attr_writer :start_date # A list of customer IDs whose usage events will be aggregated and billed under @@ -12525,20 +13804,18 @@ module Orb params( price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition::OrHash + ] + ), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The id of the price interval to edit. @@ -12569,33 +13846,55 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. usage_customer_ids: nil - ); end + ) + end + sig do - override - .returns( - { - price_interval_id: String, - billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + override.returns( + { + price_interval_id: String, + billing_cycle_day: T.nilable(Integer), + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition + ] + ), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end # The updated end date of this price interval. If not specified, the start date # will not be updated. module EndDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants + ] + ) + end + def self.variants + end end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } attr_accessor :effective_date @@ -12604,15 +13903,22 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } + sig do + params(effective_date: Time, quantity: Integer).returns( + T.attached_class + ) + end def self.new( # The date that the fixed fee quantity transition should take effect. effective_date:, # The quantity of the fixed fee quantity transition. quantity: - ); end - sig { override.returns({effective_date: Time, quantity: Integer}) } - def to_hash; end + ) + end + + sig { override.returns({ effective_date: Time, quantity: Integer }) } + def to_hash + end end # The updated start date of this price interval. If not specified, the start date @@ -12620,36 +13926,62 @@ module Orb module StartDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants + ] + ) + end + def self.variants + end end end class EditAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the adjustment interval to edit. sig { returns(String) } attr_accessor :adjustment_interval_id # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_accessor :end_date # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + sig do + returns( + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) + ) + end attr_reader :start_date - sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + sig do + params( + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol) + ).void + end attr_writer :start_date sig do params( adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol) - ) - .returns(T.attached_class) + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol) + ).returns(T.attached_class) end def self.new( # The id of the adjustment interval to edit. @@ -12660,26 +13992,41 @@ module Orb # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. start_date: nil - ); end + ) + end + sig do - override - .returns( - { - adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), - start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol) - } - ) + override.returns( + { + adjustment_interval_id: String, + end_date: + T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol) + } + ) + end + def to_hash end - def to_hash; end # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. module EndDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants + ] + ) + end + def self.variants + end end # The updated start date of this adjustment interval. If not specified, the start @@ -12687,8 +14034,20 @@ module Orb module StartDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants + ] + ) + end + def self.variants + end end end end diff --git a/rbi/orb/models/subscription_price_intervals_response.rbi b/rbi/orb/models/subscription_price_intervals_response.rbi index 4939f9f5..ef025683 100644 --- a/rbi/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/orb/models/subscription_price_intervals_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionPriceIntervalsResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,16 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ) - ) - .void + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange::OrHash + ) + ).void end attr_writer :pending_subscription_change @@ -151,24 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -176,33 +223,45 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) } + sig do + returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -210,47 +269,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionPriceIntervalsResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -339,50 +417,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -414,19 +524,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -437,31 +546,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -499,8 +624,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -517,25 +641,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -573,8 +701,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -591,25 +718,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -647,8 +778,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -665,25 +795,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -726,8 +860,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -746,26 +879,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -803,8 +940,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -821,35 +957,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -869,7 +1011,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -884,15 +1030,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -924,8 +1092,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -939,24 +1106,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -989,8 +1160,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1005,24 +1175,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1055,8 +1229,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1071,33 +1244,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1111,18 +1290,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1151,8 +1345,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1166,23 +1359,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1211,8 +1408,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1226,35 +1422,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1288,7 +1492,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1307,34 +1513,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1361,49 +1567,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1442,58 +1645,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1503,15 +1714,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1522,54 +1747,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionPriceIntervalsResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1577,12 +1843,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1593,19 +1858,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/orb/models/subscription_schedule_plan_change_params.rbi index 9e3d2b60..ceea9925 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_params.rbi @@ -6,17 +6,35 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol + ) + end attr_accessor :change_option # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment] + ) + ) + end attr_accessor :add_adjustments # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice] + ) + ) + end attr_accessor :add_prices # [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be @@ -33,22 +51,31 @@ module Orb # Reset billing periods to be aligned with the plan change's effective date or # start of the month. Defaults to `unchanged` which keeps subscription's existing # billing cycle alignment. - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol + ) + ) + end attr_accessor :billing_cycle_alignment - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) } + sig do + returns( + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration + ) + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_anchor_configuration @@ -119,23 +146,51 @@ module Orb # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment])) } + sig do + returns( + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment + ] + ) + ) + end attr_accessor :remove_adjustments # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice] + ) + ) + end attr_accessor :remove_prices # Plan adjustments to be replaced with additional adjustments on the subscription. # (Only available for accounts that have migrated off of legacy subscription # overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment])) } + sig do + returns( + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment + ] + ) + ) + end attr_accessor :replace_adjustments # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) } + sig do + returns( + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice] + ) + ) + end attr_accessor :replace_prices # The duration of the trial period in days. If not provided, this defaults to the @@ -155,22 +210,30 @@ module Orb sig do params( - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, - add_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Internal::AnyHash)] - ), - add_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Internal::AnyHash)] - ), + change_option: + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::OrHash + ] + ), + add_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::OrHash + ] + ), align_billing_with_plan_change_date: T.nilable(T::Boolean), auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), - billing_cycle_anchor_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_alignment: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol + ), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration::OrHash + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -184,23 +247,34 @@ module Orb plan_id: T.nilable(String), plan_version_number: T.nilable(Integer), price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Internal::AnyHash)] - ), - remove_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Internal::AnyHash)] - ), - replace_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Internal::AnyHash)] - ), - replace_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Internal::AnyHash)] - ), + remove_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment::OrHash + ] + ), + remove_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemovePrice::OrHash + ] + ), + replace_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::OrHash + ] + ), + replace_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::OrHash + ] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( change_option:, @@ -286,74 +360,129 @@ module Orb # subscription itself, or any of that customer's children. usage_customer_ids: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), - align_billing_with_plan_change_date: T.nilable(T::Boolean), - auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), - change_date: T.nilable(Time), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), - trial_duration_days: T.nilable(Integer), - usage_customer_ids: T.nilable(T::Array[String]), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + change_option: + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment + ] + ), + add_prices: + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice] + ), + align_billing_with_plan_change_date: T.nilable(T::Boolean), + auto_collection: T.nilable(T::Boolean), + billing_cycle_alignment: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol + ), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration + ), + change_date: T.nilable(Time), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment + ] + ), + remove_prices: + T.nilable( + T::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice] + ), + replace_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment + ] + ), + replace_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice + ] + ), + trial_duration_days: T.nilable(Integer), + usage_customer_ids: T.nilable(T::Array[String]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end module ChangeOption extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } REQUESTED_DATE = - T.let(:requested_date, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + T.let( + :requested_date, + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + ) END_OF_SUBSCRIPTION_TERM = T.let( :end_of_subscription_term, - Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol ) IMMEDIATE = - T.let(:immediate, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + T.let( + :immediate, + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + ] + ) + end + def self.values + end end class AddAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new adjustment to create and add to the subscription. sig do returns( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum ) ) end @@ -376,19 +505,18 @@ module Orb sig do params( - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum::OrHash + ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new adjustment to create and add to the subscription. @@ -402,31 +530,47 @@ module Orb # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. start_date: nil - ); end + ) + end + sig do - override - .returns( - { - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + override.returns( + { + adjustment: + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum ), - end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) - } - ) + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end # The definition of a new adjustment to create and add to the subscription. module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + ) + end + class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -451,8 +595,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -462,22 +605,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -502,8 +649,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -513,22 +659,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -553,8 +703,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_discount:, @@ -564,22 +713,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -609,8 +762,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -622,23 +774,27 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -663,8 +819,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -674,52 +829,69 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class AddPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) } + sig do + returns( + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice + ) + ) + end attr_reader :allocation_price sig do params( - allocation_price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, - Orb::Internal::AnyHash + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::OrHash ) - ) - ) - .void + ).void end attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) } + sig do + returns( + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount + ] + ) + ) + end attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop @@ -751,31 +923,31 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage ) ) ) @@ -794,54 +966,54 @@ module Orb sig do params( - allocation_price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, - Orb::Internal::AnyHash - ) - ), - discounts: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount, Orb::Internal::AnyHash)] - ), + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::OrHash + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::OrHash + ] + ), end_date: T.nilable(Time), external_price_id: T.nilable(String), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), plan_phase_order: T.nilable(Integer), - price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage - ) - ), + price: + T.nilable( + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::OrHash + ) + ), price_id: T.nilable(String), start_date: T.nilable(Time) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new allocation price to create and add to the subscription. @@ -871,61 +1043,78 @@ module Orb # billing on the subscription. If null, billing will start when the phase or # subscription starts. start_date: nil - ); end + ) + end + sig do - override - .returns( - { - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable( + override.returns( + { + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount + ] + ), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage ) ), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - ) + price_id: T.nilable(String), + start_date: T.nilable(Time) + } + ) + end + def to_hash end - def to_hash; end class AllocationPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol + ) + end attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill @@ -942,11 +1131,11 @@ module Orb sig do params( amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, currency: String, expires_at_end_of_cadence: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # An amount of the currency to allocate to the customer at the specified cadence. @@ -959,71 +1148,87 @@ module Orb # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. expires_at_end_of_cadence: - ); end + ) + end + sig do - override - .returns( - { - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override.returns( + { + amount: String, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The cadence at which to allocate the amount to the customer. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Discount < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol + ) + end attr_accessor :discount_type # Only available if discount_type is `amount`. @@ -1042,12 +1247,12 @@ module Orb sig do params( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, + discount_type: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( discount_type:, @@ -1059,50 +1264,60 @@ module Orb # Only available if discount_type is `usage`. Number of usage units that this # discount is for usage_discount: nil - ); end + ) + end + sig do - override - .returns( - { - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override.returns( + { + discount_type: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERCENTAGE = T.let( :percentage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol ) USAGE = T.let( :usage, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol ) AMOUNT = T.let( :amount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end @@ -1110,9 +1325,46 @@ module Orb module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1126,17 +1378,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig + ) + end attr_reader :unit_config sig do params( - unit_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ) - ) - .void + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -1155,7 +1408,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration ) ) end @@ -1163,14 +1416,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1201,7 +1451,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration ) ) end @@ -1209,14 +1459,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1233,37 +1480,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol, item_id: String, name: String, - unit_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ), + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1305,85 +1546,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -1392,12 +1649,18 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1405,7 +1668,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1415,26 +1678,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1442,34 +1708,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1477,7 +1749,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1487,26 +1759,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1514,37 +1789,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -1558,17 +1842,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig + ) + end attr_reader :package_config sig do params( - package_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ) - ) - .void + package_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -1587,7 +1872,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration ) ) end @@ -1595,14 +1880,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -1633,7 +1915,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration ) ) end @@ -1641,14 +1923,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -1665,37 +1944,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol, item_id: String, name: String, - package_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ), + package_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -1737,85 +2010,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -1825,19 +2114,33 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1845,7 +2148,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1855,26 +2158,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1882,34 +2188,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -1917,7 +2229,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -1927,26 +2239,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -1954,54 +2269,64 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -2027,7 +2352,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration ) ) end @@ -2035,14 +2360,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2073,7 +2395,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration ) ) end @@ -2081,14 +2403,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2105,37 +2424,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol, item_id: String, - matrix_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2177,85 +2490,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::OrSymbol, + item_id: String, + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -2267,7 +2596,9 @@ module Orb # Matrix values for specified matrix grouping keys sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue + ] ) end attr_accessor :matrix_values @@ -2276,14 +2607,11 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -2292,20 +2620,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -2329,13 +2665,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2343,7 +2692,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2353,61 +2702,70 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) end - def to_hash; end - - # The unit of billing period duration. - module DurationUnit - extend Orb::Internal::Type::Enum + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash + end + + # The unit of billing period duration. + module DurationUnit + extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2415,7 +2773,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2425,26 +2783,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2452,37 +2813,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -2496,17 +2866,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig + ) + end attr_reader :tiered_config sig do params( - tiered_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -2525,7 +2896,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration ) ) end @@ -2533,14 +2904,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -2571,7 +2939,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration ) ) end @@ -2579,14 +2947,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -2603,37 +2968,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ), + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -2675,119 +3034,142 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -2814,15 +3196,27 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end + ) + end + sig do - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2830,7 +3224,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2840,26 +3234,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2867,34 +3264,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -2902,7 +3305,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -2912,26 +3315,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -2939,37 +3345,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -2983,17 +3398,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig + ) + end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -3012,7 +3428,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration ) ) end @@ -3020,14 +3436,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3058,7 +3471,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration ) ) end @@ -3066,14 +3479,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3090,37 +3500,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ), + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -3162,121 +3566,144 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -3299,8 +3726,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -3311,23 +3737,28 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3335,7 +3766,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3345,26 +3776,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3372,34 +3806,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3407,7 +3847,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3417,26 +3857,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3444,51 +3887,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig + ) + end attr_reader :bps_config sig do params( - bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3517,7 +3970,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration ) ) end @@ -3525,14 +3978,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -3563,7 +4013,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration ) ) end @@ -3571,14 +4021,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -3595,37 +4042,31 @@ module Orb sig do params( - bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol, + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol, item_id: String, name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -3667,37 +4108,46 @@ module Orb # in the same API call. reference_id: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration + override.returns( + { + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -3706,15 +4156,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. @@ -3722,50 +4183,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3773,7 +4244,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3783,26 +4254,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3810,34 +4284,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -3845,7 +4325,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -3855,26 +4335,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -3882,51 +4365,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig + ) + end attr_reader :bulk_bps_config sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::OrHash + ).void end attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -3955,7 +4448,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration ) ) end @@ -3963,14 +4456,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4001,7 +4491,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration ) ) end @@ -4009,14 +4499,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4033,37 +4520,31 @@ module Orb sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -4105,73 +4586,89 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration + override.returns( + { + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -4185,8 +4682,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -4195,7 +4695,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -4205,7 +4707,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -4214,50 +4717,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4265,7 +4778,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4275,26 +4788,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4302,34 +4818,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4337,7 +4859,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4347,26 +4869,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4374,51 +4899,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig + ) + end attr_reader :bulk_config sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -4447,7 +4982,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration ) ) end @@ -4455,14 +4990,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4493,7 +5025,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration ) ) end @@ -4501,14 +5033,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4525,37 +5054,31 @@ module Orb sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -4597,71 +5120,87 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration + override.returns( + { + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -4670,15 +5209,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -4687,50 +5238,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4738,7 +5299,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4748,26 +5309,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4775,34 +5339,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -4810,7 +5380,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -4820,26 +5390,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -4847,39 +5420,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol ) end attr_accessor :cadence @@ -4913,7 +5491,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ) ) end @@ -4921,14 +5499,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -4959,7 +5534,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ) ) end @@ -4967,14 +5542,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -4991,34 +5563,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5060,35 +5628,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -5096,53 +5669,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5150,7 +5729,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5160,26 +5739,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5187,34 +5769,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5222,7 +5810,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5232,26 +5820,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5259,39 +5850,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -5325,7 +5921,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration ) ) end @@ -5333,14 +5929,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5371,7 +5964,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration ) ) end @@ -5379,14 +5972,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5403,34 +5993,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5472,85 +6058,100 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5558,7 +6159,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5568,26 +6169,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5595,34 +6199,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5630,7 +6240,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5640,26 +6250,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -5667,39 +6280,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -5733,7 +6351,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration ) ) end @@ -5741,14 +6359,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -5779,7 +6394,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ) ) end @@ -5787,14 +6402,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -5811,34 +6423,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -5880,35 +6488,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -5916,53 +6529,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -5970,7 +6589,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -5980,26 +6599,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6007,34 +6629,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6042,7 +6670,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6052,26 +6680,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6079,39 +6710,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol ) end attr_accessor :cadence @@ -6145,7 +6781,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration ) ) end @@ -6153,14 +6789,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6191,7 +6824,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration ) ) end @@ -6199,14 +6832,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6223,34 +6853,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6292,35 +6918,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_percent - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -6328,51 +6959,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6380,7 +7019,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6390,26 +7029,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6417,34 +7059,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6452,7 +7100,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6462,26 +7110,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6489,39 +7140,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -6555,7 +7211,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration ) ) end @@ -6563,14 +7219,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -6601,7 +7254,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ) ) end @@ -6609,14 +7262,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -6633,34 +7283,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -6702,35 +7348,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -6738,53 +7389,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6792,7 +7449,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6802,26 +7459,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6829,34 +7489,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -6864,7 +7530,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -6874,26 +7540,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -6901,39 +7570,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -6967,7 +7641,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration ) ) end @@ -6975,14 +7649,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7013,7 +7684,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration ) ) end @@ -7021,14 +7692,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7045,34 +7713,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7114,35 +7778,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -7150,53 +7819,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7204,7 +7879,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7214,26 +7889,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7241,34 +7919,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7276,7 +7960,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7286,26 +7970,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7313,39 +8000,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -7379,7 +8071,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration ) ) end @@ -7387,14 +8079,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7425,7 +8114,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration ) ) end @@ -7433,14 +8122,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7457,34 +8143,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7526,35 +8208,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -7562,53 +8249,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7616,7 +8309,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7626,26 +8319,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7653,34 +8349,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -7688,7 +8390,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -7698,26 +8400,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -7725,39 +8430,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -7791,7 +8501,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration ) ) end @@ -7799,14 +8509,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -7837,7 +8544,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration ) ) end @@ -7845,14 +8552,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -7869,34 +8573,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -7938,35 +8638,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::OrSymbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -7974,53 +8679,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8028,7 +8739,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8038,26 +8749,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8065,34 +8779,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8100,7 +8820,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8110,26 +8830,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8137,39 +8860,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -8203,7 +8931,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ) ) end @@ -8211,14 +8939,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8249,7 +8974,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ) ) end @@ -8257,14 +8982,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8281,34 +9003,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -8350,35 +9069,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -8386,53 +9111,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8440,7 +9171,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8450,26 +9181,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8477,34 +9211,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8512,7 +9252,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8522,26 +9262,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8549,42 +9292,47 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -8615,7 +9363,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration ) ) end @@ -8623,14 +9371,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -8661,7 +9406,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration ) ) end @@ -8669,14 +9414,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -8694,33 +9436,29 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -8762,35 +9500,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -8798,53 +9541,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8852,7 +9601,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8862,26 +9611,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8889,34 +9641,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -8924,7 +9682,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -8934,26 +9692,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -8961,39 +9722,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9027,7 +9793,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ) ) end @@ -9035,14 +9801,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9073,7 +9836,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -9081,14 +9844,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9105,34 +9865,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9174,35 +9931,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -9210,53 +9973,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9264,7 +10033,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9274,26 +10043,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9301,34 +10073,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9336,7 +10114,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9346,26 +10124,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9373,39 +10154,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9439,7 +10225,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -9447,14 +10233,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9485,7 +10268,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -9493,14 +10276,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9517,34 +10297,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9586,35 +10363,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -9622,53 +10405,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9676,7 +10465,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9686,26 +10475,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9713,34 +10505,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -9748,7 +10546,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -9758,26 +10556,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -9785,39 +10586,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol ) end attr_accessor :cadence @@ -9851,7 +10657,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ) ) end @@ -9859,14 +10665,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -9897,7 +10700,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ) ) end @@ -9905,14 +10708,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -9929,34 +10729,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -9998,35 +10794,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -10034,53 +10835,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10088,7 +10895,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10098,26 +10905,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10125,34 +10935,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10160,7 +10976,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10170,26 +10986,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10197,39 +11016,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -10263,7 +11087,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ) ) end @@ -10271,14 +11095,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10309,7 +11130,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ) ) end @@ -10317,14 +11138,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10341,34 +11159,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10410,35 +11224,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -10446,53 +11265,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10500,7 +11325,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10510,26 +11335,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10537,34 +11365,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10572,7 +11406,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10582,26 +11416,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10609,39 +11446,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -10675,7 +11517,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ) ) end @@ -10683,14 +11525,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -10721,7 +11560,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ) ) end @@ -10729,14 +11568,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -10753,34 +11589,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -10822,35 +11655,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -10858,53 +11697,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10912,7 +11757,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10922,26 +11767,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -10949,34 +11797,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -10984,7 +11838,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -10994,26 +11848,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11021,39 +11878,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol ) end attr_accessor :cadence @@ -11087,7 +11949,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ) ) end @@ -11095,14 +11957,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -11133,7 +11992,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ) ) end @@ -11141,14 +12000,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11165,34 +12021,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11234,35 +12086,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -11270,53 +12127,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11324,7 +12187,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11334,26 +12197,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11361,34 +12227,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11396,7 +12268,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11406,26 +12278,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11433,39 +12308,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -11499,7 +12379,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration ) ) end @@ -11507,14 +12387,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -11545,7 +12422,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ) ) end @@ -11553,14 +12430,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -11577,34 +12451,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -11646,35 +12516,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -11682,53 +12557,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11736,7 +12617,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11746,26 +12627,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11773,34 +12657,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -11808,7 +12698,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -11818,26 +12708,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -11845,41 +12738,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants + ] + ) + end + def self.variants end - def self.variants; end end end @@ -11890,30 +12788,44 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } UNCHANGED = - T.let(:unchanged, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol) + T.let( + :unchanged, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) PLAN_CHANGE_DATE = T.let( :plan_change_date, - Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol ) START_OF_MONTH = T.let( :start_of_month, - Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -11933,7 +12845,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -11948,12 +12864,25 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the adjustment to remove on the subscription. sig { returns(String) } attr_accessor :adjustment_id @@ -11962,12 +12891,17 @@ module Orb def self.new( # The id of the adjustment to remove on the subscription. adjustment_id: - ); end - sig { override.returns({adjustment_id: String}) } - def to_hash; end + ) + end + + sig { override.returns({ adjustment_id: String }) } + def to_hash + end end class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } attr_accessor :external_price_id @@ -11977,28 +12911,43 @@ module Orb attr_accessor :price_id sig do - params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) + params( + external_price_id: T.nilable(String), + price_id: T.nilable(String) + ).returns(T.attached_class) end def self.new( # The external price id of the price to remove on the subscription. external_price_id: nil, # The id of the price to remove on the subscription. price_id: nil - ); end - sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + external_price_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash + end end class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The definition of a new adjustment to create and add to the subscription. sig do returns( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum ) ) end @@ -12010,46 +12959,61 @@ module Orb sig do params( - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum::OrHash + ), replaces_adjustment_id: String - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The definition of a new adjustment to create and add to the subscription. adjustment:, # The id of the adjustment on the plan to replace in the subscription. replaces_adjustment_id: - ); end + ) + end + sig do - override - .returns( - { - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + override.returns( + { + adjustment: + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum ), - replaces_adjustment_id: String - } - ) + replaces_adjustment_id: String + } + ) + end + def to_hash end - def to_hash; end # The definition of a new adjustment to create and add to the subscription. module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + ) + end + class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12074,8 +13038,7 @@ module Orb percentage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12085,22 +13048,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12125,8 +13092,7 @@ module Orb usage_discount: Float, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12136,22 +13102,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12176,8 +13146,7 @@ module Orb applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( amount_discount:, @@ -12187,22 +13156,26 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12232,8 +13205,7 @@ module Orb minimum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12245,23 +13217,27 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Symbol) } attr_accessor :adjustment_type @@ -12286,8 +13262,7 @@ module Orb maximum_amount: String, is_invoice_level: T::Boolean, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The set of price IDs to which this adjustment applies. @@ -12297,56 +13272,73 @@ module Orb # will be applied at the invoice level, possibly to multiple prices. is_invoice_level: nil, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - ) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The id of the price on the plan to replace in the subscription. sig { returns(String) } attr_accessor :replaces_price_id # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) } + sig do + returns( + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice + ) + ) + end attr_reader :allocation_price sig do params( - allocation_price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, - Orb::Internal::AnyHash + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::OrHash ) - ) - ) - .void + ).void end attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount])) } + sig do + returns( + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount + ] + ) + ) + end attr_accessor :discounts # The external price id of the price to add to the subscription. @@ -12372,31 +13364,31 @@ module Orb returns( T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage ) ) ) @@ -12410,52 +13402,52 @@ module Orb sig do params( replaces_price_id: String, - allocation_price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, - Orb::Internal::AnyHash - ) - ), - discounts: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount, Orb::Internal::AnyHash)] - ), + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::OrHash + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::OrHash + ] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), - price: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage - ) - ), + price: + T.nilable( + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::OrHash + ) + ), price_id: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The id of the price on the plan to replace in the subscription. @@ -12479,54 +13471,67 @@ module Orb price: nil, # The id of the price to add to the subscription. price_id: nil - ); end + ) + end + sig do - override - .returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable( + override.returns( + { + replaces_price_id: String, + allocation_price: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice + ), + discounts: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount + ] + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage ) ), - price_id: T.nilable(String) - } - ) + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class AllocationPrice < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } attr_accessor :amount @@ -12534,7 +13539,7 @@ module Orb # The cadence at which to allocate the amount to the customer. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol ) end attr_accessor :cadence @@ -12553,11 +13558,11 @@ module Orb sig do params( amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, currency: String, expires_at_end_of_cadence: T::Boolean - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # An amount of the currency to allocate to the customer at the specified cadence. @@ -12570,71 +13575,87 @@ module Orb # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. expires_at_end_of_cadence: - ); end + ) + end + sig do - override - .returns( - { - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - } - ) + override.returns( + { + amount: String, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash end - def to_hash; end # The cadence at which to allocate the amount to the customer. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class Discount < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol + ) + end attr_accessor :discount_type # Only available if discount_type is `amount`. @@ -12653,12 +13674,12 @@ module Orb sig do params( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, + discount_type: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( discount_type:, @@ -12670,50 +13691,60 @@ module Orb # Only available if discount_type is `usage`. Number of usage units that this # discount is for usage_discount: nil - ); end + ) + end + sig do - override - .returns( - { - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) - } - ) + override.returns( + { + discount_type: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERCENTAGE = T.let( :percentage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol ) USAGE = T.let( :usage, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol ) AMOUNT = T.let( :amount, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end @@ -12721,9 +13752,46 @@ module Orb module Price extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage + ) + end + class Unit < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -12737,17 +13805,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig + ) + end attr_reader :unit_config sig do params( - unit_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ) - ) - .void + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig::OrHash + ).void end attr_writer :unit_config @@ -12766,7 +13835,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration ) ) end @@ -12774,14 +13843,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -12812,7 +13878,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration ) ) end @@ -12820,14 +13886,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -12844,37 +13907,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, item_id: String, name: String, - unit_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, - Orb::Internal::AnyHash - ), + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -12916,85 +13973,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class UnitConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Rate per unit of usage sig { returns(String) } attr_accessor :unit_amount @@ -13003,12 +14076,18 @@ module Orb def self.new( # Rate per unit of usage unit_amount: - ); end - sig { override.returns({unit_amount: String}) } - def to_hash; end + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13016,7 +14095,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13026,26 +14105,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13053,34 +14135,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13088,7 +14176,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13098,26 +14186,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13125,39 +14216,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Package < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol ) end attr_accessor :cadence @@ -13173,17 +14269,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig + ) + end attr_reader :package_config sig do params( - package_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ) - ) - .void + package_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig::OrHash + ).void end attr_writer :package_config @@ -13202,7 +14299,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration ) ) end @@ -13210,14 +14307,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -13248,7 +14342,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration ) ) end @@ -13256,14 +14350,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -13280,37 +14371,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol, item_id: String, name: String, - package_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, - Orb::Internal::AnyHash - ), + package_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -13352,85 +14437,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class PackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # A currency amount to rate usage by sig { returns(String) } attr_accessor :package_amount @@ -13440,19 +14541,33 @@ module Orb sig { returns(Integer) } attr_accessor :package_size - sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } + sig do + params(package_amount: String, package_size: Integer).returns( + T.attached_class + ) + end def self.new( # A currency amount to rate usage by package_amount:, # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating package_size: - ); end - sig { override.returns({package_amount: String, package_size: Integer}) } - def to_hash; end + ) + end + + sig do + override.returns( + { package_amount: String, package_size: Integer } + ) + end + def to_hash + end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13460,7 +14575,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13470,26 +14585,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13497,34 +14615,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13532,7 +14656,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13542,26 +14666,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13569,54 +14696,64 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Matrix < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig + ) + end attr_reader :matrix_config sig do params( - matrix_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ) - ) - .void + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::OrHash + ).void end attr_writer :matrix_config @@ -13642,7 +14779,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration ) ) end @@ -13650,14 +14787,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -13688,7 +14822,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration ) ) end @@ -13696,14 +14830,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -13720,37 +14851,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, item_id: String, - matrix_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, - Orb::Internal::AnyHash - ), + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -13792,85 +14917,101 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::OrSymbol, + item_id: String, + matrix_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class MatrixConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } attr_accessor :default_unit_amount @@ -13882,7 +15023,9 @@ module Orb # Matrix values for specified matrix grouping keys sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue + ] ) end attr_accessor :matrix_values @@ -13891,14 +15034,11 @@ module Orb params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + matrix_values: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue::OrHash + ] + ).returns(T.attached_class) end def self.new( # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -13907,20 +15047,28 @@ module Orb dimensions:, # Matrix values for specified matrix grouping keys matrix_values: - ); end + ) + end + sig do - override - .returns( - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] - } - ) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue + ] + } + ) + end + def to_hash end - def to_hash; end class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # One or two matrix keys to filter usage to this Matrix value by. For example, # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. @@ -13944,13 +15092,26 @@ module Orb dimension_values:, # Unit price for the specified dimension_values unit_amount: - ); end - sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -13958,7 +15119,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -13968,26 +15129,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -13995,34 +15159,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14030,7 +15200,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14040,26 +15210,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14067,37 +15240,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Tiered < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -14111,17 +15293,18 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig + ) + end attr_reader :tiered_config sig do params( - tiered_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::OrHash + ).void end attr_writer :tiered_config @@ -14140,7 +15323,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration ) ) end @@ -14148,14 +15331,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -14186,7 +15366,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration ) ) end @@ -14194,14 +15374,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -14218,37 +15395,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, - Orb::Internal::AnyHash - ), + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -14290,119 +15461,142 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for rating based on total usage quantities into the specified tier sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for rating based on total usage quantities into the specified tier tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Exclusive tier starting value sig { returns(Float) } attr_accessor :first_unit @@ -14429,15 +15623,27 @@ module Orb unit_amount:, # Inclusive tier ending value. If null, this is treated as the last tier last_unit: nil - ); end + ) + end + sig do - override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + override.returns( + { + first_unit: Float, + unit_amount: String, + last_unit: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14445,7 +15651,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14455,26 +15661,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14482,34 +15691,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14517,7 +15732,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14527,26 +15742,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14554,39 +15772,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredBps < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol ) end attr_accessor :cadence @@ -14604,19 +15827,16 @@ module Orb sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig ) end attr_reader :tiered_bps_config sig do params( - tiered_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::OrHash + ).void end attr_writer :tiered_bps_config @@ -14635,7 +15855,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration ) ) end @@ -14643,14 +15863,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -14681,7 +15898,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration ) ) end @@ -14689,14 +15906,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -14713,37 +15927,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - Orb::Internal::AnyHash - ), + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -14785,121 +15993,144 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_bps - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TieredBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Per-event basis point rate sig { returns(Float) } attr_accessor :bps @@ -14922,8 +16153,7 @@ module Orb minimum_amount: String, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Per-event basis point rate @@ -14934,23 +16164,28 @@ module Orb maximum_amount: nil, # Per unit maximum to charge per_unit_maximum: nil - ); end + ) + end + sig do - override - .returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -14958,7 +16193,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -14968,26 +16203,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -14995,34 +16233,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15030,7 +16274,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15040,26 +16284,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15067,51 +16314,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig + ) + end attr_reader :bps_config sig do params( - bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig::OrHash + ).void end attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -15140,7 +16397,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration ) ) end @@ -15148,14 +16405,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -15186,7 +16440,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration ) ) end @@ -15194,14 +16448,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -15218,37 +16469,31 @@ module Orb sig do params( - bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bps_config:, @@ -15290,37 +16535,46 @@ module Orb # in the same API call. reference_id: nil, model_type: :bps - ); end + ) + end + sig do - override - .returns( - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration + override.returns( + { + bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis point take rate per event sig { returns(Float) } attr_accessor :bps @@ -15329,15 +16583,26 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :per_unit_maximum - sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } + sig do + params(bps: Float, per_unit_maximum: T.nilable(String)).returns( + T.attached_class + ) + end def self.new( # Basis point take rate per event bps:, # Optional currency amount maximum to cap spend per event per_unit_maximum: nil - ); end - sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { bps: Float, per_unit_maximum: T.nilable(String) } + ) + end + def to_hash + end end # The cadence to bill for this price on. @@ -15345,50 +16610,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15396,7 +16671,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15406,26 +16681,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15433,34 +16711,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15468,7 +16752,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15478,26 +16762,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15505,53 +16792,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkBps < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig + ) + end attr_reader :bulk_bps_config sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::OrHash + ).void end attr_writer :bulk_bps_config # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol ) end attr_accessor :cadence @@ -15582,7 +16875,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration ) ) end @@ -15590,14 +16883,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -15628,7 +16918,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration ) ) end @@ -15636,14 +16926,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -15660,37 +16947,31 @@ module Orb sig do params( - bulk_bps_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_bps_config:, @@ -15732,73 +17013,89 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_bps - ); end + ) + end + sig do - override - .returns( - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration + override.returns( + { + bulk_bps_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkBpsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Basis points to rate on sig { returns(Float) } attr_accessor :bps @@ -15812,8 +17109,11 @@ module Orb attr_accessor :per_unit_maximum sig do - params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) - .returns(T.attached_class) + params( + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + ).returns(T.attached_class) end def self.new( # Basis points to rate on @@ -15822,7 +17122,9 @@ module Orb maximum_amount: nil, # The maximum amount to charge for any one event per_unit_maximum: nil - ); end + ) + end + sig do override.returns( { @@ -15832,7 +17134,8 @@ module Orb } ) end - def to_hash; end + def to_hash + end end end @@ -15841,50 +17144,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15892,7 +17205,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15902,26 +17215,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -15929,34 +17245,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -15964,7 +17286,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -15974,26 +17296,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16001,51 +17326,61 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class Bulk < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig + ) + end attr_reader :bulk_config sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ) - ) - .void + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::OrHash + ).void end attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol) } + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol + ) + end attr_accessor :cadence # The id of the item the price will be associated with. @@ -16074,7 +17409,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration ) ) end @@ -16082,14 +17417,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -16120,7 +17452,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration ) ) end @@ -16128,14 +17460,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -16152,37 +17481,31 @@ module Orb sig do params( - bulk_config: T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, - Orb::Internal::AnyHash - ), - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::OrHash, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_config:, @@ -16224,71 +17547,87 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk - ); end + ) + end + sig do - override - .returns( - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration + override.returns( + { + bulk_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end class BulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Bulk tiers for rating based on total usage volume sig do returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier + ] ) end attr_accessor :tiers sig do params( - tiers: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier, - Orb::Internal::AnyHash - ) - ] - ) - .returns(T.attached_class) + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier::OrHash + ] + ).returns(T.attached_class) end def self.new( # Bulk tiers for rating based on total usage volume tiers: - ); end + ) + end + sig do - override - .returns( - { - tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] - } - ) + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier + ] + } + ) + end + def to_hash end - def to_hash; end class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Amount per unit sig { returns(String) } attr_accessor :unit_amount @@ -16297,15 +17636,27 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units - sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } + sig do + params( + unit_amount: String, + maximum_units: T.nilable(Float) + ).returns(T.attached_class) + end def self.new( # Amount per unit unit_amount:, # Upper bound for this tier maximum_units: nil - ); end - sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { unit_amount: String, maximum_units: T.nilable(Float) } + ) + end + def to_hash + end end end @@ -16314,50 +17665,60 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16365,7 +17726,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16375,26 +17736,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16402,34 +17766,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16437,7 +17807,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16447,26 +17817,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16474,39 +17847,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol ) end attr_accessor :cadence @@ -16540,7 +17918,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ) ) end @@ -16548,14 +17926,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -16586,7 +17961,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ) ) end @@ -16594,14 +17969,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -16618,34 +17990,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, item_id: String, name: String, threshold_total_amount_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -16687,35 +18055,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -16723,53 +18096,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16777,7 +18156,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16787,26 +18166,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16814,34 +18196,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -16849,7 +18237,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -16859,26 +18247,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -16886,39 +18277,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -16952,7 +18348,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration ) ) end @@ -16960,14 +18356,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -16998,7 +18391,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration ) ) end @@ -17006,14 +18399,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -17030,34 +18420,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, item_id: String, name: String, tiered_package_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -17099,35 +18485,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -17135,53 +18526,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17189,7 +18586,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17199,26 +18596,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17226,34 +18626,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17261,7 +18667,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17271,26 +18677,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17298,39 +18707,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -17364,7 +18778,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration ) ) end @@ -17372,14 +18786,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -17410,7 +18821,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ) ) end @@ -17418,14 +18829,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -17442,34 +18850,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, item_id: String, name: String, tiered_with_minimum_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -17511,35 +18915,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -17547,53 +18956,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17601,7 +19016,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17611,26 +19026,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17638,34 +19056,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -17673,7 +19097,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -17683,26 +19107,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -17710,39 +19137,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithPercent < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol ) end attr_accessor :cadence @@ -17776,7 +19208,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration ) ) end @@ -17784,14 +19216,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ) - ) - .void + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ) + ).void end attr_writer :billing_cycle_configuration @@ -17822,7 +19251,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration ) ) end @@ -17830,14 +19259,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -17854,34 +19280,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, item_id: String, name: String, unit_with_percent_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -17923,35 +19345,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_percent - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -17959,53 +19386,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18013,7 +19446,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18023,26 +19456,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18050,34 +19486,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18085,7 +19527,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18095,26 +19537,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18122,39 +19567,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class PackageWithAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -18188,7 +19638,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration ) ) end @@ -18196,14 +19646,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -18234,7 +19681,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ) ) end @@ -18242,14 +19689,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -18266,34 +19710,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, item_id: String, name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -18335,35 +19775,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :package_with_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -18371,53 +19816,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18425,7 +19876,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18435,26 +19886,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18462,34 +19916,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18497,7 +19957,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18507,26 +19967,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18534,39 +19997,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -18600,7 +20068,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration ) ) end @@ -18608,14 +20076,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -18646,7 +20111,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration ) ) end @@ -18654,14 +20119,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -18678,34 +20140,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, tiered_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -18747,35 +20205,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -18783,53 +20246,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18837,7 +20306,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18847,26 +20316,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18874,34 +20346,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -18909,7 +20387,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -18919,26 +20397,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -18946,39 +20427,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class UnitWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -19012,7 +20498,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration ) ) end @@ -19020,14 +20506,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -19058,7 +20541,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration ) ) end @@ -19066,14 +20549,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -19090,34 +20570,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, item_id: String, name: String, unit_with_proration_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -19159,35 +20635,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :unit_with_proration - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -19195,53 +20676,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19249,7 +20736,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19259,26 +20746,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end - sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + ) + end + + sig do + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19286,34 +20776,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19321,7 +20817,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19331,26 +20827,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19358,39 +20857,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol ) end attr_accessor :cadence @@ -19424,7 +20928,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration ) ) end @@ -19432,14 +20936,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -19470,7 +20971,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration ) ) end @@ -19478,14 +20979,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -19502,34 +21000,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -19571,35 +21065,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_allocation - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::OrSymbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -19607,53 +21106,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19661,7 +21166,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19671,26 +21176,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19698,34 +21206,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -19733,7 +21247,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -19743,26 +21257,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -19770,39 +21287,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -19836,7 +21358,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ) ) end @@ -19844,14 +21366,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -19882,7 +21401,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ) ) end @@ -19890,14 +21409,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -19914,34 +21430,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -19983,35 +21496,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + grouped_with_prorated_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -20019,53 +21538,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20073,7 +21598,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20083,26 +21608,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20110,34 +21638,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20145,7 +21679,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20155,26 +21689,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20182,42 +21719,47 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class BulkWithProration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol ) end attr_accessor :cadence @@ -20248,7 +21790,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration ) ) end @@ -20256,14 +21798,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -20294,7 +21833,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration ) ) end @@ -20302,14 +21841,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -20327,33 +21863,29 @@ module Orb sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( bulk_with_proration_config:, @@ -20395,35 +21927,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end + sig do - override - .returns( - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -20431,53 +21968,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20485,7 +22028,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20495,26 +22038,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20522,34 +22068,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20557,7 +22109,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20567,26 +22119,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20594,39 +22149,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -20660,7 +22220,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ) ) end @@ -20668,14 +22228,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -20706,7 +22263,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ) ) end @@ -20714,14 +22271,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -20738,34 +22292,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -20807,35 +22358,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -20843,53 +22400,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20897,7 +22460,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20907,26 +22470,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -20934,34 +22500,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -20969,7 +22541,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -20979,26 +22551,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21006,39 +22581,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol ) end attr_accessor :cadence @@ -21072,7 +22652,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ) ) end @@ -21080,14 +22660,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -21118,7 +22695,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ) ) end @@ -21126,14 +22703,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -21150,34 +22724,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -21219,35 +22790,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -21255,53 +22832,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21309,7 +22892,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21319,26 +22902,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21346,34 +22932,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21381,7 +22973,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21391,26 +22983,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21418,39 +23013,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol ) end attr_accessor :cadence @@ -21484,7 +23084,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ) ) end @@ -21492,14 +23092,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -21530,7 +23127,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ) ) end @@ -21538,14 +23135,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -21562,34 +23156,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -21631,35 +23221,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :cumulative_grouped_bulk - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -21667,53 +23262,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21721,7 +23322,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21731,26 +23332,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21758,34 +23362,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -21793,7 +23403,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -21803,26 +23413,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -21830,39 +23443,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -21896,7 +23514,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ) ) end @@ -21904,14 +23522,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -21942,7 +23557,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ) ) end @@ -21950,14 +23565,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -21974,34 +23586,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -22043,35 +23651,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :max_group_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -22079,53 +23692,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22133,7 +23752,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22143,26 +23762,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22170,34 +23792,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22205,7 +23833,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22215,26 +23843,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22242,39 +23873,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol ) end attr_accessor :cadence @@ -22308,7 +23944,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ) ) end @@ -22316,14 +23952,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -22354,7 +23987,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ) ) end @@ -22362,14 +23995,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -22386,34 +24016,31 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -22455,35 +24082,41 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + grouped_with_metered_minimum_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -22491,53 +24124,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22545,7 +24184,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22555,26 +24194,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22582,34 +24224,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22617,7 +24265,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22627,26 +24275,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22654,39 +24305,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol ) end attr_accessor :cadence @@ -22720,7 +24376,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ) ) end @@ -22728,14 +24384,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -22766,7 +24419,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ) ) end @@ -22774,14 +24427,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -22798,34 +24448,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -22867,35 +24513,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :matrix_with_display_name - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::OrSymbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -22903,53 +24554,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -22957,7 +24614,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -22967,26 +24624,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -22994,34 +24654,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -23029,7 +24695,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -23039,26 +24705,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -23066,39 +24735,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedTieredPackage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The cadence to bill for this price on. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol ) end attr_accessor :cadence @@ -23132,7 +24806,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration ) ) end @@ -23140,14 +24814,11 @@ module Orb sig do params( - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :billing_cycle_configuration @@ -23178,7 +24849,7 @@ module Orb sig do returns( T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ) ) end @@ -23186,14 +24857,11 @@ module Orb sig do params( - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash ) - ) - ) - .void + ).void end attr_writer :invoicing_cycle_configuration @@ -23210,34 +24878,30 @@ module Orb sig do params( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration, - Orb::Internal::AnyHash - ) - ), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), model_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The cadence to bill for this price on. @@ -23279,35 +24943,40 @@ module Orb # in the same API call. reference_id: nil, model_type: :grouped_tiered_package - ); end + ) + end + sig do - override - .returns( - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::OrSymbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration ), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration ), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end # The cadence to bill for this price on. module Cadence @@ -23315,53 +24984,59 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ANNUAL = T.let( :annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class BillingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -23369,7 +25044,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -23379,26 +25054,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -23406,34 +25084,40 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The duration of the billing period. sig { returns(Integer) } attr_accessor :duration @@ -23441,7 +25125,7 @@ module Orb # The unit of billing period duration. sig do returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol ) end attr_accessor :duration_unit @@ -23451,26 +25135,29 @@ module Orb sig do params( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - ) - .returns(T.attached_class) + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ).returns(T.attached_class) end def self.new( # The duration of the billing period. duration:, # The unit of billing period duration. duration_unit: - ); end + ) + end + sig do - override - .returns( - { - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol - } - ) + override.returns( + { + duration: Integer, + duration_unit: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end - def to_hash; end # The unit of billing period duration. module DurationUnit @@ -23478,41 +25165,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit) + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } DAY = T.let( :day, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) MONTH = T.let( :month, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol ) sig do - override - .returns( - T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol - ] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage] - ) + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Variants + ] + ) + end + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/orb/models/subscription_schedule_plan_change_response.rbi index dac8aa6d..611892b1 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionSchedulePlanChangeResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,19 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -154,26 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -181,33 +223,45 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) } + sig do + returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -215,57 +269,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -354,50 +417,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -429,19 +524,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -452,31 +546,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -514,8 +624,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -532,25 +641,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -588,8 +701,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -606,25 +718,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -662,8 +778,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -680,25 +795,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -741,8 +860,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -761,26 +879,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -818,8 +940,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -836,35 +957,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -884,7 +1011,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -899,15 +1030,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -939,8 +1092,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -954,24 +1106,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1004,8 +1160,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1020,24 +1175,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1070,8 +1229,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1086,33 +1244,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1126,18 +1290,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1166,8 +1345,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1181,23 +1359,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1226,8 +1408,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1241,35 +1422,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1303,7 +1492,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1322,34 +1513,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1376,49 +1567,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1457,58 +1645,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1518,15 +1714,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1537,55 +1747,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1593,12 +1843,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1609,19 +1858,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_trigger_phase_params.rbi b/rbi/orb/models/subscription_trigger_phase_params.rbi index 3982c88c..3b916c9b 100644 --- a/rbi/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/orb/models/subscription_trigger_phase_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # If false, this request will fail if it would void an issued invoice or create a # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. @@ -21,9 +23,8 @@ module Orb params( allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # If false, this request will fail if it would void an issued invoice or create a @@ -34,18 +35,20 @@ module Orb # to today in the customer's timezone. effective_date: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - allow_invoice_credit_or_void: T.nilable(T::Boolean), - effective_date: T.nilable(Date), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + allow_invoice_credit_or_void: T.nilable(T::Boolean), + effective_date: T.nilable(Date), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_trigger_phase_response.rbi b/rbi/orb/models/subscription_trigger_phase_response.rbi index dfe6ef41..51e54db0 100644 --- a/rbi/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/orb/models/subscription_trigger_phase_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionTriggerPhaseResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,16 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ) - ) - .void + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange::OrHash + ) + ).void end attr_writer :pending_subscription_change @@ -151,24 +184,36 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -176,7 +221,11 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) } @@ -184,23 +233,31 @@ module Orb sig do params( - trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -208,45 +265,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionTriggerPhaseResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -335,50 +413,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -410,19 +520,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -433,31 +542,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -495,8 +620,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -513,25 +637,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -569,8 +697,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -587,25 +714,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -643,8 +774,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -661,25 +791,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -722,8 +856,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -742,26 +875,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -799,8 +936,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -817,35 +953,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -865,7 +1007,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -880,15 +1026,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -920,8 +1088,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -935,24 +1102,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -985,8 +1156,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1001,24 +1171,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1051,8 +1225,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1067,33 +1240,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1107,18 +1286,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1147,8 +1341,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1162,23 +1355,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1207,8 +1404,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1222,35 +1418,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1284,7 +1488,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1303,34 +1509,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1357,49 +1563,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1438,58 +1641,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1499,15 +1710,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1518,54 +1743,92 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1573,12 +1836,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1589,19 +1851,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/orb/models/subscription_unschedule_cancellation_params.rbi index d1e3a5ed..f2b03232 100644 --- a/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/orb/models/subscription_unschedule_cancellation_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/orb/models/subscription_unschedule_cancellation_response.rbi index 828b0774..71838ef8 100644 --- a/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/orb/models/subscription_unschedule_cancellation_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionUnscheduleCancellationResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,19 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -154,26 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -181,33 +223,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -215,57 +271,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -354,50 +419,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -429,19 +526,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -452,31 +548,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -514,8 +626,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -532,25 +643,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -588,8 +703,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -606,25 +720,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -662,8 +780,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -680,25 +797,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -741,8 +862,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -761,26 +881,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -818,8 +942,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -836,35 +959,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -884,7 +1013,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -899,15 +1032,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -939,8 +1094,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -954,24 +1108,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1004,8 +1162,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1020,24 +1177,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1070,8 +1231,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1086,33 +1246,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1126,18 +1292,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1166,8 +1347,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1181,23 +1361,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1226,8 +1410,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1241,35 +1424,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1303,7 +1494,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1322,34 +1515,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1376,49 +1569,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1457,58 +1647,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1518,15 +1716,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1537,56 +1749,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1594,12 +1845,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1610,19 +1860,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi index acf74383..252b8e3b 100644 --- a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +++ b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi @@ -6,21 +6,32 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Price for which the updates should be cleared. Must be a fixed fee. sig { returns(String) } attr_accessor :price_id sig do - params(price_id: String, request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)) - .returns(T.attached_class) + params( + price_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Price for which the updates should be cleared. Must be a fixed fee. price_id:, request_options: {} - ); end - sig { override.returns({price_id: String, request_options: Orb::RequestOptions}) } - def to_hash; end + ) + end + + sig do + override.returns( + { price_id: String, request_options: Orb::RequestOptions } + ) + end + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index 2b32b857..430e8ba3 100644 --- a/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -31,12 +39,9 @@ module Orb sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -80,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -111,7 +116,9 @@ module Orb sig do returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule + ] ) end attr_accessor :fixed_fee_quantity_schedule @@ -120,7 +127,13 @@ module Orb attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -131,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -144,21 +163,20 @@ module Orb # A pending subscription change if one exists on this subscription. sig do returns( - T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange) + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange + ) ) end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -166,29 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, - Orb::Internal::AnyHash + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash ) - ) - ) - .void + ).void end attr_writer :redeemed_coupon @@ -196,39 +223,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, - Orb::Internal::AnyHash - ) - ) - .void + trial_info: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources, - Orb::Internal::AnyHash + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash ) - ) - ) - .void + ).void end attr_writer :changed_resources @@ -236,86 +271,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval, - Orb::Internal::AnyHash - ) - ], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval, - Orb::Internal::AnyHash - ) - ], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval, - Orb::Internal::AnyHash - ) - ], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval, - Orb::Internal::AnyHash - ) - ], - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, - Orb::Internal::AnyHash - ) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol, - trial_info: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, - Orb::Internal::AnyHash - ), - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources, - Orb::Internal::AnyHash + status: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources::OrHash ) - ) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -404,50 +419,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -479,19 +526,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -502,31 +548,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -564,8 +626,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -582,25 +643,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -638,8 +703,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -656,25 +720,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -712,8 +780,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -730,25 +797,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -791,8 +862,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -811,26 +881,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -868,8 +942,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -886,35 +959,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -934,7 +1013,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -949,15 +1032,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -989,8 +1094,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -1004,24 +1108,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1054,8 +1162,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1070,24 +1177,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1120,8 +1231,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1136,33 +1246,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1176,18 +1292,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1216,8 +1347,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1231,23 +1361,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1276,8 +1410,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1291,35 +1424,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1374,34 +1515,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1428,49 +1569,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1509,60 +1647,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( T::Array[ Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1572,15 +1716,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1591,63 +1749,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ACTIVE = - T.let(:active, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + T.let( + :active, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol + ) ENDED = - T.let(:ended, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + T.let( + :ended, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol + ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1655,12 +1845,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1671,19 +1860,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index 8dad61de..2e928553 100644 --- a/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index b8b1f092..f351cf0c 100644 --- a/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -136,21 +163,20 @@ module Orb # A pending subscription change if one exists on this subscription. sig do returns( - T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange) + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange + ) ) end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -158,29 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, - Orb::Internal::AnyHash + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon::OrHash ) - ) - ) - .void + ).void end attr_writer :redeemed_coupon @@ -188,36 +223,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources, - Orb::Internal::AnyHash + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources::OrHash ) - ) - ) - .void + ).void end attr_writer :changed_resources @@ -225,83 +271,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval, - Orb::Internal::AnyHash - ) - ], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval, - Orb::Internal::AnyHash - ) - ], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval, - Orb::Internal::AnyHash - ) - ], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval, - Orb::Internal::AnyHash - ) - ], - redeemed_coupon: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, - Orb::Internal::AnyHash - ) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources, - Orb::Internal::AnyHash + status: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources::OrHash ) - ) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -390,50 +419,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -465,19 +526,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -488,31 +548,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -550,8 +626,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -568,25 +643,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -624,8 +703,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -642,25 +720,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -698,8 +780,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -716,25 +797,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -777,8 +862,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -797,26 +881,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -854,8 +942,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -872,35 +959,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -920,7 +1013,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -935,15 +1032,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -975,8 +1094,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -990,24 +1108,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1040,8 +1162,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1056,24 +1177,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1106,8 +1231,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1122,33 +1246,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1162,18 +1292,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1202,8 +1347,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1217,23 +1361,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1262,8 +1410,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1277,35 +1424,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1339,7 +1494,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1358,34 +1515,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1412,49 +1569,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1493,58 +1647,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1554,15 +1716,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1573,61 +1749,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ACTIVE = - T.let(:active, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + T.let( + :active, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol + ) ENDED = - T.let(:ended, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + T.let( + :ended, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1635,12 +1845,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1651,19 +1860,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi index 277eee83..97360390 100644 --- a/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Price for which the quantity should be updated. Must be a fixed fee. sig { returns(String) } attr_accessor :price_id @@ -22,10 +24,21 @@ module Orb # Determines when the change takes effect. Note that if `effective_date` is # specified, this defaults to `effective_date`. Otherwise, this defaults to # `immediate` unless it's explicitly set to `upcoming_invoice`. - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol)) } + sig do + returns( + T.nilable( + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol + ) + ) + end attr_reader :change_option - sig { params(change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol).void } + sig do + params( + change_option: + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol + ).void + end attr_writer :change_option # The date that the quantity change should take effect, localized to the @@ -39,11 +52,11 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, + change_option: + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Price for which the quantity should be updated. Must be a fixed fee. @@ -62,21 +75,24 @@ module Orb # effective according to `change_option`. effective_date: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, - effective_date: T.nilable(Date), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + price_id: String, + quantity: Float, + allow_invoice_credit_or_void: T.nilable(T::Boolean), + change_option: + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, + effective_date: T.nilable(Date), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # Determines when the change takes effect. Note that if `effective_date` is # specified, this defaults to `effective_date`. Otherwise, this defaults to @@ -85,24 +101,39 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } IMMEDIATE = - T.let(:immediate, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + T.let( + :immediate, + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + ) UPCOMING_INVOICE = T.let( :upcoming_invoice, - Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol ) EFFECTIVE_DATE = - T.let(:effective_date, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + T.let( + :effective_date, + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end diff --git a/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 534576f9..148a4865 100644 --- a/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,19 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange::OrHash ) - ) - ) - .void + ).void end attr_writer :pending_subscription_change @@ -154,26 +184,38 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval + ] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -181,33 +223,47 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol + ) + end attr_accessor :status - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) } + sig do + returns( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + ) + end attr_reader :trial_info sig do params( - trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Internal::AnyHash) - ) - .void + trial_info: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -215,57 +271,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule, - Orb::Internal::AnyHash - ) - ], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange, - Orb::Internal::AnyHash - ) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable( - T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Internal::AnyHash) - ), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable( - T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources, Orb::Internal::AnyHash) - ) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -354,50 +419,82 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol, + trial_info: + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -429,19 +526,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -452,31 +548,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -514,8 +626,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -532,25 +643,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -588,8 +703,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -606,25 +720,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -662,8 +780,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -680,25 +797,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -741,8 +862,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -761,26 +881,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -818,8 +942,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -836,35 +959,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -884,7 +1013,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -899,15 +1032,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -939,8 +1094,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -954,24 +1108,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1004,8 +1162,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1020,24 +1177,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1070,8 +1231,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1086,33 +1246,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1126,18 +1292,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1166,8 +1347,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1181,23 +1361,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1226,8 +1410,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1241,35 +1424,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1303,7 +1494,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1322,34 +1515,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1376,49 +1569,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1457,58 +1647,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1518,15 +1716,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1537,56 +1749,95 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status) } + T.type_alias do + T.all( + Symbol, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol + ) UPCOMING = - T.let(:upcoming, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) + T.let( + :upcoming, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1594,12 +1845,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1610,19 +1860,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_update_params.rbi b/rbi/orb/models/subscription_update_params.rbi index c4f7c098..0e2e0d40 100644 --- a/rbi/orb/models/subscription_update_params.rbi +++ b/rbi/orb/models/subscription_update_params.rbi @@ -6,6 +6,8 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. @@ -43,9 +45,8 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # Determines whether issued invoices for this subscription will automatically be @@ -69,21 +70,23 @@ module Orb # has a month to pay the invoice. net_terms: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - auto_collection: T.nilable(T::Boolean), - default_invoice_memo: T.nilable(String), - invoicing_threshold: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - request_options: Orb::RequestOptions - } - ) + override.returns( + { + auto_collection: T.nilable(T::Boolean), + default_invoice_memo: T.nilable(String), + invoicing_threshold: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_update_trial_params.rbi b/rbi/orb/models/subscription_update_trial_params.rbi index a897d806..abfd2dd8 100644 --- a/rbi/orb/models/subscription_update_trial_params.rbi +++ b/rbi/orb/models/subscription_update_trial_params.rbi @@ -6,9 +6,18 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - sig { returns(T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)) } + sig do + returns( + T.any( + Time, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol + ) + ) + end attr_accessor :trial_end_date # If true, shifts subsequent price and adjustment intervals (preserving their @@ -21,11 +30,14 @@ module Orb sig do params( - trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), + trial_end_date: + T.any( + Time, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol + ), shift: T::Boolean, - request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + request_options: Orb::RequestOptions::OrHash + ).returns(T.attached_class) end def self.new( # The new date that the trial should end, or the literal string `immediate` to end @@ -35,31 +47,57 @@ module Orb # durations, but adjusting their absolute dates). shift: nil, request_options: {} - ); end + ) + end + sig do - override - .returns( - { - trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), - shift: T::Boolean, - request_options: Orb::RequestOptions - } - ) + override.returns( + { + trial_end_date: + T.any( + Time, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol + ), + shift: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash end - def to_hash; end # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. module TrialEndDate extend Orb::Internal::Type::Union - sig { override.returns([Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol]) } - def self.variants; end + Variants = + T.type_alias do + T.any( + Time, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol + ) + end - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate) } + sig do + override.returns( + T::Array[Orb::SubscriptionUpdateTrialParams::TrialEndDate::Variants] + ) + end + def self.variants + end + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionUpdateTrialParams::TrialEndDate) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) + IMMEDIATE = + T.let( + :immediate, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol + ) end end end diff --git a/rbi/orb/models/subscription_update_trial_response.rbi b/rbi/orb/models/subscription_update_trial_response.rbi index 7ace7d4a..598dcfe5 100644 --- a/rbi/orb/models/subscription_update_trial_response.rbi +++ b/rbi/orb/models/subscription_update_trial_response.rbi @@ -3,6 +3,8 @@ module Orb module Models class SubscriptionUpdateTrialResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -13,7 +15,13 @@ module Orb # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval + ] + ) + end attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be @@ -22,17 +30,18 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) } + sig do + returns( + Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration + ) + end attr_reader :billing_cycle_anchor_configuration sig do params( - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ) - .void + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration::OrHash + ).void end attr_writer :billing_cycle_anchor_configuration @@ -76,10 +85,10 @@ module Orb # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. - sig { returns(Orb::Models::Customer) } + sig { returns(Orb::Customer) } attr_reader :customer - sig { params(customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash)).void } + sig { params(customer: Orb::Customer::OrHash).void } attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this @@ -105,14 +114,26 @@ module Orb sig { returns(T.nilable(Time)) } attr_accessor :end_date - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule + ] + ) + end attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval + ] + ) + end attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults @@ -123,7 +144,13 @@ module Orb attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) } + sig do + returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval + ] + ) + end attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription @@ -134,16 +161,22 @@ module Orb attr_accessor :net_terms # A pending subscription change if one exists on this subscription. - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange + ) + ) + end attr_reader :pending_subscription_change sig do params( - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ) - ) - .void + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange::OrHash + ) + ).void end attr_writer :pending_subscription_change @@ -151,24 +184,36 @@ module Orb # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). - sig { returns(Orb::Models::Plan) } + sig { returns(Orb::Plan) } attr_reader :plan - sig { params(plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash)).void } + sig { params(plan: Orb::Plan::OrHash).void } attr_writer :plan # The price intervals for this subscription. - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) } + sig do + returns( + T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval] + ) + end attr_accessor :price_intervals - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon + ) + ) + end attr_reader :redeemed_coupon sig do params( - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Internal::AnyHash)) - ) - .void + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon::OrHash + ) + ).void end attr_writer :redeemed_coupon @@ -176,29 +221,43 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) } + sig do + returns( + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol + ) + end attr_accessor :status sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) } attr_reader :trial_info sig do - params(trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Internal::AnyHash)) - .void + params( + trial_info: + Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo::OrHash + ).void end attr_writer :trial_info # The resources that were changed as part of this operation. Only present when # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. - sig { returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources)) } + sig do + returns( + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources + ) + ) + end attr_reader :changed_resources sig do params( - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .void + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources::OrHash + ) + ).void end attr_writer :changed_resources @@ -206,45 +265,66 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval, Orb::Internal::AnyHash)], + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::OrHash + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration::OrHash, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: T.nilable(Time), current_billing_period_start_date: T.nilable(Time), - customer: T.any(Orb::Models::Customer, Orb::Internal::AnyHash), + customer: Orb::Customer::OrHash, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage - ) - ], + discount_intervals: + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage::OrHash + ) + ], end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule, Orb::Internal::AnyHash)], + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule::OrHash + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval, Orb::Internal::AnyHash)], + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval::OrHash + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval, Orb::Internal::AnyHash)], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval::OrHash + ], net_terms: Integer, - pending_subscription_change: T.nilable( - T.any(Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange, Orb::Internal::AnyHash) - ), - plan: T.any(Orb::Models::Plan, Orb::Internal::AnyHash), - price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval, Orb::Internal::AnyHash)], - redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Internal::AnyHash)), + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange::OrHash + ), + plan: Orb::Plan::OrHash, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::OrHash + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon::OrHash + ), start_date: Time, - status: Orb::Models::SubscriptionUpdateTrialResponse::Status::OrSymbol, - trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Internal::AnyHash), - changed_resources: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + status: + Orb::Models::SubscriptionUpdateTrialResponse::Status::OrSymbol, + trial_info: + Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo::OrHash, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources::OrHash + ) + ).returns(T.attached_class) end def self.new( id:, @@ -333,50 +413,81 @@ module Orb # fetched through the subscription changes API or if the # `include_changed_resources` parameter was passed in the request. changed_resources: nil - ); end + ) + end + sig do - override - .returns( - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[ + override.returns( + { + id: String, + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval + ], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: + Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: + T::Array[ T.any( Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage ) ], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], - net_terms: Integer, - pending_subscription_change: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange), - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), - start_date: Time, - status: Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, - changed_resources: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources) - } - ) + end_date: T.nilable(Time), + fixed_fee_quantity_schedule: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule + ], + invoicing_threshold: T.nilable(String), + maximum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval + ], + metadata: T::Hash[Symbol, String], + minimum_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval + ], + net_terms: Integer, + pending_subscription_change: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange + ), + plan: Orb::Plan, + price_intervals: + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval + ], + redeemed_coupon: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon + ), + start_date: Time, + status: + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol, + trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, + changed_resources: + T.nilable( + Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources + ) + } + ) + end + def to_hash end - def to_hash; end class AdjustmentInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -408,19 +519,18 @@ module Orb sig do params( id: String, - adjustment: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, - Orb::Internal::AnyHash, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum - ), + adjustment: + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum::OrHash, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum::OrHash + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -431,31 +541,47 @@ module Orb end_date:, # The start date of the adjustment interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment: T.any( + override.returns( + { + id: String, + adjustment: + T.any( Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum ), - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - start_date: Time - } - ) + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end module Adjustment extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum + ) + end + class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -493,8 +619,7 @@ module Orb reason: T.nilable(String), usage_discount: Float, adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -511,25 +636,29 @@ module Orb # to in a given billing period. usage_discount:, adjustment_type: :usage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end class AmountDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -567,8 +696,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -585,25 +713,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :amount_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class PercentageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -641,8 +773,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -659,25 +790,29 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :percentage_discount - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Minimum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -720,8 +855,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -740,26 +874,30 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :minimum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end class Maximum < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -797,8 +935,7 @@ module Orb plan_phase_order: T.nilable(Integer), reason: T.nilable(String), adjustment_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -815,35 +952,41 @@ module Orb # The reason for the adjustment. reason:, adjustment_type: :maximum - ); end + ) + end + sig do - override - .returns( - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - ) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants + ] + ) + end + def self.variants end - def self.variants; end end end class BillingCycleAnchorConfiguration < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing @@ -863,7 +1006,11 @@ module Orb attr_accessor :year sig do - params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) + params( + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + ).returns(T.attached_class) end def self.new( # The day of the month on which the billing cycle is anchored. If the maximum @@ -878,15 +1025,37 @@ module Orb # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). year: nil - ); end - sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } - def to_hash; end + ) + end + + sig do + override.returns( + { + day: Integer, + month: T.nilable(Integer), + year: T.nilable(Integer) + } + ) + end + def to_hash + end end module DiscountInterval extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage + ) + end + class Amount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # Only available if discount_type is `amount`. sig { returns(String) } attr_accessor :amount_discount @@ -918,8 +1087,7 @@ module Orb end_date: T.nilable(Time), start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # Only available if discount_type is `amount`. @@ -933,24 +1101,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :amount - ); end + ) + end + sig do - override - .returns( - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - ) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Percentage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -983,8 +1155,7 @@ module Orb percentage_discount: Float, start_date: Time, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -999,24 +1170,28 @@ module Orb # The start date of the discount interval. start_date:, discount_type: :percentage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1049,8 +1224,7 @@ module Orb start_date: Time, usage_discount: Float, discount_type: Symbol - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this discount interval applies to. @@ -1065,33 +1239,39 @@ module Orb # discount is for usage_discount:, discount_type: :usage - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_hash; end end sig do - override - .returns( - [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage] - ) + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants + ] + ) + end + def self.variants end - def self.variants; end end class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -1105,18 +1285,33 @@ module Orb attr_accessor :start_date sig do - params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) - .returns(T.attached_class) + params( + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + ).returns(T.attached_class) + end + def self.new(end_date:, price_id:, quantity:, start_date:) end - def self.new(end_date:, price_id:, quantity:, start_date:); end sig do - override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + override.returns( + { + end_date: T.nilable(Time), + price_id: String, + quantity: Float, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MaximumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1145,8 +1340,7 @@ module Orb end_date: T.nilable(Time), maximum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this maximum interval applies to. @@ -1160,23 +1354,27 @@ module Orb maximum_amount:, # The start date of the maximum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class MinimumInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1205,8 +1403,7 @@ module Orb end_date: T.nilable(Time), minimum_amount: String, start_date: Time - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # The price ids that this minimum interval applies to. @@ -1220,35 +1417,43 @@ module Orb minimum_amount:, # The start date of the minimum interval. start_date: - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_hash; end end class PendingSubscriptionChange < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id # A pending subscription change if one exists on this subscription. sig { params(id: String).returns(T.attached_class) } - def self.new(id:); end + def self.new(id:) + end - sig { override.returns({id: String}) } - def to_hash; end + sig { override.returns({ id: String }) } + def to_hash + end end class PriceInterval < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -1282,7 +1487,9 @@ module Orb sig do returns( T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition + ] ) ) end @@ -1301,34 +1508,34 @@ module Orb sig do returns( T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) ) end @@ -1355,49 +1562,46 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition, - Orb::Internal::AnyHash - ) - ] - ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition::OrHash + ] + ), + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::TieredBps::OrHash, + Orb::Price::Bps::OrHash, + Orb::Price::BulkBps::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash + ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( id:, @@ -1436,58 +1640,66 @@ module Orb # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. usage_customer_ids: - ); end + ) + end + sig do - override - .returns( - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + filter: T.nilable(String), + fixed_fee_quantity_transitions: + T.nilable( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition + ] ), - price: T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk + price: + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ), - start_date: Time, - usage_customer_ids: T.nilable(T::Array[String]) - } - ) + start_date: Time, + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash end - def to_hash; end class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Time) } attr_accessor :effective_date @@ -1497,15 +1709,29 @@ module Orb sig { returns(Integer) } attr_accessor :quantity - sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } - def self.new(effective_date:, price_id:, quantity:); end + sig do + params( + effective_date: Time, + price_id: String, + quantity: Integer + ).returns(T.attached_class) + end + def self.new(effective_date:, price_id:, quantity:) + end - sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } - def to_hash; end + sig do + override.returns( + { effective_date: Time, price_id: String, quantity: Integer } + ) + end + def to_hash + end end end class RedeemedCoupon < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :coupon_id @@ -1516,54 +1742,92 @@ module Orb attr_accessor :start_date sig do - params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) + params( + coupon_id: String, + end_date: T.nilable(Time), + start_date: Time + ).returns(T.attached_class) + end + def self.new(coupon_id:, end_date:, start_date:) end - def self.new(coupon_id:, end_date:, start_date:); end - sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } - def to_hash; end + sig do + override.returns( + { coupon_id: String, end_date: T.nilable(Time), start_date: Time } + ) + end + def to_hash + end end module Status extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status) } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACTIVE = T.let(:active, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) - ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) - UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) + ACTIVE = + T.let( + :active, + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol + ) + ENDED = + T.let( + :ended, + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol + ) + UPCOMING = + T.let( + :upcoming, + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol + ) - sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[ + Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end end class TrialInfo < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } - def self.new(end_date:); end + def self.new(end_date:) + end - sig { override.returns({end_date: T.nilable(Time)}) } - def to_hash; end + sig { override.returns({ end_date: T.nilable(Time) }) } + def to_hash + end end class ChangedResources < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # The credit notes that were created as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :created_invoices # The credit notes that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::CreditNote]) } + sig { returns(T::Array[Orb::CreditNote]) } attr_accessor :voided_credit_notes # The invoices that were voided as part of this operation. - sig { returns(T::Array[Orb::Models::Invoice]) } + sig { returns(T::Array[Orb::Invoice]) } attr_accessor :voided_invoices # The resources that were changed as part of this operation. Only present when @@ -1571,12 +1835,11 @@ module Orb # `include_changed_resources` parameter was passed in the request. sig do params( - created_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - created_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)], - voided_credit_notes: T::Array[T.any(Orb::Models::CreditNote, Orb::Internal::AnyHash)], - voided_invoices: T::Array[T.any(Orb::Models::Invoice, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + created_credit_notes: T::Array[Orb::CreditNote::OrHash], + created_invoices: T::Array[Orb::Invoice::OrHash], + voided_credit_notes: T::Array[Orb::CreditNote::OrHash], + voided_invoices: T::Array[Orb::Invoice::OrHash] + ).returns(T.attached_class) end def self.new( # The credit notes that were created as part of this operation. @@ -1587,19 +1850,21 @@ module Orb voided_credit_notes:, # The invoices that were voided as part of this operation. voided_invoices: - ); end + ) + end + sig do - override - .returns( - { - created_credit_notes: T::Array[Orb::Models::CreditNote], - created_invoices: T::Array[Orb::Models::Invoice], - voided_credit_notes: T::Array[Orb::Models::CreditNote], - voided_invoices: T::Array[Orb::Models::Invoice] - } - ) + override.returns( + { + created_credit_notes: T::Array[Orb::CreditNote], + created_invoices: T::Array[Orb::Invoice], + voided_credit_notes: T::Array[Orb::CreditNote], + voided_invoices: T::Array[Orb::Invoice] + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/subscription_usage.rbi b/rbi/orb/models/subscription_usage.rbi index 38dab0bd..e5b6d897 100644 --- a/rbi/orb/models/subscription_usage.rbi +++ b/rbi/orb/models/subscription_usage.rbi @@ -5,68 +5,117 @@ module Orb module SubscriptionUsage extend Orb::Internal::Type::Union + Variants = + T.type_alias do + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::SubscriptionUsage::GroupedSubscriptionUsage + ) + end + class UngroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + ) + end attr_accessor :data sig do params( - data: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data, Orb::Internal::AnyHash)] - ) - .returns(T.attached_class) + data: + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::OrHash + ] + ).returns(T.attached_class) + end + def self.new(data:) end - def self.new(data:); end - sig { override.returns({data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]}) } - def to_hash; end + sig do + override.returns( + { + data: + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data + ] + } + ) + end + def to_hash + end class Data < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - Orb::Internal::AnyHash - ) - ) - .void + billable_metric: + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric::OrHash + ).void end attr_writer :billable_metric - sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) } + sig do + returns( + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage + ] + ) + end attr_accessor :usage - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + sig do + returns( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) + end attr_accessor :view_mode sig do params( - billable_metric: T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - Orb::Internal::AnyHash - ), - usage: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage, Orb::Internal::AnyHash)], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::OrSymbol - ) - .returns(T.attached_class) + billable_metric: + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric::OrHash, + usage: + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage::OrHash + ], + view_mode: + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::OrSymbol + ).returns(T.attached_class) + end + def self.new(billable_metric:, usage:, view_mode:) end - def self.new(billable_metric:, usage:, view_mode:); end sig do - override - .returns( - { - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol - } - ) + override.returns( + { + billable_metric: + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage + ], + view_mode: + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -74,13 +123,17 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Float) } attr_accessor :quantity @@ -91,132 +144,194 @@ module Orb attr_accessor :timeframe_start sig do - params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + params( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ).returns(T.attached_class) + end + def self.new(quantity:, timeframe_end:, timeframe_start:) end - def self.new(quantity:, timeframe_end:, timeframe_start:); end - sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } - def to_hash; end + sig do + override.returns( + { quantity: Float, timeframe_end: Time, timeframe_start: Time } + ) + end + def to_hash + end end module ViewMode extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERIODIC = - T.let(:periodic, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + T.let( + :periodic, + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) CUMULATIVE = T.let( :cumulative, - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol ) sig do - override - .returns( - T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol] - ) + override.returns( + T::Array[ + Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end class GroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + T::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data] + ) + end attr_accessor :data - sig { returns(T.nilable(Orb::Models::PaginationMetadata)) } + sig { returns(T.nilable(Orb::PaginationMetadata)) } attr_reader :pagination_metadata sig do - params(pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash))).void + params( + pagination_metadata: T.nilable(Orb::PaginationMetadata::OrHash) + ).void end attr_writer :pagination_metadata sig do params( - data: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data, Orb::Internal::AnyHash)], - pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash)) - ) - .returns(T.attached_class) + data: + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::OrHash + ], + pagination_metadata: T.nilable(Orb::PaginationMetadata::OrHash) + ).returns(T.attached_class) + end + def self.new(data:, pagination_metadata: nil) end - def self.new(data:, pagination_metadata: nil); end sig do - override - .returns( - { - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) - } - ) + override.returns( + { + data: + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data + ], + pagination_metadata: T.nilable(Orb::PaginationMetadata) + } + ) + end + def to_hash end - def to_hash; end class Data < Orb::Internal::Type::BaseModel - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig do + returns( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric + ) + end attr_reader :billable_metric sig do params( - billable_metric: T.any( - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - Orb::Internal::AnyHash - ) - ) - .void + billable_metric: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric::OrHash + ).void end attr_writer :billable_metric - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) } + sig do + returns( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup + ) + end attr_reader :metric_group sig do params( - metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Internal::AnyHash) - ) - .void + metric_group: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup::OrHash + ).void end attr_writer :metric_group - sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) } + sig do + returns( + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage + ] + ) + end attr_accessor :usage - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + sig do + returns( + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) + end attr_accessor :view_mode sig do params( - billable_metric: T.any( - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - Orb::Internal::AnyHash - ), - metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Internal::AnyHash), - usage: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage, Orb::Internal::AnyHash)], - view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::OrSymbol - ) - .returns(T.attached_class) + billable_metric: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric::OrHash, + metric_group: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup::OrHash, + usage: + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage::OrHash + ], + view_mode: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::OrSymbol + ).returns(T.attached_class) + end + def self.new(billable_metric:, metric_group:, usage:, view_mode:) end - def self.new(billable_metric:, metric_group:, usage:, view_mode:); end sig do - override - .returns( - { - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol - } - ) + override.returns( + { + billable_metric: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + metric_group: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + usage: + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage + ], + view_mode: + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + } + ) + end + def to_hash end - def to_hash; end class BillableMetric < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :id @@ -224,27 +339,41 @@ module Orb attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } - def self.new(id:, name:); end + def self.new(id:, name:) + end - sig { override.returns({id: String, name: String}) } - def to_hash; end + sig { override.returns({ id: String, name: String }) } + def to_hash + end end class MetricGroup < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :property_key sig { returns(String) } attr_accessor :property_value - sig { params(property_key: String, property_value: String).returns(T.attached_class) } - def self.new(property_key:, property_value:); end + sig do + params(property_key: String, property_value: String).returns( + T.attached_class + ) + end + def self.new(property_key:, property_value:) + end - sig { override.returns({property_key: String, property_value: String}) } - def to_hash; end + sig do + override.returns({ property_key: String, property_value: String }) + end + def to_hash + end end class Usage < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(Float) } attr_accessor :quantity @@ -255,42 +384,63 @@ module Orb attr_accessor :timeframe_start sig do - params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) + params( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ).returns(T.attached_class) + end + def self.new(quantity:, timeframe_end:, timeframe_start:) end - def self.new(quantity:, timeframe_end:, timeframe_start:); end - sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } - def to_hash; end + sig do + override.returns( + { quantity: Float, timeframe_end: Time, timeframe_start: Time } + ) + end + def to_hash + end end module ViewMode extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode) } + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } PERIODIC = - T.let(:periodic, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + T.let( + :periodic, + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) CUMULATIVE = - T.let(:cumulative, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + T.let( + :cumulative, + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) sig do - override - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol]) + override.returns( + T::Array[ + Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ] + ) + end + def self.values end - def self.values; end end end end - sig do - override - .returns( - [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] - ) + sig { override.returns(T::Array[Orb::SubscriptionUsage::Variants]) } + def self.variants end - def self.variants; end end end end diff --git a/rbi/orb/models/subscriptions.rbi b/rbi/orb/models/subscriptions.rbi index 44a25510..0d387956 100644 --- a/rbi/orb/models/subscriptions.rbi +++ b/rbi/orb/models/subscriptions.rbi @@ -3,29 +3,36 @@ module Orb module Models class SubscriptionsAPI < Orb::Internal::Type::BaseModel - sig { returns(T::Array[Orb::Models::Subscription]) } + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + + sig { returns(T::Array[Orb::Subscription]) } attr_accessor :data - sig { returns(Orb::Models::PaginationMetadata) } + sig { returns(Orb::PaginationMetadata) } attr_reader :pagination_metadata - sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash)).void } + sig { params(pagination_metadata: Orb::PaginationMetadata::OrHash).void } attr_writer :pagination_metadata sig do params( - data: T::Array[T.any(Orb::Models::Subscription, Orb::Internal::AnyHash)], - pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Internal::AnyHash) - ) - .returns(T.attached_class) + data: T::Array[Orb::Subscription::OrHash], + pagination_metadata: Orb::PaginationMetadata::OrHash + ).returns(T.attached_class) + end + def self.new(data:, pagination_metadata:) end - def self.new(data:, pagination_metadata:); end sig do - override - .returns({data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata}) + override.returns( + { + data: T::Array[Orb::Subscription], + pagination_metadata: Orb::PaginationMetadata + } + ) + end + def to_hash end - def to_hash; end end end end diff --git a/rbi/orb/models/top_level_ping_params.rbi b/rbi/orb/models/top_level_ping_params.rbi index fd4b6a65..f8744946 100644 --- a/rbi/orb/models/top_level_ping_params.rbi +++ b/rbi/orb/models/top_level_ping_params.rbi @@ -6,13 +6,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig do - params(request_options: T.any(Orb::RequestOptions, Orb::Internal::AnyHash)).returns(T.attached_class) + params(request_options: Orb::RequestOptions::OrHash).returns( + T.attached_class + ) + end + def self.new(request_options: {}) end - def self.new(request_options: {}); end - sig { override.returns({request_options: Orb::RequestOptions}) } - def to_hash; end + sig { override.returns({ request_options: Orb::RequestOptions }) } + def to_hash + end end end end diff --git a/rbi/orb/models/top_level_ping_response.rbi b/rbi/orb/models/top_level_ping_response.rbi index cc9faccb..54fb70b3 100644 --- a/rbi/orb/models/top_level_ping_response.rbi +++ b/rbi/orb/models/top_level_ping_response.rbi @@ -3,14 +3,18 @@ module Orb module Models class TopLevelPingResponse < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + sig { returns(String) } attr_accessor :response sig { params(response: String).returns(T.attached_class) } - def self.new(response:); end + def self.new(response:) + end - sig { override.returns({response: String}) } - def to_hash; end + sig { override.returns({ response: String }) } + def to_hash + end end end end diff --git a/rbi/orb/models/trial_discount.rbi b/rbi/orb/models/trial_discount.rbi index 8a2fc99a..a7906256 100644 --- a/rbi/orb/models/trial_discount.rbi +++ b/rbi/orb/models/trial_discount.rbi @@ -3,12 +3,14 @@ module Orb module Models class TrialDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids - sig { returns(Orb::Models::TrialDiscount::DiscountType::OrSymbol) } + sig { returns(Orb::TrialDiscount::DiscountType::OrSymbol) } attr_accessor :discount_type sig { returns(T.nilable(String)) } @@ -25,12 +27,11 @@ module Orb sig do params( applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, + discount_type: Orb::TrialDiscount::DiscountType::OrSymbol, reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # List of price_ids that this discount applies to. For plan/plan phase discounts, @@ -42,31 +43,39 @@ module Orb trial_amount_discount: nil, # Only available if discount_type is `trial` trial_percentage_discount: nil - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, - reason: T.nilable(String), - trial_amount_discount: T.nilable(String), - trial_percentage_discount: T.nilable(Float) - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Orb::TrialDiscount::DiscountType::OrSymbol, + reason: T.nilable(String), + trial_amount_discount: T.nilable(String), + trial_percentage_discount: T.nilable(Float) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::TrialDiscount::DiscountType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::TrialDiscount::DiscountType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - TRIAL = T.let(:trial, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) + TRIAL = T.let(:trial, Orb::TrialDiscount::DiscountType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::TrialDiscount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::TrialDiscount::DiscountType::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/models/usage_discount.rbi b/rbi/orb/models/usage_discount.rbi index 04792b8a..26a8cac0 100644 --- a/rbi/orb/models/usage_discount.rbi +++ b/rbi/orb/models/usage_discount.rbi @@ -3,12 +3,14 @@ module Orb module Models class UsageDiscount < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids - sig { returns(Orb::Models::UsageDiscount::DiscountType::OrSymbol) } + sig { returns(Orb::UsageDiscount::DiscountType::OrSymbol) } attr_accessor :discount_type # Only available if discount_type is `usage`. Number of usage units that this @@ -22,11 +24,10 @@ module Orb sig do params( applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, + discount_type: Orb::UsageDiscount::DiscountType::OrSymbol, usage_discount: Float, reason: T.nilable(String) - ) - .returns(T.attached_class) + ).returns(T.attached_class) end def self.new( # List of price_ids that this discount applies to. For plan/plan phase discounts, @@ -37,30 +38,38 @@ module Orb # discount is for usage_discount:, reason: nil - ); end + ) + end + sig do - override - .returns( - { - applies_to_price_ids: T::Array[String], - discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, - usage_discount: Float, - reason: T.nilable(String) - } - ) + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Orb::UsageDiscount::DiscountType::OrSymbol, + usage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_hash; end module DiscountType extend Orb::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::UsageDiscount::DiscountType) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::UsageDiscount::DiscountType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - USAGE = T.let(:usage, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) + USAGE = T.let(:usage, Orb::UsageDiscount::DiscountType::TaggedSymbol) - sig { override.returns(T::Array[Orb::Models::UsageDiscount::DiscountType::TaggedSymbol]) } - def self.values; end + sig do + override.returns( + T::Array[Orb::UsageDiscount::DiscountType::TaggedSymbol] + ) + end + def self.values + end end end end diff --git a/rbi/orb/request_options.rbi b/rbi/orb/request_options.rbi index 6d76a151..ce4922c6 100644 --- a/rbi/orb/request_options.rbi +++ b/rbi/orb/request_options.rbi @@ -1,17 +1,18 @@ # typed: strong module Orb - RequestOpts = T.type_alias { T.any(Orb::RequestOptions, Orb::Internal::AnyHash) } - # Specify HTTP behaviour to use for a specific request. These options supplement # or override those provided at the client level. # # When making a request, you can pass an actual {RequestOptions} instance, or # simply pass a Hash with symbol keys matching the attributes on this class. class RequestOptions < Orb::Internal::Type::BaseModel + OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) } + # @api private - sig { params(opts: T.any(T.self_type, T::Hash[Symbol, T.anything])).void } - def self.validate!(opts); end + sig { params(opts: Orb::RequestOptions::OrHash).void } + def self.validate!(opts) + end # Idempotency key to send with request and all associated retries. Will only be # sent for write requests. @@ -20,7 +21,11 @@ module Orb # Extra query params to send with the request. These are `.merge`’d into any # `query` given at the client level. - sig { returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) } + sig do + returns( + T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]) + ) + end attr_accessor :extra_query # Extra headers to send with the request. These are `.merged`’d into any @@ -43,6 +48,7 @@ module Orb # Returns a new instance of RequestOptions. sig { params(values: Orb::Internal::AnyHash).returns(T.attached_class) } - def self.new(values = {}); end + def self.new(values = {}) + end end end diff --git a/rbi/orb/resources/alerts.rbi b/rbi/orb/resources/alerts.rbi index 36445b39..ff102fcd 100644 --- a/rbi/orb/resources/alerts.rbi +++ b/rbi/orb/resources/alerts.rbi @@ -4,24 +4,31 @@ module Orb module Resources class Alerts # This endpoint retrieves an alert by its ID. - sig { params(alert_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Alert) } - def retrieve(alert_id, request_options: {}); end + sig do + params( + alert_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) + end + def retrieve(alert_id, request_options: {}) + end # This endpoint updates the thresholds of an alert. sig do params( alert_configuration_id: String, - thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Internal::AnyHash)], - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + thresholds: T::Array[Orb::AlertUpdateParams::Threshold::OrHash], + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def update( alert_configuration_id, # The thresholds that define the values at which the alert will be triggered. thresholds:, request_options: {} - ); end + ) + end + # This endpoint returns a list of alerts within Orb. # # The request must specify one of `customer_id`, `external_customer_id`, or @@ -44,9 +51,8 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Alert]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Alert]) end def list( created_at_gt: nil, @@ -65,7 +71,9 @@ module Orb # Fetch alerts scoped to this subscription_id subscription_id: nil, request_options: {} - ); end + ) + end + # This endpoint creates a new alert to monitor a customer's credit balance. There # are three types of alerts that can be scoped to customers: # `credit_balance_depleted`, `credit_balance_dropped`, and @@ -78,11 +86,13 @@ module Orb params( customer_id: String, currency: String, - type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, - thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Internal::AnyHash)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + type: Orb::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: + T.nilable( + T::Array[Orb::AlertCreateForCustomerParams::Threshold::OrHash] + ), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def create_for_customer( customer_id, @@ -93,7 +103,9 @@ module Orb # The thresholds that define the values at which the alert will be triggered. thresholds: nil, request_options: {} - ); end + ) + end + # This endpoint creates a new alert to monitor a customer's credit balance. There # are three types of alerts that can be scoped to customers: # `credit_balance_depleted`, `credit_balance_dropped`, and @@ -106,13 +118,15 @@ module Orb params( external_customer_id: String, currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, - thresholds: T.nilable( - T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Internal::AnyHash)] - ), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + type: Orb::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: + T.nilable( + T::Array[ + Orb::AlertCreateForExternalCustomerParams::Threshold::OrHash + ] + ), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def create_for_external_customer( external_customer_id, @@ -123,7 +137,9 @@ module Orb # The thresholds that define the values at which the alert will be triggered. thresholds: nil, request_options: {} - ); end + ) + end + # This endpoint is used to create alerts at the subscription level. # # Subscription level alerts can be one of two types: `usage_exceeded` or @@ -138,12 +154,12 @@ module Orb sig do params( subscription_id: String, - thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Internal::AnyHash)], - type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, + thresholds: + T::Array[Orb::AlertCreateForSubscriptionParams::Threshold::OrHash], + type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def create_for_subscription( subscription_id, @@ -154,7 +170,9 @@ module Orb # The metric to track usage for. metric_id: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to disable an alert. To disable a plan-level alert for # a specific subscription, you must include the `subscription_id`. The # `subscription_id` is not required for customer or subscription level alerts. @@ -162,16 +180,17 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def disable( alert_configuration_id, # Used to update the status of a plan alert scoped to this subscription_id subscription_id: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to enable an alert. To enable a plan-level alert for a # specific subscription, you must include the `subscription_id`. The # `subscription_id` is not required for customer or subscription level alerts. @@ -179,19 +198,21 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Alert) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Alert) end def enable( alert_configuration_id, # Used to update the status of a plan alert scoped to this subscription_id subscription_id: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/coupons.rbi b/rbi/orb/resources/coupons.rbi index f0bd7a2d..2bd98ce5 100644 --- a/rbi/orb/resources/coupons.rbi +++ b/rbi/orb/resources/coupons.rbi @@ -10,17 +10,16 @@ module Orb # subscription creation or plan change. sig do params( - discount: T.any( - Orb::Models::CouponCreateParams::Discount::Percentage, - Orb::Internal::AnyHash, - Orb::Models::CouponCreateParams::Discount::Amount - ), + discount: + T.any( + Orb::CouponCreateParams::Discount::Percentage::OrHash, + Orb::CouponCreateParams::Discount::Amount::OrHash + ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Coupon) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Coupon) end def create( discount:, @@ -33,7 +32,9 @@ module Orb # exhausted;`null` here means "unlimited". max_redemptions: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all coupons for an account in a list format. # # The list of coupons is ordered starting from the most recently created coupon. @@ -46,9 +47,8 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Coupon]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Coupon]) end def list( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -62,22 +62,37 @@ module Orb # coupons). show_archived: nil, request_options: {} - ); end + ) + end + # This endpoint allows a coupon to be archived. Archived coupons can no longer be # redeemed, and will be hidden from lists of active coupons. Additionally, once a # coupon is archived, its redemption code can be reused for a different coupon. - sig { params(coupon_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Coupon) } - def archive(coupon_id, request_options: {}); end + sig do + params( + coupon_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Coupon) + end + def archive(coupon_id, request_options: {}) + end # This endpoint retrieves a coupon by its ID. To fetch coupons by their redemption # code, use the [List coupons](list-coupons) endpoint with the redemption_code # parameter. - sig { params(coupon_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Coupon) } - def fetch(coupon_id, request_options: {}); end + sig do + params( + coupon_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Coupon) + end + def fetch(coupon_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/coupons/subscriptions.rbi b/rbi/orb/resources/coupons/subscriptions.rbi index 54618fea..e5483605 100644 --- a/rbi/orb/resources/coupons/subscriptions.rbi +++ b/rbi/orb/resources/coupons/subscriptions.rbi @@ -13,9 +13,8 @@ module Orb coupon_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Subscription]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Subscription]) end def list( coupon_id, @@ -25,10 +24,13 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/credit_notes.rbi b/rbi/orb/resources/credit_notes.rbi index b12a42da..5bdb12e1 100644 --- a/rbi/orb/resources/credit_notes.rbi +++ b/rbi/orb/resources/credit_notes.rbi @@ -7,12 +7,11 @@ module Orb # [`Credit Note`](/invoicing/credit-notes). sig do params( - line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Internal::AnyHash)], + line_items: T::Array[Orb::CreditNoteCreateParams::LineItem::OrHash], memo: T.nilable(String), - reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::CreditNote) + reason: T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::CreditNote) end def create( line_items:, @@ -21,7 +20,9 @@ module Orb # An optional reason for the credit note. reason: nil, request_options: {} - ); end + ) + end + # Get a paginated list of CreditNotes. Users can also filter by customer_id, # subscription_id, or external_customer_id. The credit notes will be returned in # reverse chronological order by `creation_time`. @@ -33,9 +34,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::CreditNote]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::CreditNote]) end def list( created_at_gt: nil, @@ -48,15 +48,24 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes) # given an identifier. - sig { params(credit_note_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::CreditNote) } - def fetch(credit_note_id, request_options: {}); end + sig do + params( + credit_note_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::CreditNote) + end + def fetch(credit_note_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers.rbi b/rbi/orb/resources/customers.rbi index 22b17e7d..5b513cf6 100644 --- a/rbi/orb/resources/customers.rbi +++ b/rbi/orb/resources/customers.rbi @@ -28,31 +28,39 @@ module Orb params( email: String, name: String, - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)), + accounting_sync_configuration: + T.nilable( + Orb::CustomerCreateParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable(Orb::CustomerCreateParams::BillingAddress::OrHash), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: T.nilable(Orb::CustomerCreateParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable(Orb::CustomerCreateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Internal::AnyHash)), - shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Internal::AnyHash)), + reporting_configuration: + T.nilable( + Orb::CustomerCreateParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable(Orb::CustomerCreateParams::ShippingAddress::OrHash), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerCreateParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: T.nilable(Orb::CustomerCreateParams::TaxID::OrHash), timezone: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customer) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Customer) end def create( # A valid customer email, to be used for notifications. When Orb triggers payment @@ -205,7 +213,9 @@ module Orb # This cannot be changed after customer creation. timezone: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to update the `payment_provider`, # `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`, # `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and @@ -214,32 +224,40 @@ module Orb sig do params( customer_id: String, - accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Internal::AnyHash)), + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable(Orb::CustomerUpdateParams::BillingAddress::OrHash), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: T.nilable(Orb::CustomerUpdateParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable(Orb::CustomerUpdateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Internal::AnyHash)), - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Internal::AnyHash)), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customer) + reporting_configuration: + T.nilable( + Orb::CustomerUpdateParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable(Orb::CustomerUpdateParams::ShippingAddress::OrHash), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerUpdateParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID::OrHash), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Customer) end def update( customer_id, @@ -390,7 +408,9 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | tax_id: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all customers for an account. The list of # customers is ordered starting from the most recently created customer. This # endpoint follows Orb's @@ -405,9 +425,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Customer]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Customer]) end def list( created_at_gt: nil, @@ -420,7 +439,9 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This performs a deletion of this customer, its subscriptions, and its invoices, # provided the customer does not have any issued invoices. Customers with issued # invoices cannot be deleted. This operation is irreversible. Note that this is a @@ -436,8 +457,14 @@ module Orb # been fully processed, the customer will not be returned in the API. # # On successful processing, this returns an empty dictionary (`{}`) in the API. - sig { params(customer_id: String, request_options: Orb::RequestOpts).void } - def delete(customer_id, request_options: {}); end + sig do + params( + customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).void + end + def delete(customer_id, request_options: {}) + end # This endpoint is used to fetch customer details given an identifier. If the # `Customer` is in the process of being deleted, only the properties `id` and @@ -445,16 +472,28 @@ module Orb # # See the [Customer resource](/core-concepts#customer) for a full discussion of # the Customer model. - sig { params(customer_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Customer) } - def fetch(customer_id, request_options: {}); end + sig do + params( + customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Customer) + end + def fetch(customer_id, request_options: {}) + end # This endpoint is used to fetch customer details given an `external_customer_id` # (see [Customer ID Aliases](/events-and-metrics/customer-aliases)). # # Note that the resource and semantics of this endpoint exactly mirror # [Get Customer](fetch-customer). - sig { params(external_customer_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Customer) } - def fetch_by_external_id(external_customer_id, request_options: {}); end + sig do + params( + external_customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Customer) + end + def fetch_by_external_id(external_customer_id, request_options: {}) + end # Sync Orb's payment methods for the customer with their gateway. # @@ -462,8 +501,14 @@ module Orb # be charged, ensuring that the most up-to-date payment method is charged. # # **Note**: This functionality is currently only available for Stripe. - sig { params(customer_id: String, request_options: Orb::RequestOpts).void } - def sync_payment_methods_from_gateway(customer_id, request_options: {}); end + sig do + params( + customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).void + end + def sync_payment_methods_from_gateway(customer_id, request_options: {}) + end # Sync Orb's payment methods for the customer with their gateway. # @@ -471,7 +516,12 @@ module Orb # be charged, ensuring that the most up-to-date payment method is charged. # # **Note**: This functionality is currently only available for Stripe. - sig { params(external_customer_id: String, request_options: Orb::RequestOpts).void } + sig do + params( + external_customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).void + end def sync_payment_methods_from_gateway_by_external_customer_id( external_customer_id, request_options: {} @@ -485,36 +535,48 @@ module Orb sig do params( id: String, - accounting_sync_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Internal::AnyHash) - ), + accounting_sync_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::OrHash + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Internal::AnyHash)), + billing_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::BillingAddress::OrHash + ), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Internal::AnyHash)), + hierarchy: + T.nilable(Orb::CustomerUpdateByExternalIDParams::Hierarchy::OrHash), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), + payment_provider: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol + ), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable( - T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Internal::AnyHash) - ), - shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Internal::AnyHash)), - tax_configuration: T.nilable( - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, - Orb::Internal::AnyHash, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar - ) - ), - tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Internal::AnyHash)), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customer) + reporting_configuration: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration::OrHash + ), + shipping_address: + T.nilable( + Orb::CustomerUpdateByExternalIDParams::ShippingAddress::OrHash + ), + tax_configuration: + T.nilable( + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara::OrHash, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar::OrHash + ) + ), + tax_id: + T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID::OrHash), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Customer) end def update_by_external_id( id, @@ -665,10 +727,13 @@ module Orb # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | tax_id: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers/balance_transactions.rbi b/rbi/orb/resources/customers/balance_transactions.rbi index 4d9e0edd..f32dd96d 100644 --- a/rbi/orb/resources/customers/balance_transactions.rbi +++ b/rbi/orb/resources/customers/balance_transactions.rbi @@ -10,11 +10,11 @@ module Orb params( customer_id: String, amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, + type: + Orb::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customers::BalanceTransactionCreateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end def create( customer_id, @@ -23,7 +23,9 @@ module Orb # An optional description that can be specified around this entry. description: nil, request_options: {} - ); end + ) + end + # ## The customer balance # # The customer balance is an amount in the customer's currency, which Orb @@ -61,9 +63,12 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + Orb::Models::Customers::BalanceTransactionListResponse + ] ) - .returns(Orb::Internal::Page[Orb::Models::Customers::BalanceTransactionListResponse]) end def list( customer_id, @@ -77,10 +82,13 @@ module Orb operation_time_lt: nil, operation_time_lte: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers/costs.rbi b/rbi/orb/resources/customers/costs.rbi index 5266a582..1286548c 100644 --- a/rbi/orb/resources/customers/costs.rbi +++ b/rbi/orb/resources/customers/costs.rbi @@ -127,10 +127,10 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customers::CostListResponse) + view_mode: + T.nilable(Orb::Customers::CostListParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Customers::CostListResponse) end def list( customer_id, @@ -146,7 +146,9 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch a day-by-day snapshot of a customer's costs in # Orb, calculated by applying pricing information to the underlying usage (see the # [subscription usage endpoint](/api-reference/subscription/fetch-subscription-usage) @@ -270,10 +272,12 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customers::CostListByExternalIDResponse) + view_mode: + T.nilable( + Orb::Customers::CostListByExternalIDParams::ViewMode::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Customers::CostListByExternalIDResponse) end def list_by_external_id( external_customer_id, @@ -289,10 +293,13 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers/credits.rbi b/rbi/orb/resources/customers/credits.rbi index 0043496d..aa980f52 100644 --- a/rbi/orb/resources/customers/credits.rbi +++ b/rbi/orb/resources/customers/credits.rbi @@ -24,9 +24,10 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[Orb::Models::Customers::CreditListResponse] ) - .returns(Orb::Internal::Page[Orb::Models::Customers::CreditListResponse]) end def list( customer_id, @@ -41,7 +42,9 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # Returns a paginated list of unexpired, non-zero credit blocks for a customer. # # If `include_all_blocks` is set to `true`, all credit blocks (including expired @@ -56,9 +59,12 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + Orb::Models::Customers::CreditListByExternalIDResponse + ] ) - .returns(Orb::Internal::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) end def list_by_external_id( external_customer_id, @@ -73,10 +79,13 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers/credits/ledger.rbi b/rbi/orb/resources/customers/credits/ledger.rbi index de4df267..b6099145 100644 --- a/rbi/orb/resources/customers/credits/ledger.rbi +++ b/rbi/orb/resources/customers/credits/ledger.rbi @@ -95,25 +95,30 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListParams::EntryType::OrSymbol + ), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + T.any( + Orb::Models::Customers::Credits::LedgerListResponse::Increment, + Orb::Models::Customers::Credits::LedgerListResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListResponse::Void, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListResponse::Amendment + ) + ] ) - .returns( - Orb::Internal::Page[ - T.any( - Orb::Models::Customers::Credits::LedgerListResponse::Increment, - Orb::Models::Customers::Credits::LedgerListResponse::Decrement, - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, - Orb::Models::Customers::Credits::LedgerListResponse::Void, - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, - Orb::Models::Customers::Credits::LedgerListResponse::Amendment - ) - ] - ) end def list( customer_id, @@ -132,7 +137,9 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to create a new ledger entry for a specified customer's # balance. This can be used to increment balance, deduct credits, and change the # expiry date of existing credits. @@ -247,32 +254,36 @@ module Orb params( customer_id: String, amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable( - T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Internal::AnyHash) - ), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment - ) + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment ) + ) end def create_entry( customer_id, @@ -313,7 +324,9 @@ module Orb # Can only be specified when `entry_type=void`. The reason for the void. void_reason: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to create a new ledger entry for a specified customer's # balance. This can be used to increment balance, deduct credits, and change the # expiry date of existing credits. @@ -428,35 +441,36 @@ module Orb params( external_customer_id: String, amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, + entry_type: + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable( - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash - ) - ), + invoice_settings: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment - ) + void_reason: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment ) + ) end def create_entry_by_external_id( external_customer_id, @@ -497,7 +511,9 @@ module Orb # Can only be specified when `entry_type=void`. The reason for the void. void_reason: nil, request_options: {} - ); end + ) + end + # The credits ledger provides _auditing_ functionality over Orb's credits system # with a list of actions that have taken place to modify a customer's credit # balance. This [paginated endpoint](/api-reference/pagination) lists these @@ -588,25 +604,30 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), - entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), + entry_status: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol + ), + entry_type: + T.nilable( + Orb::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol + ), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment + ) + ] ) - .returns( - Orb::Internal::Page[ - T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment - ) - ] - ) end def list_by_external_id( external_customer_id, @@ -625,10 +646,13 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/customers/credits/top_ups.rbi b/rbi/orb/resources/customers/credits/top_ups.rbi index d99d9ba0..12a00f2f 100644 --- a/rbi/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/orb/resources/customers/credits/top_ups.rbi @@ -17,15 +17,18 @@ module Orb customer_id: String, amount: String, currency: String, - invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Internal::AnyHash), + invoice_settings: + Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Customers::Credits::TopUpCreateResponse) + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Customers::Credits::TopUpCreateResponse) end def create( customer_id, @@ -50,16 +53,21 @@ module Orb # The unit of expires_after. expires_after_unit: nil, request_options: {} - ); end + ) + end + # List top-ups sig do params( customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + Orb::Models::Customers::Credits::TopUpListResponse + ] ) - .returns(Orb::Internal::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end def list( customer_id, @@ -69,11 +77,20 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This deactivates the top-up and voids any invoices associated with pending # credit blocks purchased through the top-up. - sig { params(top_up_id: String, customer_id: String, request_options: Orb::RequestOpts).void } - def delete(top_up_id, customer_id:, request_options: {}); end + sig do + params( + top_up_id: String, + customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).void + end + def delete(top_up_id, customer_id:, request_options: {}) + end # This endpoint allows you to create a new top-up for a specified customer's # balance. While this top-up is active, the customer's balance will added in @@ -87,18 +104,20 @@ module Orb external_customer_id: String, amount: String, currency: String, - invoice_settings: T.any( - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - Orb::Internal::AnyHash - ), + invoice_settings: + Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings::OrHash, per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), - request_options: Orb::RequestOpts + expires_after_unit: + T.nilable( + Orb::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol + ), + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse ) - .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) end def create_by_external_id( external_customer_id, @@ -123,13 +142,24 @@ module Orb # The unit of expires_after. expires_after_unit: nil, request_options: {} - ); end + ) + end + # This deactivates the top-up and voids any invoices associated with pending # credit blocks purchased through the top-up. sig do - params(top_up_id: String, external_customer_id: String, request_options: Orb::RequestOpts).void + params( + top_up_id: String, + external_customer_id: String, + request_options: Orb::RequestOptions::OrHash + ).void + end + def delete_by_external_id( + top_up_id, + external_customer_id:, + request_options: {} + ) end - def delete_by_external_id(top_up_id, external_customer_id:, request_options: {}); end # List top-ups by external ID sig do @@ -137,9 +167,12 @@ module Orb external_customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse + ] ) - .returns(Orb::Internal::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end def list_by_external_id( external_customer_id, @@ -149,10 +182,13 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/dimensional_price_groups.rbi b/rbi/orb/resources/dimensional_price_groups.rbi index f38a2f6b..e55690ce 100644 --- a/rbi/orb/resources/dimensional_price_groups.rbi +++ b/rbi/orb/resources/dimensional_price_groups.rbi @@ -3,7 +3,11 @@ module Orb module Resources class DimensionalPriceGroups - sig { returns(Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID) } + sig do + returns( + Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID + ) + end attr_reader :external_dimensional_price_group_id # A dimensional price group is used to partition the result of a billable metric @@ -21,9 +25,8 @@ module Orb name: String, external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::DimensionalPriceGroup) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::DimensionalPriceGroup) end def create( billable_metric_id:, @@ -36,18 +39,26 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # Fetch dimensional price group sig do - params(dimensional_price_group_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::DimensionalPriceGroup) + params( + dimensional_price_group_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::DimensionalPriceGroup) + end + def retrieve(dimensional_price_group_id, request_options: {}) end - def retrieve(dimensional_price_group_id, request_options: {}); end # List dimensional price groups sig do - params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts) - .returns(Orb::Internal::Page[Orb::Models::DimensionalPriceGroup]) + params( + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::DimensionalPriceGroup]) end def list( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -56,10 +67,13 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi b/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi index 2853fd22..8290c4e3 100644 --- a/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +++ b/rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi @@ -6,14 +6,18 @@ module Orb class ExternalDimensionalPriceGroupID # Fetch dimensional price group by external ID sig do - params(external_dimensional_price_group_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::DimensionalPriceGroup) + params( + external_dimensional_price_group_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::DimensionalPriceGroup) + end + def retrieve(external_dimensional_price_group_id, request_options: {}) end - def retrieve(external_dimensional_price_group_id, request_options: {}); end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/events.rbi b/rbi/orb/resources/events.rbi index 82925e7a..b87f4d31 100644 --- a/rbi/orb/resources/events.rbi +++ b/rbi/orb/resources/events.rbi @@ -62,9 +62,8 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::EventUpdateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::EventUpdateResponse) end def update( event_id, @@ -83,7 +82,9 @@ module Orb # customer external_customer_id: nil, request_options: {} - ); end + ) + end + # This endpoint is used to deprecate a single usage event with a given `event_id`. # `event_id` refers to the `idempotency_key` passed in during ingestion. # @@ -124,8 +125,14 @@ module Orb # - By default, no more than 100 events can be deprecated for a single customer in # a 100 day period. For higher volume updates, consider using the # [event backfill](create-backfill) endpoint. - sig { params(event_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::EventDeprecateResponse) } - def deprecate(event_id, request_options: {}); end + sig do + params( + event_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::EventDeprecateResponse) + end + def deprecate(event_id, request_options: {}) + end # Orb's event ingestion model and API is designed around two core principles: # @@ -333,12 +340,11 @@ module Orb # ``` sig do params( - events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Internal::AnyHash)], + events: T::Array[Orb::EventIngestParams::Event::OrHash], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::EventIngestResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::EventIngestResponse) end def ingest( # Body param: @@ -350,7 +356,9 @@ module Orb # response debug: nil, request_options: {} - ); end + ) + end + # This endpoint returns a filtered set of events for an account in a # [paginated list format](/api-reference/pagination). # @@ -371,9 +379,8 @@ module Orb event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::EventSearchResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::EventSearchResponse) end def search( # This is an explicit array of IDs to filter by. Note that an event's ID is the @@ -388,10 +395,13 @@ module Orb # specified, the one week ago is used. timeframe_start: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/events/backfills.rbi b/rbi/orb/resources/events/backfills.rbi index d11c4169..97367731 100644 --- a/rbi/orb/resources/events/backfills.rbi +++ b/rbi/orb/resources/events/backfills.rbi @@ -50,9 +50,8 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Events::BackfillCreateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Events::BackfillCreateResponse) end def create( # The (exclusive) end of the usage timeframe affected by this backfill. By @@ -81,7 +80,9 @@ module Orb # events. If false, adds the newly ingested events to the existing events. replace_existing_events: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all backfills in a list format. # # The list of backfills is ordered starting from the most recently created @@ -90,8 +91,13 @@ module Orb # retrieve the next page of results if they exist. More information about # pagination can be found in the [Pagination-metadata schema](pagination). sig do - params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts) - .returns(Orb::Internal::Page[Orb::Models::Events::BackfillListResponse]) + params( + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[Orb::Models::Events::BackfillListResponse] + ) end def list( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -100,23 +106,31 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # Closing a backfill makes the updated usage visible in Orb. Upon closing a # backfill, Orb will asynchronously reflect the updated usage in invoice amounts # and usage graphs. Once all of the updates are complete, the backfill's status # will transition to `reflected`. sig do - params(backfill_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::Events::BackfillCloseResponse) + params( + backfill_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Events::BackfillCloseResponse) + end + def close(backfill_id, request_options: {}) end - def close(backfill_id, request_options: {}); end # This endpoint is used to fetch a backfill given an identifier. sig do - params(backfill_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::Events::BackfillFetchResponse) + params( + backfill_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Events::BackfillFetchResponse) + end + def fetch(backfill_id, request_options: {}) end - def fetch(backfill_id, request_options: {}); end # Reverting a backfill undoes all the effects of closing the backfill. If the # backfill is reflected, the status will transition to `pending_revert` while the @@ -126,14 +140,18 @@ module Orb # If a backfill is reverted before its closed, no usage will be updated as a # result of the backfill and it will immediately transition to `reverted`. sig do - params(backfill_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::Events::BackfillRevertResponse) + params( + backfill_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::Events::BackfillRevertResponse) + end + def revert(backfill_id, request_options: {}) end - def revert(backfill_id, request_options: {}); end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/events/volume.rbi b/rbi/orb/resources/events/volume.rbi index b8e4a989..0d2e9c0b 100644 --- a/rbi/orb/resources/events/volume.rbi +++ b/rbi/orb/resources/events/volume.rbi @@ -23,9 +23,8 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Events::EventVolumes) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Events::EventVolumes) end def list( # The start of the timeframe, inclusive, in which to return event volume. All @@ -44,10 +43,13 @@ module Orb # volumecount for the hour the time falls in. timeframe_end: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/invoice_line_items.rbi b/rbi/orb/resources/invoice_line_items.rbi index c3b08d58..3edf0d24 100644 --- a/rbi/orb/resources/invoice_line_items.rbi +++ b/rbi/orb/resources/invoice_line_items.rbi @@ -13,9 +13,8 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::InvoiceLineItemCreateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::InvoiceLineItemCreateResponse) end def create( # The total amount in the invoice's currency to add to the line item. @@ -32,10 +31,13 @@ module Orb # A date string to specify the line item's start date in the customer's timezone. start_date:, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/invoices.rbi b/rbi/orb/resources/invoices.rbi index f3be1fdf..3e10c427 100644 --- a/rbi/orb/resources/invoices.rbi +++ b/rbi/orb/resources/invoices.rbi @@ -8,25 +8,24 @@ module Orb params( currency: String, invoice_date: Time, - line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Internal::AnyHash)], + line_items: T::Array[Orb::InvoiceCreateParams::LineItem::OrHash], net_terms: Integer, customer_id: T.nilable(String), - discount: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Internal::AnyHash, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ), + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Invoice) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) end def create( # An ISO 4217 currency string. Must be the same as the customer's currency if it @@ -60,7 +59,9 @@ module Orb # false. will_auto_issue: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to update the `metadata` property on an invoice. If you # pass null for the metadata value, it will clear any existing metadata for that # invoice. @@ -70,9 +71,8 @@ module Orb params( invoice_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Invoice) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) end def update( invoice_id, @@ -81,7 +81,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all [`Invoice`](/core-concepts#invoice)s for an # account in a list format. # @@ -102,7 +104,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), + date_type: T.nilable(Orb::InvoiceListParams::DateType::OrSymbol), due_date: T.nilable(Date), due_date_window: T.nilable(String), due_date_gt: T.nilable(Date), @@ -114,11 +116,10 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), + status: T.nilable(T::Array[Orb::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Invoice]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Invoice]) end def list( amount: nil, @@ -148,20 +149,31 @@ module Orb status: nil, subscription_id: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an # identifier. - sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } - def fetch(invoice_id, request_options: {}); end + sig do + params( + invoice_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) + end + def fetch(invoice_id, request_options: {}) + end # This endpoint can be used to fetch the upcoming # [invoice](/core-concepts#invoice) for the current billing period given a # subscription. sig do - params(subscription_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::InvoiceFetchUpcomingResponse) + params( + subscription_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::InvoiceFetchUpcomingResponse) + end + def fetch_upcoming(subscription_id:, request_options: {}) end - def fetch_upcoming(subscription_id:, request_options: {}); end # This endpoint allows an eligible invoice to be issued manually. This is only # possible with invoices where status is `draft`, `will_auto_issue` is false, and @@ -170,8 +182,11 @@ module Orb # sending emails, auto-collecting payment, syncing the invoice to external # providers, etc). sig do - params(invoice_id: String, synchronous: T::Boolean, request_options: Orb::RequestOpts) - .returns(Orb::Models::Invoice) + params( + invoice_id: String, + synchronous: T::Boolean, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) end def issue( invoice_id, @@ -182,7 +197,9 @@ module Orb # present in the provider. synchronous: nil, request_options: {} - ); end + ) + end + # This endpoint allows an invoice's status to be set the `paid` status. This can # only be done to invoices that are in the `issued` status. sig do @@ -191,9 +208,8 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Invoice) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) end def mark_paid( invoice_id, @@ -204,11 +220,19 @@ module Orb # An optional note to associate with the payment. notes: nil, request_options: {} - ); end + ) + end + # This endpoint collects payment for an invoice using the customer's default # payment method. This action can only be taken on invoices with status "issued". - sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } - def pay(invoice_id, request_options: {}); end + sig do + params( + invoice_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) + end + def pay(invoice_id, request_options: {}) + end # This endpoint allows an invoice's status to be set the `void` status. This can # only be done to invoices that are in the `issued` status. @@ -221,12 +245,19 @@ module Orb # If the invoice was used to purchase a credit block, but the invoice is not yet # paid, the credit block will be voided. If the invoice was created due to a # top-up, the top-up will be disabled. - sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } - def void(invoice_id, request_options: {}); end + sig do + params( + invoice_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Invoice) + end + def void(invoice_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/items.rbi b/rbi/orb/resources/items.rbi index 44bf1504..999a14d3 100644 --- a/rbi/orb/resources/items.rbi +++ b/rbi/orb/resources/items.rbi @@ -4,29 +4,47 @@ module Orb module Resources class Items # This endpoint is used to create an [Item](/core-concepts#item). - sig { params(name: String, request_options: Orb::RequestOpts).returns(Orb::Models::Item) } + sig do + params( + name: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Item) + end def create( # The name of the item. name:, request_options: {} - ); end + ) + end + # This endpoint can be used to update properties on the Item. sig do params( item_id: String, - external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Internal::AnyHash)]), + external_connections: + T.nilable( + T::Array[Orb::ItemUpdateParams::ExternalConnection::OrHash] + ), name: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Item) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Item) + end + def update( + item_id, + external_connections: nil, + name: nil, + request_options: {} + ) end - def update(item_id, external_connections: nil, name: nil, request_options: {}); end # This endpoint returns a list of all Items, ordered in descending order by # creation time. sig do - params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts) - .returns(Orb::Internal::Page[Orb::Models::Item]) + params( + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Item]) end def list( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -35,14 +53,23 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This endpoint returns an item identified by its item_id. - sig { params(item_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Item) } - def fetch(item_id, request_options: {}); end + sig do + params( + item_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Item) + end + def fetch(item_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/metrics.rbi b/rbi/orb/resources/metrics.rbi index 36cb3689..cf1a608c 100644 --- a/rbi/orb/resources/metrics.rbi +++ b/rbi/orb/resources/metrics.rbi @@ -13,9 +13,8 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::BillableMetric) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::BillableMetric) end def create( # A description of the metric. @@ -31,7 +30,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to update the `metadata` property on a metric. If you # pass `null` for the metadata value, it will clear any existing metadata for that # invoice. @@ -39,9 +40,8 @@ module Orb params( metric_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::BillableMetric) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::BillableMetric) end def update( metric_id, @@ -50,7 +50,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch [metric](/core-concepts##metric) details given a # metric identifier. It returns information about the metrics including its name, # description, and item. @@ -62,9 +64,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::BillableMetric]) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::BillableMetric]) end def list( created_at_gt: nil, @@ -77,15 +78,24 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This endpoint is used to list [metrics](/core-concepts#metric). It returns # information about the metrics including its name, description, and item. - sig { params(metric_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::BillableMetric) } - def fetch(metric_id, request_options: {}); end + sig do + params( + metric_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::BillableMetric) + end + def fetch(metric_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/plans.rbi b/rbi/orb/resources/plans.rbi index eba9a000..1d5943b9 100644 --- a/rbi/orb/resources/plans.rbi +++ b/rbi/orb/resources/plans.rbi @@ -11,44 +11,43 @@ module Orb params( currency: String, name: String, - prices: T::Array[ - T.any( - Orb::Models::PlanCreateParams::Price::Unit, - Orb::Internal::AnyHash, - Orb::Models::PlanCreateParams::Price::Package, - Orb::Models::PlanCreateParams::Price::Matrix, - Orb::Models::PlanCreateParams::Price::Tiered, - Orb::Models::PlanCreateParams::Price::TieredBps, - Orb::Models::PlanCreateParams::Price::Bps, - Orb::Models::PlanCreateParams::Price::BulkBps, - Orb::Models::PlanCreateParams::Price::Bulk, - Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, - Orb::Models::PlanCreateParams::Price::TieredPackage, - Orb::Models::PlanCreateParams::Price::TieredWithMinimum, - Orb::Models::PlanCreateParams::Price::UnitWithPercent, - Orb::Models::PlanCreateParams::Price::PackageWithAllocation, - Orb::Models::PlanCreateParams::Price::TieredWithProration, - Orb::Models::PlanCreateParams::Price::UnitWithProration, - Orb::Models::PlanCreateParams::Price::GroupedAllocation, - Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, - Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, - Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, - Orb::Models::PlanCreateParams::Price::BulkWithProration, - Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, - Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, - Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, - Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk - ) - ], + prices: + T::Array[ + T.any( + Orb::PlanCreateParams::Price::Unit::OrHash, + Orb::PlanCreateParams::Price::Package::OrHash, + Orb::PlanCreateParams::Price::Matrix::OrHash, + Orb::PlanCreateParams::Price::Tiered::OrHash, + Orb::PlanCreateParams::Price::TieredBps::OrHash, + Orb::PlanCreateParams::Price::Bps::OrHash, + Orb::PlanCreateParams::Price::BulkBps::OrHash, + Orb::PlanCreateParams::Price::Bulk::OrHash, + Orb::PlanCreateParams::Price::ThresholdTotalAmount::OrHash, + Orb::PlanCreateParams::Price::TieredPackage::OrHash, + Orb::PlanCreateParams::Price::TieredWithMinimum::OrHash, + Orb::PlanCreateParams::Price::UnitWithPercent::OrHash, + Orb::PlanCreateParams::Price::PackageWithAllocation::OrHash, + Orb::PlanCreateParams::Price::TieredWithProration::OrHash, + Orb::PlanCreateParams::Price::UnitWithProration::OrHash, + Orb::PlanCreateParams::Price::GroupedAllocation::OrHash, + Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::OrHash, + Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::OrHash, + Orb::PlanCreateParams::Price::MatrixWithDisplayName::OrHash, + Orb::PlanCreateParams::Price::BulkWithProration::OrHash, + Orb::PlanCreateParams::Price::GroupedTieredPackage::OrHash, + Orb::PlanCreateParams::Price::MaxGroupTieredPackage::OrHash, + Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::PlanCreateParams::Price::CumulativeGroupedBulk::OrHash + ) + ], default_invoice_memo: T.nilable(String), external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Orb::Models::PlanCreateParams::Status::OrSymbol, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Plan) + status: Orb::PlanCreateParams::Status::OrSymbol, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Plan) end def create( # An ISO 4217 currency string for invoices generated by subscriptions on this @@ -73,7 +72,9 @@ module Orb # this defaults to active. status: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to update the `external_plan_id`, and `metadata` of an # existing plan. # @@ -83,9 +84,8 @@ module Orb plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Plan) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Plan) end def update( plan_id, @@ -98,7 +98,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for # an account in a list format. The list of plans is ordered starting from the most # recently created plan. The response also includes @@ -112,10 +114,9 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Orb::Models::PlanListParams::Status::OrSymbol, - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Plan]) + status: Orb::PlanListParams::Status::OrSymbol, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Plan]) end def list( created_at_gt: nil, @@ -130,7 +131,9 @@ module Orb # The plan status to filter to ('active', 'archived', or 'draft'). status: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch [plan](/core-concepts#plan-and-price) details # given a plan identifier. It returns information about the prices included in the # plan and their configuration, as well as the product that the plan is attached @@ -148,12 +151,19 @@ module Orb # # Orb supports plan phases, also known as contract ramps. For plans with phases, # the serialized prices refer to all prices across all phases. - sig { params(plan_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Plan) } - def fetch(plan_id, request_options: {}); end + sig do + params( + plan_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Plan) + end + def fetch(plan_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/plans/external_plan_id.rbi b/rbi/orb/resources/plans/external_plan_id.rbi index fd97f634..6a9d5012 100644 --- a/rbi/orb/resources/plans/external_plan_id.rbi +++ b/rbi/orb/resources/plans/external_plan_id.rbi @@ -13,9 +13,8 @@ module Orb other_external_plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Plan) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Plan) end def update( other_external_plan_id, @@ -28,7 +27,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details # given an external_plan_id identifier. It returns information about the prices # included in the plan and their configuration, as well as the product that the @@ -45,12 +46,19 @@ module Orb # object. The `model_type` field determines the key for the configuration object # that is present. A detailed explanation of price types can be found in the # [Price schema](/core-concepts#plan-and-price). " - sig { params(external_plan_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Plan) } - def fetch(external_plan_id, request_options: {}); end + sig do + params( + external_plan_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Plan) + end + def fetch(external_plan_id, request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/prices.rbi b/rbi/orb/resources/prices.rbi index f8d3ac57..41cba145 100644 --- a/rbi/orb/resources/prices.rbi +++ b/rbi/orb/resources/prices.rbi @@ -18,20 +18,21 @@ module Orb # specification of different price model configurations possible in this endpoint. sig do params( - cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, + cadence: Orb::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, + model_type: Orb::PriceCreateParams::ModelType::OrSymbol, name: String, - unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Internal::AnyHash), - package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Internal::AnyHash), - matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Internal::AnyHash), - matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Internal::AnyHash), - tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Internal::AnyHash), - tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Internal::AnyHash), - bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Internal::AnyHash), - bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Internal::AnyHash), - bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Internal::AnyHash), + unit_config: Orb::PriceCreateParams::UnitConfig::OrHash, + package_config: Orb::PriceCreateParams::PackageConfig::OrHash, + matrix_config: Orb::PriceCreateParams::MatrixConfig::OrHash, + matrix_with_allocation_config: + Orb::PriceCreateParams::MatrixWithAllocationConfig::OrHash, + tiered_config: Orb::PriceCreateParams::TieredConfig::OrHash, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig::OrHash, + bps_config: Orb::PriceCreateParams::BpsConfig::OrHash, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig::OrHash, + bulk_config: Orb::PriceCreateParams::BulkConfig::OrHash, threshold_total_amount_config: T::Hash[Symbol, T.anything], tiered_package_config: T::Hash[Symbol, T.anything], grouped_tiered_config: T::Hash[Symbol, T.anything], @@ -49,51 +50,57 @@ module Orb bulk_with_proration_config: T::Hash[Symbol, T.anything], grouped_tiered_package_config: T::Hash[Symbol, T.anything], scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Internal::AnyHash)), + billing_cycle_configuration: + T.nilable( + Orb::PriceCreateParams::BillingCycleConfiguration::OrHash + ), conversion_rate: T.nilable(Float), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Internal::AnyHash)), + invoicing_cycle_configuration: + T.nilable( + Orb::PriceCreateParams::InvoicingCycleConfiguration::OrHash + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) + ) end def create( # The cadence to bill for this price on. @@ -159,7 +166,9 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint allows you to update the `metadata` property on a price. If you # pass null for the metadata value, it will clear any existing metadata for that # price. @@ -167,40 +176,39 @@ module Orb params( price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) + ) end def update( price_id, @@ -209,45 +217,50 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint is used to list all add-on prices created using the # [price creation endpoint](/api-reference/price/create-price). sig do - params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts) - .returns( - Orb::Internal::Page[ - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) - ] - ) + params( + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[ + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk + ) + ] + ) end def list( # Cursor for pagination. This can be populated by the `next_cursor` value returned @@ -256,7 +269,9 @@ module Orb # The number of items to fetch. Defaults to 20. limit: nil, request_options: {} - ); end + ) + end + # This endpoint is used to evaluate the output of a price for a given customer and # time range. It enables filtering and grouping the output using # [computed properties](/extensibility/advanced-metrics#computed-properties), @@ -287,9 +302,8 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::PriceEvaluateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::PriceEvaluateResponse) end def evaluate( price_id, @@ -310,48 +324,54 @@ module Orb # to group the underlying billable metric grouping_keys: nil, request_options: {} - ); end + ) + end + # This endpoint returns a price given an identifier. sig do - params(price_id: String, request_options: Orb::RequestOpts) - .returns( - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) + params( + price_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) + ) + end + def fetch(price_id, request_options: {}) end - def fetch(price_id, request_options: {}); end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/prices/external_price_id.rbi b/rbi/orb/resources/prices/external_price_id.rbi index 953146e2..6772dd94 100644 --- a/rbi/orb/resources/prices/external_price_id.rbi +++ b/rbi/orb/resources/prices/external_price_id.rbi @@ -11,40 +11,39 @@ module Orb params( external_price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) + ) end def update( external_price_id, @@ -53,50 +52,56 @@ module Orb # by setting `metadata` to `null`. metadata: nil, request_options: {} - ); end + ) + end + # This endpoint returns a price given an external price id. See the # [price creation API](/api-reference/price/create-price) for more information # about external price aliases. sig do - params(external_price_id: String, request_options: Orb::RequestOpts) - .returns( - T.any( - Orb::Models::Price::Unit, - Orb::Models::Price::Package, - Orb::Models::Price::Matrix, - Orb::Models::Price::Tiered, - Orb::Models::Price::TieredBps, - Orb::Models::Price::Bps, - Orb::Models::Price::BulkBps, - Orb::Models::Price::Bulk, - Orb::Models::Price::ThresholdTotalAmount, - Orb::Models::Price::TieredPackage, - Orb::Models::Price::GroupedTiered, - Orb::Models::Price::TieredWithMinimum, - Orb::Models::Price::TieredPackageWithMinimum, - Orb::Models::Price::PackageWithAllocation, - Orb::Models::Price::UnitWithPercent, - Orb::Models::Price::MatrixWithAllocation, - Orb::Models::Price::TieredWithProration, - Orb::Models::Price::UnitWithProration, - Orb::Models::Price::GroupedAllocation, - Orb::Models::Price::GroupedWithProratedMinimum, - Orb::Models::Price::GroupedWithMeteredMinimum, - Orb::Models::Price::MatrixWithDisplayName, - Orb::Models::Price::BulkWithProration, - Orb::Models::Price::GroupedTieredPackage, - Orb::Models::Price::MaxGroupTieredPackage, - Orb::Models::Price::ScalableMatrixWithUnitPricing, - Orb::Models::Price::ScalableMatrixWithTieredPricing, - Orb::Models::Price::CumulativeGroupedBulk - ) + params( + external_price_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::Price::Unit, + Orb::Price::Package, + Orb::Price::Matrix, + Orb::Price::Tiered, + Orb::Price::TieredBps, + Orb::Price::Bps, + Orb::Price::BulkBps, + Orb::Price::Bulk, + Orb::Price::ThresholdTotalAmount, + Orb::Price::TieredPackage, + Orb::Price::GroupedTiered, + Orb::Price::TieredWithMinimum, + Orb::Price::TieredPackageWithMinimum, + Orb::Price::PackageWithAllocation, + Orb::Price::UnitWithPercent, + Orb::Price::MatrixWithAllocation, + Orb::Price::TieredWithProration, + Orb::Price::UnitWithProration, + Orb::Price::GroupedAllocation, + Orb::Price::GroupedWithProratedMinimum, + Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::MatrixWithDisplayName, + Orb::Price::BulkWithProration, + Orb::Price::GroupedTieredPackage, + Orb::Price::MaxGroupTieredPackage, + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::CumulativeGroupedBulk ) + ) + end + def fetch(external_price_id, request_options: {}) end - def fetch(external_price_id, request_options: {}); end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/subscription_changes.rbi b/rbi/orb/resources/subscription_changes.rbi index 672ed4d9..5f04e8bb 100644 --- a/rbi/orb/resources/subscription_changes.rbi +++ b/rbi/orb/resources/subscription_changes.rbi @@ -13,10 +13,13 @@ module Orb # ...). The subscription change will be referenced by the # `pending_subscription_change` field in the response. sig do - params(subscription_change_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::SubscriptionChangeRetrieveResponse) + params( + subscription_change_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionChangeRetrieveResponse) + end + def retrieve(subscription_change_id, request_options: {}) end - def retrieve(subscription_change_id, request_options: {}); end # Apply a subscription change to perform the intended action. If a positive amount # is passed with a request to this endpoint, any eligible invoices that were @@ -26,9 +29,8 @@ module Orb subscription_change_id: String, description: T.nilable(String), previously_collected_amount: T.nilable(String), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionChangeApplyResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionChangeApplyResponse) end def apply( subscription_change_id, @@ -37,19 +39,25 @@ module Orb # Amount already collected to apply to the customer's balance. previously_collected_amount: nil, request_options: {} - ); end + ) + end + # Cancel a subscription change. The change can no longer be applied. A # subscription can only have one "pending" change at a time - use this endpoint to # cancel an existing change before creating a new one. sig do - params(subscription_change_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::SubscriptionChangeCancelResponse) + params( + subscription_change_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionChangeCancelResponse) + end + def cancel(subscription_change_id, request_options: {}) end - def cancel(subscription_change_id, request_options: {}); end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/subscriptions.rbi b/rbi/orb/resources/subscriptions.rbi index ca8de9fe..0b74bd99 100644 --- a/rbi/orb/resources/subscriptions.rbi +++ b/rbi/orb/resources/subscriptions.rbi @@ -261,21 +261,31 @@ module Orb # $10.00 for a subscription that invoices in USD. sig do params( - add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Internal::AnyHash)]), - add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Internal::AnyHash)]), + add_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddAdjustment::OrHash] + ), + add_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::AddPrice::OrHash] + ), align_billing_with_subscription_start_date: T::Boolean, auto_collection: T.nilable(T::Boolean), aws_region: T.nilable(String), - billing_cycle_anchor_configuration: T.nilable( - T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Internal::AnyHash) - ), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration::OrHash + ), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), customer_id: T.nilable(String), default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), + external_marketplace: + T.nilable( + Orb::SubscriptionCreateParams::ExternalMarketplace::OrSymbol + ), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -287,20 +297,27 @@ module Orb plan_id: T.nilable(String), plan_version_number: T.nilable(Integer), price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Internal::AnyHash)] - ), - remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Internal::AnyHash)]), - replace_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Internal::AnyHash)] - ), - replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Internal::AnyHash)]), + remove_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::RemoveAdjustment::OrHash] + ), + remove_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::RemovePrice::OrHash] + ), + replace_adjustments: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::OrHash] + ), + replace_prices: + T.nilable( + T::Array[Orb::SubscriptionCreateParams::ReplacePrice::OrHash] + ), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionCreateResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionCreateResponse) end def create( # Additional adjustments to be added to the subscription. (Only available for @@ -386,7 +403,9 @@ module Orb # subscription itself, or any of that customer's children. usage_customer_ids: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to update the `metadata`, `net terms`, # `auto_collection`, `invoicing_threshold`, and `default_invoice_memo` properties # on a subscription. @@ -398,9 +417,8 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::Subscription) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Subscription) end def update( subscription_id, @@ -425,7 +443,9 @@ module Orb # has a month to pay the invoice. net_terms: nil, request_options: {} - ); end + ) + end + # This endpoint returns a list of all subscriptions for an account as a # [paginated](/api-reference/pagination) list, ordered starting from the most # recently created subscription. For a full discussion of the subscription @@ -445,10 +465,9 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Internal::Page[Orb::Models::Subscription]) + status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Internal::Page[Orb::Subscription]) end def list( created_at_gt: nil, @@ -464,7 +483,9 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to cancel an existing subscription. It returns the # serialized subscription object with an `end_date` parameter that signifies when # the subscription will transition to an ended state. @@ -529,12 +550,11 @@ module Orb sig do params( subscription_id: String, - cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, + cancel_option: Orb::SubscriptionCancelParams::CancelOption::OrSymbol, allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionCancelResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionCancelResponse) end def cancel( subscription_id, @@ -548,11 +568,19 @@ module Orb # passed if the `cancel_option` is `requested_date`. cancellation_date: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch a [Subscription](/core-concepts##subscription) # given an identifier. - sig { params(subscription_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Subscription) } - def fetch(subscription_id, request_options: {}); end + sig do + params( + subscription_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Subscription) + end + def fetch(subscription_id, request_options: {}) + end # This endpoint is used to fetch a day-by-day snapshot of a subscription's costs # in Orb, calculated by applying pricing information to the underlying usage (see @@ -570,10 +598,10 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionFetchCostsResponse) + view_mode: + T.nilable(Orb::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionFetchCostsResponse) end def fetch_costs( subscription_id, @@ -589,7 +617,9 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + # This endpoint returns a [paginated](/api-reference/pagination) list of all plans # associated with a subscription along with their start and end dates. This list # contains the subscription's initial plan along with past and future plan @@ -603,9 +633,10 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Internal::Page[Orb::Models::SubscriptionFetchScheduleResponse] ) - .returns(Orb::Internal::Page[Orb::Models::SubscriptionFetchScheduleResponse]) end def fetch_schedule( subscription_id, @@ -619,7 +650,9 @@ module Orb start_date_lt: nil, start_date_lte: nil, request_options: {} - ); end + ) + end + # This endpoint is used to fetch a subscription's usage in Orb. Especially when # combined with optional query parameters, this endpoint is a powerful way to # build visualizations on top of Orb's event data and metrics. @@ -820,21 +853,22 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), + granularity: + T.nilable(Orb::SubscriptionFetchUsageParams::Granularity::OrSymbol), group_by: T.nilable(String), second_dimension_key: T.nilable(String), second_dimension_value: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), - request_options: Orb::RequestOpts - ) - .returns( - T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - ) + view_mode: + T.nilable(Orb::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: Orb::RequestOptions::OrHash + ).returns( + T.any( + Orb::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::SubscriptionUsage::GroupedSubscriptionUsage ) + ) end def fetch_usage( subscription_id, @@ -860,7 +894,9 @@ module Orb # behavior. view_mode: nil, request_options: {} - ); end + ) + end + # This endpoint is used to add and edit subscription # [price intervals](/api-reference/price-interval/add-or-edit-price-intervals). By # making modifications to a subscription’s price intervals, you can @@ -936,14 +972,19 @@ module Orb sig do params( subscription_id: String, - add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Internal::AnyHash)], - add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Internal::AnyHash)], + add: T::Array[Orb::SubscriptionPriceIntervalsParams::Add::OrHash], + add_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::OrHash + ], allow_invoice_credit_or_void: T.nilable(T::Boolean), - edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Internal::AnyHash)], - edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Internal::AnyHash)], - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionPriceIntervalsResponse) + edit: T::Array[Orb::SubscriptionPriceIntervalsParams::Edit::OrHash], + edit_adjustments: + T::Array[ + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::OrHash + ], + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionPriceIntervalsResponse) end def price_intervals( subscription_id, @@ -960,7 +1001,9 @@ module Orb # A list of adjustments to edit on the subscription. edit_adjustments: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to change an existing subscription's plan. It returns # the serialized updated subscription object. # @@ -1147,22 +1190,30 @@ module Orb sig do params( subscription_id: String, - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, - add_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Internal::AnyHash)] - ), - add_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Internal::AnyHash)] - ), + change_option: + Orb::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::OrHash + ] + ), + add_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::OrHash + ] + ), align_billing_with_plan_change_date: T.nilable(T::Boolean), auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), - billing_cycle_anchor_configuration: T.nilable( - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, - Orb::Internal::AnyHash - ) - ), + billing_cycle_alignment: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol + ), + billing_cycle_anchor_configuration: + T.nilable( + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration::OrHash + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -1176,23 +1227,34 @@ module Orb plan_id: T.nilable(String), plan_version_number: T.nilable(Integer), price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Internal::AnyHash)] - ), - remove_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Internal::AnyHash)] - ), - replace_adjustments: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Internal::AnyHash)] - ), - replace_prices: T.nilable( - T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Internal::AnyHash)] - ), + remove_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment::OrHash + ] + ), + remove_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::RemovePrice::OrHash + ] + ), + replace_adjustments: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::OrHash + ] + ), + replace_prices: + T.nilable( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::OrHash + ] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) end def schedule_plan_change( subscription_id, @@ -1279,7 +1341,9 @@ module Orb # subscription itself, or any of that customer's children. usage_customer_ids: nil, request_options: {} - ); end + ) + end + # Manually trigger a phase, effective the given date (or the current time, if not # specified). sig do @@ -1287,9 +1351,8 @@ module Orb subscription_id: String, allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionTriggerPhaseResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionTriggerPhaseResponse) end def trigger_phase( subscription_id, @@ -1301,7 +1364,9 @@ module Orb # to today in the customer's timezone. effective_date: nil, request_options: {} - ); end + ) + end + # This endpoint can be used to unschedule any pending cancellations for a # subscription. # @@ -1309,10 +1374,13 @@ module Orb # cancellation. This operation will turn on auto-renew, ensuring that the # subscription does not end at the currently scheduled cancellation time. sig do - params(subscription_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) + params( + subscription_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) + end + def unschedule_cancellation(subscription_id, request_options: {}) end - def unschedule_cancellation(subscription_id, request_options: {}); end # This endpoint can be used to clear scheduled updates to the quantity for a fixed # fee. @@ -1320,22 +1388,32 @@ module Orb # If there are no updates scheduled, a request validation error will be returned # with a 400 status code. sig do - params(subscription_id: String, price_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) + params( + subscription_id: String, + price_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse + ) end def unschedule_fixed_fee_quantity_updates( subscription_id, # Price for which the updates should be cleared. Must be a fixed fee. price_id:, request_options: {} - ); end + ) + end + # This endpoint can be used to unschedule any pending plan changes on an existing # subscription. sig do - params(subscription_id: String, request_options: Orb::RequestOpts) - .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) + params( + subscription_id: String, + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) + end + def unschedule_pending_plan_changes(subscription_id, request_options: {}) end - def unschedule_pending_plan_changes(subscription_id, request_options: {}); end # This endpoint can be used to update the quantity for a fixed fee. # @@ -1357,11 +1435,11 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, + change_option: + Orb::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) end def update_fixed_fee_quantity( subscription_id, @@ -1381,7 +1459,9 @@ module Orb # effective according to `change_option`. effective_date: nil, request_options: {} - ); end + ) + end + # This endpoint is used to update the trial end date for a subscription. The new # trial end date must be within the time range of the current plan (i.e. the new # trial end date must be on or after the subscription's start date on the current @@ -1403,11 +1483,14 @@ module Orb sig do params( subscription_id: String, - trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), + trial_end_date: + T.any( + Time, + Orb::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol + ), shift: T::Boolean, - request_options: Orb::RequestOpts - ) - .returns(Orb::Models::SubscriptionUpdateTrialResponse) + request_options: Orb::RequestOptions::OrHash + ).returns(Orb::Models::SubscriptionUpdateTrialResponse) end def update_trial( subscription_id, @@ -1418,10 +1501,13 @@ module Orb # durations, but adjusting their absolute dates). shift: nil, request_options: {} - ); end + ) + end + # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/rbi/orb/resources/top_level.rbi b/rbi/orb/resources/top_level.rbi index df687095..a798d78c 100644 --- a/rbi/orb/resources/top_level.rbi +++ b/rbi/orb/resources/top_level.rbi @@ -9,12 +9,18 @@ module Orb # is a great choice for connectors and integrations. # # This API does not have any side-effects or return any Orb resources. - sig { params(request_options: Orb::RequestOpts).returns(Orb::Models::TopLevelPingResponse) } - def ping(request_options: {}); end + sig do + params(request_options: Orb::RequestOptions::OrHash).returns( + Orb::Models::TopLevelPingResponse + ) + end + def ping(request_options: {}) + end # @api private sig { params(client: Orb::Client).returns(T.attached_class) } - def self.new(client:); end + def self.new(client:) + end end end end diff --git a/sig/orb/internal/page.rbs b/sig/orb/internal/page.rbs index 94e974b4..8435ff87 100644 --- a/sig/orb/internal/page.rbs +++ b/sig/orb/internal/page.rbs @@ -16,8 +16,6 @@ module Orb attr_accessor next_cursor: String? def initialize: (has_more: bool, next_cursor: String?) -> void - - def to_hash: -> pagination_metadata end end end diff --git a/sig/orb/internal/type/request_parameters.rbs b/sig/orb/internal/type/request_parameters.rbs index 8a280c44..eb04d2d0 100644 --- a/sig/orb/internal/type/request_parameters.rbs +++ b/sig/orb/internal/type/request_parameters.rbs @@ -4,7 +4,9 @@ module Orb type request_parameters = { request_options: Orb::request_opts } module RequestParameters - attr_accessor request_options: Orb::request_opts + attr_reader request_options: Orb::request_opts + + def request_options=: (Orb::request_opts) -> Orb::request_opts module Converter def dump_request: (top params) -> [top, ::Hash[Symbol, top]] diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 117e0781..c6fd1e11 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -5,13 +5,13 @@ module Orb id: String, created_at: Time, currency: String?, - customer: Orb::Models::Alert::Customer?, + customer: Orb::Alert::Customer?, enabled: bool, - metric: Orb::Models::Alert::Metric?, - plan: Orb::Models::Alert::Plan?, - subscription: Orb::Models::Alert::Subscription?, - thresholds: ::Array[Orb::Models::Alert::Threshold]?, - type: Orb::Models::Alert::type_ + metric: Orb::Alert::Metric?, + plan: Orb::Alert::Plan?, + subscription: Orb::Alert::Subscription?, + thresholds: ::Array[Orb::Alert::Threshold]?, + type: Orb::Alert::type_ } class Alert < Orb::Internal::Type::BaseModel @@ -21,35 +21,33 @@ module Orb attr_accessor currency: String? - attr_accessor customer: Orb::Models::Alert::Customer? + attr_accessor customer: Orb::Alert::Customer? attr_accessor enabled: bool - attr_accessor metric: Orb::Models::Alert::Metric? + attr_accessor metric: Orb::Alert::Metric? - attr_accessor plan: Orb::Models::Alert::Plan? + attr_accessor plan: Orb::Alert::Plan? - attr_accessor subscription: Orb::Models::Alert::Subscription? + attr_accessor subscription: Orb::Alert::Subscription? - attr_accessor thresholds: ::Array[Orb::Models::Alert::Threshold]? + attr_accessor thresholds: ::Array[Orb::Alert::Threshold]? - attr_accessor type: Orb::Models::Alert::type_ + attr_accessor type: Orb::Alert::type_ def initialize: ( id: String, created_at: Time, currency: String?, - customer: Orb::Models::Alert::Customer?, + customer: Orb::Alert::Customer?, enabled: bool, - metric: Orb::Models::Alert::Metric?, - plan: Orb::Models::Alert::Plan?, - subscription: Orb::Models::Alert::Subscription?, - thresholds: ::Array[Orb::Models::Alert::Threshold]?, - type: Orb::Models::Alert::type_ + metric: Orb::Alert::Metric?, + plan: Orb::Alert::Plan?, + subscription: Orb::Alert::Subscription?, + thresholds: ::Array[Orb::Alert::Threshold]?, + type: Orb::Alert::type_ ) -> void - def to_hash: -> Orb::Models::alert - type customer = { id: String, external_customer_id: String? } class Customer < Orb::Internal::Type::BaseModel @@ -58,8 +56,6 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::Alert::customer end type metric = { id: String } @@ -68,8 +64,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Alert::metric end type plan = @@ -95,8 +89,6 @@ module Orb name: String?, plan_version: String ) -> void - - def to_hash: -> Orb::Models::Alert::plan end type subscription = { id: String } @@ -105,8 +97,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Alert::subscription end type threshold = { value: Float } @@ -115,8 +105,6 @@ module Orb attr_accessor value: Float def initialize: (value: Float) -> void - - def to_hash: -> Orb::Models::Alert::threshold end type type_ = @@ -135,7 +123,7 @@ module Orb USAGE_EXCEEDED: :usage_exceeded COST_EXCEEDED: :cost_exceeded - def self?.values: -> ::Array[Orb::Models::Alert::type_] + def self?.values: -> ::Array[Orb::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 0786fa51..9b2ac4b7 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::AlertCreateForCustomerParams::Threshold]? } & Orb::Internal::Type::request_parameters @@ -16,17 +16,15 @@ module Orb attr_accessor type: Orb::Models::AlertCreateForCustomerParams::type_ - attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? + attr_accessor thresholds: ::Array[Orb::AlertCreateForCustomerParams::Threshold]? def initialize: ( currency: String, type: Orb::Models::AlertCreateForCustomerParams::type_, - ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?thresholds: ::Array[Orb::AlertCreateForCustomerParams::Threshold]?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::alert_create_for_customer_params - type type_ = :credit_balance_depleted | :credit_balance_dropped @@ -48,8 +46,6 @@ module Orb attr_accessor value: Float def initialize: (value: Float) -> void - - def to_hash: -> Orb::Models::AlertCreateForCustomerParams::threshold end end end diff --git a/sig/orb/models/alert_create_for_external_customer_params.rbs b/sig/orb/models/alert_create_for_external_customer_params.rbs index f6276280..50d01f2c 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::AlertCreateForExternalCustomerParams::Threshold]? } & Orb::Internal::Type::request_parameters @@ -16,17 +16,15 @@ module Orb attr_accessor type: Orb::Models::AlertCreateForExternalCustomerParams::type_ - attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? + attr_accessor thresholds: ::Array[Orb::AlertCreateForExternalCustomerParams::Threshold]? def initialize: ( currency: String, type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?thresholds: ::Array[Orb::AlertCreateForExternalCustomerParams::Threshold]?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::alert_create_for_external_customer_params - type type_ = :credit_balance_depleted | :credit_balance_dropped @@ -48,8 +46,6 @@ module Orb attr_accessor value: Float def initialize: (value: Float) -> void - - def to_hash: -> Orb::Models::AlertCreateForExternalCustomerParams::threshold end end end diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index 4fe23e5e..1ac3892b 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::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, metric_id: String? } @@ -12,29 +12,25 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold] + attr_accessor thresholds: ::Array[Orb::AlertCreateForSubscriptionParams::Threshold] attr_accessor type: Orb::Models::AlertCreateForSubscriptionParams::type_ attr_accessor metric_id: String? def initialize: ( - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + thresholds: ::Array[Orb::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, ?metric_id: String?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::alert_create_for_subscription_params - type threshold = { value: Float } class Threshold < Orb::Internal::Type::BaseModel attr_accessor value: Float def initialize: (value: Float) -> void - - def to_hash: -> Orb::Models::AlertCreateForSubscriptionParams::threshold end type type_ = :usage_exceeded | :cost_exceeded diff --git a/sig/orb/models/alert_disable_params.rbs b/sig/orb/models/alert_disable_params.rbs index efc34a2e..ffc41cbe 100644 --- a/sig/orb/models/alert_disable_params.rbs +++ b/sig/orb/models/alert_disable_params.rbs @@ -13,8 +13,6 @@ module Orb ?subscription_id: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::alert_disable_params end end end diff --git a/sig/orb/models/alert_enable_params.rbs b/sig/orb/models/alert_enable_params.rbs index fb8958dc..800fab8e 100644 --- a/sig/orb/models/alert_enable_params.rbs +++ b/sig/orb/models/alert_enable_params.rbs @@ -13,8 +13,6 @@ module Orb ?subscription_id: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::alert_enable_params end end end diff --git a/sig/orb/models/alert_list_params.rbs b/sig/orb/models/alert_list_params.rbs index 2de249aa..094b7b40 100644 --- a/sig/orb/models/alert_list_params.rbs +++ b/sig/orb/models/alert_list_params.rbs @@ -50,8 +50,6 @@ module Orb ?subscription_id: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::alert_list_params end end end diff --git a/sig/orb/models/alert_retrieve_params.rbs b/sig/orb/models/alert_retrieve_params.rbs index f7737eaa..08594e1a 100644 --- a/sig/orb/models/alert_retrieve_params.rbs +++ b/sig/orb/models/alert_retrieve_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::alert_retrieve_params end end end diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index 701236d3..79647174 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -1,30 +1,26 @@ module Orb module Models type alert_update_params = - { thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] } + { thresholds: ::Array[Orb::AlertUpdateParams::Threshold] } & Orb::Internal::Type::request_parameters class AlertUpdateParams < Orb::Internal::Type::BaseModel extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] + attr_accessor thresholds: ::Array[Orb::AlertUpdateParams::Threshold] def initialize: ( - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + thresholds: ::Array[Orb::AlertUpdateParams::Threshold], ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::alert_update_params - type threshold = { value: Float } class Threshold < Orb::Internal::Type::BaseModel attr_accessor value: Float def initialize: (value: Float) -> void - - def to_hash: -> Orb::Models::AlertUpdateParams::threshold end end end diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 7417c2dd..8c8a5785 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -4,7 +4,7 @@ module Orb { amount_discount: String, applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::AmountDiscount::discount_type, + discount_type: Orb::AmountDiscount::discount_type, reason: String? } @@ -13,19 +13,17 @@ module Orb attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor discount_type: Orb::Models::AmountDiscount::discount_type + attr_accessor discount_type: Orb::AmountDiscount::discount_type attr_accessor reason: String? def initialize: ( amount_discount: String, applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::AmountDiscount::discount_type, + discount_type: Orb::AmountDiscount::discount_type, ?reason: String? ) -> void - def to_hash: -> Orb::Models::amount_discount - type discount_type = :amount module DiscountType @@ -33,7 +31,7 @@ module Orb AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] + def self?.values: -> ::Array[Orb::AmountDiscount::discount_type] end end end diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index dfbac702..d7c65c23 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -4,10 +4,10 @@ module Orb { id: String, description: String?, - item: Orb::Models::Item, + item: Orb::Item, metadata: ::Hash[Symbol, String], name: String, - status: Orb::Models::BillableMetric::status + status: Orb::BillableMetric::status } class BillableMetric < Orb::Internal::Type::BaseModel @@ -15,25 +15,23 @@ module Orb attr_accessor description: String? - attr_accessor item: Orb::Models::Item + attr_accessor item: Orb::Item attr_accessor metadata: ::Hash[Symbol, String] attr_accessor name: String - attr_accessor status: Orb::Models::BillableMetric::status + attr_accessor status: Orb::BillableMetric::status def initialize: ( id: String, description: String?, - item: Orb::Models::Item, + item: Orb::Item, metadata: ::Hash[Symbol, String], name: String, - status: Orb::Models::BillableMetric::status + status: Orb::BillableMetric::status ) -> void - def to_hash: -> Orb::Models::billable_metric - type status = :active | :draft | :archived module Status @@ -43,7 +41,7 @@ module Orb DRAFT: :draft ARCHIVED: :archived - def self?.values: -> ::Array[Orb::Models::BillableMetric::status] + def self?.values: -> ::Array[Orb::BillableMetric::status] end end end diff --git a/sig/orb/models/coupon.rbs b/sig/orb/models/coupon.rbs index 9bc13ce7..536db666 100644 --- a/sig/orb/models/coupon.rbs +++ b/sig/orb/models/coupon.rbs @@ -4,7 +4,7 @@ module Orb { id: String, archived_at: Time?, - discount: Orb::Models::Coupon::discount, + discount: Orb::Coupon::discount, duration_in_months: Integer?, max_redemptions: Integer?, redemption_code: String, @@ -16,7 +16,7 @@ module Orb attr_accessor archived_at: Time? - attr_accessor discount: Orb::Models::Coupon::discount + attr_accessor discount: Orb::Coupon::discount attr_accessor duration_in_months: Integer? @@ -29,22 +29,19 @@ module Orb def initialize: ( id: String, archived_at: Time?, - discount: Orb::Models::Coupon::discount, + discount: Orb::Coupon::discount, duration_in_months: Integer?, max_redemptions: Integer?, redemption_code: String, times_redeemed: Integer ) -> void - def to_hash: -> Orb::Models::coupon - - type discount = - Orb::Models::PercentageDiscount | Orb::Models::AmountDiscount + type discount = Orb::PercentageDiscount | Orb::AmountDiscount module Discount extend Orb::Internal::Type::Union - def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] + def self?.variants: -> ::Array[Orb::Coupon::discount] end end end diff --git a/sig/orb/models/coupon_archive_params.rbs b/sig/orb/models/coupon_archive_params.rbs index e6b45c95..2d8e6dac 100644 --- a/sig/orb/models/coupon_archive_params.rbs +++ b/sig/orb/models/coupon_archive_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::coupon_archive_params end end end diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index 8d74054b..ce988cb0 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -29,11 +29,9 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::coupon_create_params - type discount = - Orb::Models::CouponCreateParams::Discount::Percentage - | Orb::Models::CouponCreateParams::Discount::Amount + Orb::CouponCreateParams::Discount::Percentage + | Orb::CouponCreateParams::Discount::Amount module Discount extend Orb::Internal::Type::Union @@ -50,8 +48,6 @@ module Orb percentage_discount: Float, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::CouponCreateParams::Discount::percentage end type amount = { amount_discount: String, discount_type: :amount } @@ -65,11 +61,9 @@ module Orb amount_discount: String, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::CouponCreateParams::Discount::amount end - def self?.variants: -> [Orb::Models::CouponCreateParams::Discount::Percentage, Orb::Models::CouponCreateParams::Discount::Amount] + def self?.variants: -> ::Array[Orb::Models::CouponCreateParams::discount] end end end diff --git a/sig/orb/models/coupon_fetch_params.rbs b/sig/orb/models/coupon_fetch_params.rbs index a7e81cb2..7234fafa 100644 --- a/sig/orb/models/coupon_fetch_params.rbs +++ b/sig/orb/models/coupon_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::coupon_fetch_params end end end diff --git a/sig/orb/models/coupon_list_params.rbs b/sig/orb/models/coupon_list_params.rbs index 4387c0a9..ee879c1a 100644 --- a/sig/orb/models/coupon_list_params.rbs +++ b/sig/orb/models/coupon_list_params.rbs @@ -30,8 +30,6 @@ module Orb ?show_archived: bool?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::coupon_list_params end end end diff --git a/sig/orb/models/coupons/subscription_list_params.rbs b/sig/orb/models/coupons/subscription_list_params.rbs index 8e4b9ea7..0255361f 100644 --- a/sig/orb/models/coupons/subscription_list_params.rbs +++ b/sig/orb/models/coupons/subscription_list_params.rbs @@ -20,8 +20,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Coupons::subscription_list_params end end end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 1e2b682e..7cb0031c 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -6,18 +6,18 @@ module Orb created_at: Time, credit_note_number: String, credit_note_pdf: String?, - customer: Orb::Models::CreditNote::Customer, + customer: Orb::CreditNote::Customer, invoice_id: String, - line_items: ::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, + line_items: ::Array[Orb::CreditNote::LineItem], + maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment?, memo: String?, minimum_amount_refunded: String?, - reason: Orb::Models::CreditNote::reason?, + reason: Orb::CreditNote::reason?, subtotal: String, total: String, - type: Orb::Models::CreditNote::type_, + type: Orb::CreditNote::type_, voided_at: Time?, - discounts: ::Array[Orb::Models::CreditNote::Discount] + discounts: ::Array[Orb::CreditNote::Discount] } class CreditNote < Orb::Internal::Type::BaseModel @@ -29,55 +29,53 @@ module Orb attr_accessor credit_note_pdf: String? - attr_accessor customer: Orb::Models::CreditNote::Customer + attr_accessor customer: Orb::CreditNote::Customer attr_accessor invoice_id: String - attr_accessor line_items: ::Array[Orb::Models::CreditNote::LineItem] + attr_accessor line_items: ::Array[Orb::CreditNote::LineItem] - attr_accessor maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment? + attr_accessor maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment? attr_accessor memo: String? attr_accessor minimum_amount_refunded: String? - attr_accessor reason: Orb::Models::CreditNote::reason? + attr_accessor reason: Orb::CreditNote::reason? attr_accessor subtotal: String attr_accessor total: String - attr_accessor type: Orb::Models::CreditNote::type_ + attr_accessor type: Orb::CreditNote::type_ attr_accessor voided_at: Time? - attr_reader discounts: ::Array[Orb::Models::CreditNote::Discount]? + attr_reader discounts: ::Array[Orb::CreditNote::Discount]? def discounts=: ( - ::Array[Orb::Models::CreditNote::Discount] - ) -> ::Array[Orb::Models::CreditNote::Discount] + ::Array[Orb::CreditNote::Discount] + ) -> ::Array[Orb::CreditNote::Discount] def initialize: ( id: String, created_at: Time, credit_note_number: String, credit_note_pdf: String?, - customer: Orb::Models::CreditNote::Customer, + customer: Orb::CreditNote::Customer, invoice_id: String, - line_items: ::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, + line_items: ::Array[Orb::CreditNote::LineItem], + maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment?, memo: String?, minimum_amount_refunded: String?, - reason: Orb::Models::CreditNote::reason?, + reason: Orb::CreditNote::reason?, subtotal: String, total: String, - type: Orb::Models::CreditNote::type_, + type: Orb::CreditNote::type_, voided_at: Time?, - ?discounts: ::Array[Orb::Models::CreditNote::Discount] + ?discounts: ::Array[Orb::CreditNote::Discount] ) -> void - def to_hash: -> Orb::Models::credit_note - type customer = { id: String, external_customer_id: String? } class Customer < Orb::Internal::Type::BaseModel @@ -86,8 +84,6 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::CreditNote::customer end type line_item = @@ -98,8 +94,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::CreditNote::LineItem::TaxAmount], + discounts: ::Array[Orb::CreditNote::LineItem::Discount] } class LineItem < Orb::Internal::Type::BaseModel @@ -115,13 +111,13 @@ module Orb attr_accessor subtotal: String - attr_accessor tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount] + attr_accessor tax_amounts: ::Array[Orb::CreditNote::LineItem::TaxAmount] - attr_reader discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount]? + attr_reader discounts: ::Array[Orb::CreditNote::LineItem::Discount]? def discounts=: ( - ::Array[Orb::Models::CreditNote::LineItem::Discount] - ) -> ::Array[Orb::Models::CreditNote::LineItem::Discount] + ::Array[Orb::CreditNote::LineItem::Discount] + ) -> ::Array[Orb::CreditNote::LineItem::Discount] def initialize: ( id: String, @@ -130,12 +126,10 @@ 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::CreditNote::LineItem::TaxAmount], + ?discounts: ::Array[Orb::CreditNote::LineItem::Discount] ) -> void - def to_hash: -> Orb::Models::CreditNote::line_item - type tax_amount = { amount: String, @@ -155,8 +149,6 @@ module Orb tax_rate_description: String, tax_rate_percentage: String? ) -> void - - def to_hash: -> Orb::Models::CreditNote::LineItem::tax_amount end type discount = @@ -164,7 +156,7 @@ module Orb id: String, amount_applied: String, applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, + discount_type: Orb::CreditNote::LineItem::Discount::discount_type, percentage_discount: Float, amount_discount: String?, reason: String? @@ -177,7 +169,7 @@ module Orb attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type + attr_accessor discount_type: Orb::CreditNote::LineItem::Discount::discount_type attr_accessor percentage_discount: Float @@ -189,14 +181,12 @@ module Orb id: String, amount_applied: String, applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, + discount_type: Orb::CreditNote::LineItem::Discount::discount_type, percentage_discount: Float, ?amount_discount: String?, ?reason: String? ) -> void - def to_hash: -> Orb::Models::CreditNote::LineItem::discount - type discount_type = :percentage | :amount module DiscountType @@ -205,7 +195,7 @@ module Orb PERCENTAGE: :percentage AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] + def self?.values: -> ::Array[Orb::CreditNote::LineItem::Discount::discount_type] end end end @@ -213,33 +203,31 @@ module Orb type maximum_amount_adjustment = { amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, + discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type, percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, reason: String? } class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel attr_accessor amount_applied: String - attr_accessor discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type + attr_accessor discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type attr_accessor percentage_discount: Float - attr_accessor applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]? + attr_accessor applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]? attr_accessor reason: String? def initialize: ( amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, + discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type, percentage_discount: Float, - ?applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + ?applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, ?reason: String? ) -> void - def to_hash: -> Orb::Models::CreditNote::maximum_amount_adjustment - type discount_type = :percentage module DiscountType @@ -247,7 +235,7 @@ module Orb PERCENTAGE: :percentage - def self?.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] + def self?.values: -> ::Array[Orb::CreditNote::MaximumAmountAdjustment::discount_type] end type applies_to_price = { id: String, name: String } @@ -258,8 +246,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price end end @@ -274,7 +260,7 @@ module Orb ORDER_CHANGE: :"Order change" PRODUCT_UNSATISFACTORY: :"Product unsatisfactory" - def self?.values: -> ::Array[Orb::Models::CreditNote::reason] + def self?.values: -> ::Array[Orb::CreditNote::reason] end type type_ = :refund | :adjustment @@ -285,39 +271,37 @@ module Orb REFUND: :refund ADJUSTMENT: :adjustment - def self?.values: -> ::Array[Orb::Models::CreditNote::type_] + def self?.values: -> ::Array[Orb::CreditNote::type_] end type discount = { amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::discount_type, + discount_type: Orb::CreditNote::Discount::discount_type, percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]?, reason: String? } class Discount < Orb::Internal::Type::BaseModel attr_accessor amount_applied: String - attr_accessor discount_type: Orb::Models::CreditNote::Discount::discount_type + attr_accessor discount_type: Orb::CreditNote::Discount::discount_type attr_accessor percentage_discount: Float - attr_accessor applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]? + attr_accessor applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]? attr_accessor reason: String? def initialize: ( amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::discount_type, + discount_type: Orb::CreditNote::Discount::discount_type, percentage_discount: Float, - ?applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + ?applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]?, ?reason: String? ) -> void - def to_hash: -> Orb::Models::CreditNote::discount - type discount_type = :percentage module DiscountType @@ -325,7 +309,7 @@ module Orb PERCENTAGE: :percentage - def self?.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] + def self?.values: -> ::Array[Orb::CreditNote::Discount::discount_type] end type applies_to_price = { id: String, name: String } @@ -336,8 +320,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::CreditNote::Discount::applies_to_price end end end diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index d7c43134..7fca5463 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::CreditNoteCreateParams::LineItem], memo: String?, reason: Orb::Models::CreditNoteCreateParams::reason? } @@ -12,21 +12,19 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem] + attr_accessor line_items: ::Array[Orb::CreditNoteCreateParams::LineItem] attr_accessor memo: String? attr_accessor reason: Orb::Models::CreditNoteCreateParams::reason? def initialize: ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: ::Array[Orb::CreditNoteCreateParams::LineItem], ?memo: String?, ?reason: Orb::Models::CreditNoteCreateParams::reason?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::credit_note_create_params - type line_item = { amount: String, invoice_line_item_id: String } class LineItem < Orb::Internal::Type::BaseModel @@ -35,8 +33,6 @@ module Orb attr_accessor invoice_line_item_id: String def initialize: (amount: String, invoice_line_item_id: String) -> void - - def to_hash: -> Orb::Models::CreditNoteCreateParams::line_item end type reason = diff --git a/sig/orb/models/credit_note_fetch_params.rbs b/sig/orb/models/credit_note_fetch_params.rbs index 8c86a78b..a0815ffd 100644 --- a/sig/orb/models/credit_note_fetch_params.rbs +++ b/sig/orb/models/credit_note_fetch_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::credit_note_fetch_params end end end diff --git a/sig/orb/models/credit_note_list_params.rbs b/sig/orb/models/credit_note_list_params.rbs index 96ae3599..6ed3dab6 100644 --- a/sig/orb/models/credit_note_list_params.rbs +++ b/sig/orb/models/credit_note_list_params.rbs @@ -38,8 +38,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::credit_note_list_params end end end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 8f0dd240..dd003a04 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -6,24 +6,24 @@ module Orb additional_emails: ::Array[String], auto_collection: bool, balance: String, - billing_address: Orb::Models::Customer::BillingAddress?, + billing_address: Orb::Customer::BillingAddress?, created_at: Time, currency: String?, email: String, email_delivery: bool, exempt_from_automated_tax: bool?, external_customer_id: String?, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ::Hash[Symbol, String], name: String, - payment_provider: Orb::Models::Customer::payment_provider?, + payment_provider: Orb::Customer::payment_provider?, payment_provider_id: String?, portal_url: String?, - shipping_address: Orb::Models::Customer::ShippingAddress?, - tax_id: Orb::Models::Customer::TaxID?, + shipping_address: Orb::Customer::ShippingAddress?, + tax_id: Orb::Customer::TaxID?, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration? + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?, + reporting_configuration: Orb::Customer::ReportingConfiguration? } class Customer < Orb::Internal::Type::BaseModel @@ -35,7 +35,7 @@ module Orb attr_accessor balance: String - attr_accessor billing_address: Orb::Models::Customer::BillingAddress? + attr_accessor billing_address: Orb::Customer::BillingAddress? attr_accessor created_at: Time @@ -49,55 +49,53 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor hierarchy: Orb::Models::Customer::Hierarchy + attr_accessor hierarchy: Orb::Customer::Hierarchy attr_accessor metadata: ::Hash[Symbol, String] attr_accessor name: String - attr_accessor payment_provider: Orb::Models::Customer::payment_provider? + attr_accessor payment_provider: Orb::Customer::payment_provider? attr_accessor payment_provider_id: String? attr_accessor portal_url: String? - attr_accessor shipping_address: Orb::Models::Customer::ShippingAddress? + attr_accessor shipping_address: Orb::Customer::ShippingAddress? - attr_accessor tax_id: Orb::Models::Customer::TaxID? + attr_accessor tax_id: Orb::Customer::TaxID? attr_accessor timezone: String - attr_accessor accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration? + attr_accessor accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration? - attr_accessor reporting_configuration: Orb::Models::Customer::ReportingConfiguration? + attr_accessor reporting_configuration: Orb::Customer::ReportingConfiguration? def initialize: ( id: String, additional_emails: ::Array[String], auto_collection: bool, balance: String, - billing_address: Orb::Models::Customer::BillingAddress?, + billing_address: Orb::Customer::BillingAddress?, created_at: Time, currency: String?, email: String, email_delivery: bool, exempt_from_automated_tax: bool?, external_customer_id: String?, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ::Hash[Symbol, String], name: String, - payment_provider: Orb::Models::Customer::payment_provider?, + payment_provider: Orb::Customer::payment_provider?, payment_provider_id: String?, portal_url: String?, - shipping_address: Orb::Models::Customer::ShippingAddress?, - tax_id: Orb::Models::Customer::TaxID?, + shipping_address: Orb::Customer::ShippingAddress?, + tax_id: Orb::Customer::TaxID?, timezone: String, - ?accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, - ?reporting_configuration: Orb::Models::Customer::ReportingConfiguration? + ?accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?, + ?reporting_configuration: Orb::Customer::ReportingConfiguration? ) -> void - def to_hash: -> Orb::Models::customer - type billing_address = { city: String?, @@ -129,28 +127,24 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::Customer::billing_address end type hierarchy = { - children: ::Array[Orb::Models::Customer::Hierarchy::Child], - parent: Orb::Models::Customer::Hierarchy::Parent? + children: ::Array[Orb::Customer::Hierarchy::Child], + parent: Orb::Customer::Hierarchy::Parent? } class Hierarchy < Orb::Internal::Type::BaseModel - attr_accessor children: ::Array[Orb::Models::Customer::Hierarchy::Child] + attr_accessor children: ::Array[Orb::Customer::Hierarchy::Child] - attr_accessor parent: Orb::Models::Customer::Hierarchy::Parent? + attr_accessor parent: Orb::Customer::Hierarchy::Parent? def initialize: ( - children: ::Array[Orb::Models::Customer::Hierarchy::Child], - parent: Orb::Models::Customer::Hierarchy::Parent? + children: ::Array[Orb::Customer::Hierarchy::Child], + parent: Orb::Customer::Hierarchy::Parent? ) -> void - def to_hash: -> Orb::Models::Customer::hierarchy - type child = { id: String, external_customer_id: String? } class Child < Orb::Internal::Type::BaseModel @@ -159,8 +153,6 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::Customer::Hierarchy::child end type parent = { id: String, external_customer_id: String? } @@ -171,8 +163,6 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::Customer::Hierarchy::parent end end @@ -188,7 +178,7 @@ module Orb STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self?.values: -> ::Array[Orb::Models::Customer::payment_provider] + def self?.values: -> ::Array[Orb::Customer::payment_provider] end type shipping_address = @@ -222,32 +212,28 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::Customer::shipping_address end type tax_id = { - country: Orb::Models::Customer::TaxID::country, - type: Orb::Models::Customer::TaxID::type_, + country: Orb::Customer::TaxID::country, + type: Orb::Customer::TaxID::type_, value: String } class TaxID < Orb::Internal::Type::BaseModel - attr_accessor country: Orb::Models::Customer::TaxID::country + attr_accessor country: Orb::Customer::TaxID::country - attr_accessor type: Orb::Models::Customer::TaxID::type_ + attr_accessor type: Orb::Customer::TaxID::type_ attr_accessor value: String def initialize: ( - country: Orb::Models::Customer::TaxID::country, - type: Orb::Models::Customer::TaxID::type_, + country: Orb::Customer::TaxID::country, + type: Orb::Customer::TaxID::type_, value: String ) -> void - def to_hash: -> Orb::Models::Customer::tax_id - type country = :AD | :AE @@ -410,7 +396,7 @@ module Orb VN: :VN ZA: :ZA - def self?.values: -> ::Array[Orb::Models::Customer::TaxID::country] + def self?.values: -> ::Array[Orb::Customer::TaxID::country] end type type_ = @@ -561,46 +547,42 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self?.values: -> ::Array[Orb::Models::Customer::TaxID::type_] + def self?.values: -> ::Array[Orb::Customer::TaxID::type_] end end type accounting_sync_configuration = { - accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: bool } class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - attr_accessor accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider] + attr_accessor accounting_providers: ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider] attr_accessor excluded: bool def initialize: ( - accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: bool ) -> void - def to_hash: -> Orb::Models::Customer::accounting_sync_configuration - type accounting_provider = { external_provider_id: String?, - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type + provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type } class AccountingProvider < Orb::Internal::Type::BaseModel attr_accessor external_provider_id: String? - attr_accessor provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type + attr_accessor provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type def initialize: ( external_provider_id: String?, - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type + provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type ) -> void - def to_hash: -> Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider - type provider_type = :quickbooks | :netsuite module ProviderType @@ -609,7 +591,7 @@ module Orb QUICKBOOKS: :quickbooks NETSUITE: :netsuite - def self?.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] + def self?.values: -> ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] end end end @@ -620,8 +602,6 @@ module Orb attr_accessor exempt: bool def initialize: (exempt: bool) -> void - - def to_hash: -> Orb::Models::Customer::reporting_configuration end end end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index e7ba434f..2a674b85 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -4,21 +4,21 @@ module Orb { email: String, name: String, - accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + accounting_sync_configuration: Orb::CustomerCreateParams::AccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, - billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + billing_address: Orb::CustomerCreateParams::BillingAddress?, currency: String?, email_delivery: bool?, external_customer_id: String?, - hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, + hierarchy: Orb::CustomerCreateParams::Hierarchy?, metadata: ::Hash[Symbol, String?]?, payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, + reporting_configuration: Orb::CustomerCreateParams::ReportingConfiguration?, + shipping_address: Orb::CustomerCreateParams::ShippingAddress?, tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - tax_id: Orb::Models::CustomerCreateParams::TaxID?, + tax_id: Orb::CustomerCreateParams::TaxID?, timezone: String? } & Orb::Internal::Type::request_parameters @@ -31,13 +31,13 @@ module Orb attr_accessor name: String - attr_accessor accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration? + attr_accessor accounting_sync_configuration: Orb::CustomerCreateParams::AccountingSyncConfiguration? attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? - attr_accessor billing_address: Orb::Models::CustomerCreateParams::BillingAddress? + attr_accessor billing_address: Orb::CustomerCreateParams::BillingAddress? attr_accessor currency: String? @@ -45,7 +45,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor hierarchy: Orb::Models::CustomerCreateParams::Hierarchy? + attr_accessor hierarchy: Orb::CustomerCreateParams::Hierarchy? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -53,58 +53,54 @@ module Orb attr_accessor payment_provider_id: String? - attr_accessor reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration? + attr_accessor reporting_configuration: Orb::CustomerCreateParams::ReportingConfiguration? - attr_accessor shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress? + attr_accessor shipping_address: Orb::CustomerCreateParams::ShippingAddress? attr_accessor tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration? - attr_accessor tax_id: Orb::Models::CustomerCreateParams::TaxID? + attr_accessor tax_id: Orb::CustomerCreateParams::TaxID? attr_accessor timezone: String? def initialize: ( email: String, name: String, - ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerCreateParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?billing_address: Orb::CustomerCreateParams::BillingAddress?, ?currency: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, + ?hierarchy: Orb::CustomerCreateParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerCreateParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerCreateParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?tax_id: Orb::CustomerCreateParams::TaxID?, ?timezone: String?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::customer_create_params - type accounting_sync_configuration = { - accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - attr_accessor accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - ?accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?accounting_providers: ::Array[Orb::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, ?excluded: bool? ) -> void - def to_hash: -> Orb::Models::CustomerCreateParams::accounting_sync_configuration - type accounting_provider = { external_provider_id: String, provider_type: String } @@ -117,8 +113,6 @@ module Orb external_provider_id: String, provider_type: String ) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider end end @@ -153,8 +147,6 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::billing_address end type hierarchy = @@ -171,8 +163,6 @@ module Orb ?child_customer_ids: ::Array[String], ?parent_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::hierarchy end type payment_provider = @@ -196,8 +186,6 @@ module Orb attr_accessor exempt: bool def initialize: (exempt: bool) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::reporting_configuration end type shipping_address = @@ -231,13 +219,11 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::shipping_address end type tax_configuration = - Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara - | Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar + Orb::CustomerCreateParams::TaxConfiguration::Avalara + | Orb::CustomerCreateParams::TaxConfiguration::Taxjar module TaxConfiguration extend Orb::Internal::Type::Union @@ -261,8 +247,6 @@ module Orb ?tax_exemption_code: String?, ?tax_provider: :avalara ) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::avalara end type taxjar = { tax_exempt: bool, tax_provider: :taxjar } @@ -273,35 +257,31 @@ module Orb attr_accessor tax_provider: :taxjar def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void - - def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::taxjar end - def self?.variants: -> [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar] + def self?.variants: -> ::Array[Orb::Models::CustomerCreateParams::tax_configuration] end type tax_id = { - country: Orb::Models::CustomerCreateParams::TaxID::country, - type: Orb::Models::CustomerCreateParams::TaxID::type_, + country: Orb::CustomerCreateParams::TaxID::country, + type: Orb::CustomerCreateParams::TaxID::type_, value: String } class TaxID < Orb::Internal::Type::BaseModel - attr_accessor country: Orb::Models::CustomerCreateParams::TaxID::country + attr_accessor country: Orb::CustomerCreateParams::TaxID::country - attr_accessor type: Orb::Models::CustomerCreateParams::TaxID::type_ + attr_accessor type: Orb::CustomerCreateParams::TaxID::type_ attr_accessor value: String def initialize: ( - country: Orb::Models::CustomerCreateParams::TaxID::country, - type: Orb::Models::CustomerCreateParams::TaxID::type_, + country: Orb::CustomerCreateParams::TaxID::country, + type: Orb::CustomerCreateParams::TaxID::type_, value: String ) -> void - def to_hash: -> Orb::Models::CustomerCreateParams::tax_id - type country = :AD | :AE @@ -464,7 +444,7 @@ module Orb VN: :VN ZA: :ZA - def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] + def self?.values: -> ::Array[Orb::CustomerCreateParams::TaxID::country] end type type_ = @@ -615,7 +595,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::CustomerCreateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_delete_params.rbs b/sig/orb/models/customer_delete_params.rbs index 21b65026..9163e05c 100644 --- a/sig/orb/models/customer_delete_params.rbs +++ b/sig/orb/models/customer_delete_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::customer_delete_params end end end diff --git a/sig/orb/models/customer_fetch_by_external_id_params.rbs b/sig/orb/models/customer_fetch_by_external_id_params.rbs index 60058d54..ae6604f8 100644 --- a/sig/orb/models/customer_fetch_by_external_id_params.rbs +++ b/sig/orb/models/customer_fetch_by_external_id_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::customer_fetch_by_external_id_params end end end diff --git a/sig/orb/models/customer_fetch_params.rbs b/sig/orb/models/customer_fetch_params.rbs index 37cab132..43994fbe 100644 --- a/sig/orb/models/customer_fetch_params.rbs +++ b/sig/orb/models/customer_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::customer_fetch_params end end end diff --git a/sig/orb/models/customer_list_params.rbs b/sig/orb/models/customer_list_params.rbs index 041bfe05..88cb4925 100644 --- a/sig/orb/models/customer_list_params.rbs +++ b/sig/orb/models/customer_list_params.rbs @@ -38,8 +38,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::customer_list_params end end end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs index a39eedbf..2abdfb00 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params end end end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs index ef0de80d..f2b31a19 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_params end end end diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index 74288221..bd8be227 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -2,23 +2,23 @@ module Orb module Models type customer_update_by_external_id_params = { - accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + accounting_sync_configuration: Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + billing_address: Orb::CustomerUpdateByExternalIDParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, + hierarchy: Orb::CustomerUpdateByExternalIDParams::Hierarchy?, metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, + reporting_configuration: Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration?, + shipping_address: Orb::CustomerUpdateByExternalIDParams::ShippingAddress?, tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID? + tax_id: Orb::CustomerUpdateByExternalIDParams::TaxID? } & Orb::Internal::Type::request_parameters @@ -26,13 +26,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration? + attr_accessor accounting_sync_configuration: Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration? attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? - attr_accessor billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress? + attr_accessor billing_address: Orb::CustomerUpdateByExternalIDParams::BillingAddress? attr_accessor currency: String? @@ -42,7 +42,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy? + attr_accessor hierarchy: Orb::CustomerUpdateByExternalIDParams::Hierarchy? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -52,55 +52,51 @@ module Orb attr_accessor payment_provider_id: String? - attr_accessor reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration? + attr_accessor reporting_configuration: Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration? - attr_accessor shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress? + attr_accessor shipping_address: Orb::CustomerUpdateByExternalIDParams::ShippingAddress? attr_accessor tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration? - attr_accessor tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID? + attr_accessor tax_id: Orb::CustomerUpdateByExternalIDParams::TaxID? def initialize: ( - ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?billing_address: Orb::CustomerUpdateByExternalIDParams::BillingAddress?, ?currency: String?, ?email: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, + ?hierarchy: Orb::CustomerUpdateByExternalIDParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?name: String?, ?payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerUpdateByExternalIDParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?tax_id: Orb::CustomerUpdateByExternalIDParams::TaxID?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::customer_update_by_external_id_params - type accounting_sync_configuration = { - accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - attr_accessor accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - ?accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + ?accounting_providers: ::Array[Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, ?excluded: bool? ) -> void - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration - type accounting_provider = { external_provider_id: String, provider_type: String } @@ -113,8 +109,6 @@ module Orb external_provider_id: String, provider_type: String ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider end end @@ -149,8 +143,6 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::billing_address end type hierarchy = @@ -167,8 +159,6 @@ module Orb ?child_customer_ids: ::Array[String], ?parent_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::hierarchy end type payment_provider = @@ -192,8 +182,6 @@ module Orb attr_accessor exempt: bool def initialize: (exempt: bool) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration end type shipping_address = @@ -227,13 +215,11 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::shipping_address end type tax_configuration = - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara - | Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara + | Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar module TaxConfiguration extend Orb::Internal::Type::Union @@ -257,8 +243,6 @@ module Orb ?tax_exemption_code: String?, ?tax_provider: :avalara ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::avalara end type taxjar = { tax_exempt: bool, tax_provider: :taxjar } @@ -269,35 +253,31 @@ module Orb attr_accessor tax_provider: :taxjar def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void - - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::taxjar end - def self?.variants: -> [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar] + def self?.variants: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration] end type tax_id = { - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, + country: Orb::CustomerUpdateByExternalIDParams::TaxID::country, + type: Orb::CustomerUpdateByExternalIDParams::TaxID::type_, value: String } class TaxID < Orb::Internal::Type::BaseModel - attr_accessor country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country + attr_accessor country: Orb::CustomerUpdateByExternalIDParams::TaxID::country - attr_accessor type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_ + attr_accessor type: Orb::CustomerUpdateByExternalIDParams::TaxID::type_ attr_accessor value: String def initialize: ( - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, + country: Orb::CustomerUpdateByExternalIDParams::TaxID::country, + type: Orb::CustomerUpdateByExternalIDParams::TaxID::type_, value: String ) -> void - def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::tax_id - type country = :AD | :AE @@ -460,7 +440,7 @@ module Orb VN: :VN ZA: :ZA - def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] + def self?.values: -> ::Array[Orb::CustomerUpdateByExternalIDParams::TaxID::country] end type type_ = @@ -611,7 +591,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::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 b0736b5a..6ff2a54f 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -2,23 +2,23 @@ module Orb module Models type customer_update_params = { - accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + accounting_sync_configuration: Orb::CustomerUpdateParams::AccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + billing_address: Orb::CustomerUpdateParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, + hierarchy: Orb::CustomerUpdateParams::Hierarchy?, metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, + reporting_configuration: Orb::CustomerUpdateParams::ReportingConfiguration?, + shipping_address: Orb::CustomerUpdateParams::ShippingAddress?, tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateParams::TaxID? + tax_id: Orb::CustomerUpdateParams::TaxID? } & Orb::Internal::Type::request_parameters @@ -26,13 +26,13 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration? + attr_accessor accounting_sync_configuration: Orb::CustomerUpdateParams::AccountingSyncConfiguration? attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? - attr_accessor billing_address: Orb::Models::CustomerUpdateParams::BillingAddress? + attr_accessor billing_address: Orb::CustomerUpdateParams::BillingAddress? attr_accessor currency: String? @@ -42,7 +42,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy? + attr_accessor hierarchy: Orb::CustomerUpdateParams::Hierarchy? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -52,55 +52,51 @@ module Orb attr_accessor payment_provider_id: String? - attr_accessor reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration? + attr_accessor reporting_configuration: Orb::CustomerUpdateParams::ReportingConfiguration? - attr_accessor shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress? + attr_accessor shipping_address: Orb::CustomerUpdateParams::ShippingAddress? attr_accessor tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration? - attr_accessor tax_id: Orb::Models::CustomerUpdateParams::TaxID? + attr_accessor tax_id: Orb::CustomerUpdateParams::TaxID? def initialize: ( - ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerUpdateParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?billing_address: Orb::CustomerUpdateParams::BillingAddress?, ?currency: String?, ?email: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, + ?hierarchy: Orb::CustomerUpdateParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?name: String?, ?payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerUpdateParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerUpdateParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?tax_id: Orb::CustomerUpdateParams::TaxID?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::customer_update_params - type accounting_sync_configuration = { - accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel - attr_accessor accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - ?accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?accounting_providers: ::Array[Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, ?excluded: bool? ) -> void - def to_hash: -> Orb::Models::CustomerUpdateParams::accounting_sync_configuration - type accounting_provider = { external_provider_id: String, provider_type: String } @@ -113,8 +109,6 @@ module Orb external_provider_id: String, provider_type: String ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider end end @@ -149,8 +143,6 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::billing_address end type hierarchy = @@ -167,8 +159,6 @@ module Orb ?child_customer_ids: ::Array[String], ?parent_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::hierarchy end type payment_provider = @@ -192,8 +182,6 @@ module Orb attr_accessor exempt: bool def initialize: (exempt: bool) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::reporting_configuration end type shipping_address = @@ -227,13 +215,11 @@ module Orb ?postal_code: String?, ?state: String? ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::shipping_address end type tax_configuration = - Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara - | Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar + Orb::CustomerUpdateParams::TaxConfiguration::Avalara + | Orb::CustomerUpdateParams::TaxConfiguration::Taxjar module TaxConfiguration extend Orb::Internal::Type::Union @@ -257,8 +243,6 @@ module Orb ?tax_exemption_code: String?, ?tax_provider: :avalara ) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::avalara end type taxjar = { tax_exempt: bool, tax_provider: :taxjar } @@ -269,35 +253,31 @@ module Orb attr_accessor tax_provider: :taxjar def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void - - def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::taxjar end - def self?.variants: -> [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar] + def self?.variants: -> ::Array[Orb::Models::CustomerUpdateParams::tax_configuration] end type tax_id = { - country: Orb::Models::CustomerUpdateParams::TaxID::country, - type: Orb::Models::CustomerUpdateParams::TaxID::type_, + country: Orb::CustomerUpdateParams::TaxID::country, + type: Orb::CustomerUpdateParams::TaxID::type_, value: String } class TaxID < Orb::Internal::Type::BaseModel - attr_accessor country: Orb::Models::CustomerUpdateParams::TaxID::country + attr_accessor country: Orb::CustomerUpdateParams::TaxID::country - attr_accessor type: Orb::Models::CustomerUpdateParams::TaxID::type_ + attr_accessor type: Orb::CustomerUpdateParams::TaxID::type_ attr_accessor value: String def initialize: ( - country: Orb::Models::CustomerUpdateParams::TaxID::country, - type: Orb::Models::CustomerUpdateParams::TaxID::type_, + country: Orb::CustomerUpdateParams::TaxID::country, + type: Orb::CustomerUpdateParams::TaxID::type_, value: String ) -> void - def to_hash: -> Orb::Models::CustomerUpdateParams::tax_id - type country = :AD | :AE @@ -460,7 +440,7 @@ module Orb VN: :VN ZA: :ZA - def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] + def self?.values: -> ::Array[Orb::CustomerUpdateParams::TaxID::country] end type type_ = @@ -611,7 +591,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::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 509e1534..4f87add3 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -26,8 +26,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::balance_transaction_create_params - type type_ = :increment | :decrement module Type diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index 09f0b8d2..509495d0 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -49,8 +49,6 @@ module Orb type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ ) -> void - def to_hash: -> Orb::Models::Customers::balance_transaction_create_response - type action = :applied_to_invoice | :manual_adjustment @@ -84,8 +82,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note end type invoice = { id: String } @@ -94,8 +90,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::invoice end type type_ = :increment | :decrement diff --git a/sig/orb/models/customers/balance_transaction_list_params.rbs b/sig/orb/models/customers/balance_transaction_list_params.rbs index ee6d750a..1541d843 100644 --- a/sig/orb/models/customers/balance_transaction_list_params.rbs +++ b/sig/orb/models/customers/balance_transaction_list_params.rbs @@ -39,8 +39,6 @@ module Orb ?operation_time_lte: Time?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::balance_transaction_list_params end end end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 380162ac..0cd1887c 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -49,8 +49,6 @@ module Orb type: Orb::Models::Customers::BalanceTransactionListResponse::type_ ) -> void - def to_hash: -> Orb::Models::Customers::balance_transaction_list_response - type action = :applied_to_invoice | :manual_adjustment @@ -84,8 +82,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::credit_note end type invoice = { id: String } @@ -94,8 +90,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::invoice end type type_ = :increment | :decrement diff --git a/sig/orb/models/customers/cost_list_by_external_id_params.rbs b/sig/orb/models/customers/cost_list_by_external_id_params.rbs index eb846f32..8581373e 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 @@ -30,8 +30,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_params - type view_mode = :periodic | :cumulative module ViewMode 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 1bcc2b58..ff1e0ade 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 @@ -13,8 +13,6 @@ module Orb data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] ) -> void - def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_response - type data = { per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], @@ -43,8 +41,6 @@ module Orb total: String ) -> void - def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::data - type per_price_cost = { price: Orb::Models::price, @@ -72,8 +68,6 @@ module Orb total: String, ?quantity: Float? ) -> void - - def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 6550ce6e..b5755ee7 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -30,8 +30,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::cost_list_params - type view_mode = :periodic | :cumulative module ViewMode diff --git a/sig/orb/models/customers/cost_list_response.rbs b/sig/orb/models/customers/cost_list_response.rbs index dfc82485..e0004578 100644 --- a/sig/orb/models/customers/cost_list_response.rbs +++ b/sig/orb/models/customers/cost_list_response.rbs @@ -11,8 +11,6 @@ module Orb data: ::Array[Orb::Models::Customers::CostListResponse::Data] ) -> void - def to_hash: -> Orb::Models::Customers::cost_list_response - type data = { per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], @@ -41,8 +39,6 @@ module Orb total: String ) -> void - def to_hash: -> Orb::Models::Customers::CostListResponse::data - type per_price_cost = { price: Orb::Models::price, @@ -70,8 +66,6 @@ module Orb total: String, ?quantity: Float? ) -> void - - def to_hash: -> Orb::Models::Customers::CostListResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/customers/credit_list_by_external_id_params.rbs b/sig/orb/models/customers/credit_list_by_external_id_params.rbs index 23c4a5f8..83fe5659 100644 --- a/sig/orb/models/customers/credit_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credit_list_by_external_id_params.rbs @@ -33,8 +33,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_params end end end diff --git a/sig/orb/models/customers/credit_list_by_external_id_response.rbs b/sig/orb/models/customers/credit_list_by_external_id_response.rbs index 132f89fc..0ad93bca 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 @@ -37,8 +37,6 @@ module Orb status: Orb::Models::Customers::CreditListByExternalIDResponse::status ) -> void - def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_response - type status = :active | :pending_payment module Status diff --git a/sig/orb/models/customers/credit_list_params.rbs b/sig/orb/models/customers/credit_list_params.rbs index b82ec765..4f6c7ab3 100644 --- a/sig/orb/models/customers/credit_list_params.rbs +++ b/sig/orb/models/customers/credit_list_params.rbs @@ -33,8 +33,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::credit_list_params end end end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index c280952b..78514569 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -37,8 +37,6 @@ module Orb status: Orb::Models::Customers::CreditListResponse::status ) -> void - def to_hash: -> Orb::Models::Customers::credit_list_response - type status = :active | :pending_payment module Status 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 34223e81..0564b38b 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 @@ -10,7 +10,7 @@ module Orb description: String?, effective_date: Time?, expiry_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, + invoice_settings: Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, target_expiry_date: Date, @@ -35,7 +35,7 @@ module Orb attr_accessor expiry_date: Time? - attr_accessor invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings? + attr_accessor invoice_settings: Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -56,15 +56,13 @@ module Orb ?currency: String?, ?description: String?, ?effective_date: Time?, - ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, + ?invoice_settings: Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, ?metadata: ::Hash[Symbol, String?]?, ?per_unit_cost_basis: String?, ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params - type entry_type = :amendment module EntryType @@ -100,8 +98,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings end type void_reason = :refund diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs index c1e95309..35782f07 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 @@ -74,8 +74,6 @@ module Orb ?entry_type: :increment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -91,8 +89,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -106,8 +102,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment::customer end type entry_status = :committed | :pending @@ -194,8 +188,6 @@ module Orb ?entry_type: :decrement ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -211,8 +203,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::credit_block end type customer = { id: String, external_customer_id: String? } @@ -226,8 +216,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement::customer end type entry_status = :committed | :pending @@ -306,8 +294,6 @@ module Orb ?entry_type: :expiration_change ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -323,8 +309,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::credit_block end type customer = { id: String, external_customer_id: String? } @@ -338,8 +322,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange::customer end type entry_status = :committed | :pending @@ -414,8 +396,6 @@ module Orb ?entry_type: :credit_block_expiry ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -431,8 +411,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -446,8 +424,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry::customer end type entry_status = :committed | :pending @@ -530,8 +506,6 @@ module Orb ?entry_type: :void ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -547,8 +521,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::credit_block end type customer = { id: String, external_customer_id: String? } @@ -562,8 +534,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void::customer end type entry_status = :committed | :pending @@ -650,8 +620,6 @@ module Orb ?entry_type: :void_initiated ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -667,8 +635,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::credit_block end type customer = { id: String, external_customer_id: String? } @@ -682,8 +648,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated::customer end type entry_status = :committed | :pending @@ -758,8 +722,6 @@ module Orb ?entry_type: :amendment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -775,8 +737,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -790,8 +750,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment::customer end type entry_status = :committed | :pending @@ -806,7 +764,7 @@ module Orb end end - def self?.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Amendment] + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response] end 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 8eecc195..d15a0acc 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -10,7 +10,7 @@ module Orb description: String?, effective_date: Time?, expiry_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, + invoice_settings: Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, target_expiry_date: Date, @@ -35,7 +35,7 @@ module Orb attr_accessor expiry_date: Time? - attr_accessor invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings? + attr_accessor invoice_settings: Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -56,15 +56,13 @@ module Orb ?currency: String?, ?description: String?, ?effective_date: Time?, - ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, + ?invoice_settings: Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, ?metadata: ::Hash[Symbol, String?]?, ?per_unit_cost_basis: String?, ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_params - type entry_type = :amendment module EntryType @@ -100,8 +98,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings end type void_reason = :refund diff --git a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs index 408b7492..f3bf1187 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -74,8 +74,6 @@ module Orb ?entry_type: :increment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -91,8 +89,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -106,8 +102,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment::customer end type entry_status = :committed | :pending @@ -194,8 +188,6 @@ module Orb ?entry_type: :decrement ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -211,8 +203,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::credit_block end type customer = { id: String, external_customer_id: String? } @@ -226,8 +216,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement::customer end type entry_status = :committed | :pending @@ -306,8 +294,6 @@ module Orb ?entry_type: :expiration_change ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -323,8 +309,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::credit_block end type customer = { id: String, external_customer_id: String? } @@ -338,8 +322,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange::customer end type entry_status = :committed | :pending @@ -414,8 +396,6 @@ module Orb ?entry_type: :credit_block_expiry ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -431,8 +411,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -446,8 +424,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry::customer end type entry_status = :committed | :pending @@ -530,8 +506,6 @@ module Orb ?entry_type: :void ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -547,8 +521,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::credit_block end type customer = { id: String, external_customer_id: String? } @@ -562,8 +534,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void::customer end type entry_status = :committed | :pending @@ -650,8 +620,6 @@ module Orb ?entry_type: :void_initiated ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -667,8 +635,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::credit_block end type customer = { id: String, external_customer_id: String? } @@ -682,8 +648,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated::customer end type entry_status = :committed | :pending @@ -758,8 +722,6 @@ module Orb ?entry_type: :amendment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -775,8 +737,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -790,8 +750,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment::customer end type entry_status = :committed | :pending @@ -806,7 +764,7 @@ module Orb end end - def self?.variants: -> [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Decrement, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Void, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Amendment] + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::ledger_create_entry_response] end 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 3a796888..4c1baf85 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 @@ -57,8 +57,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::ledger_list_by_external_id_params - type entry_status = :committed | :pending module EntryStatus 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 84b411ad..cb9564cd 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 @@ -74,8 +74,6 @@ module Orb ?entry_type: :increment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -91,8 +89,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -106,8 +102,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::customer end type entry_status = :committed | :pending @@ -194,8 +188,6 @@ module Orb ?entry_type: :decrement ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -211,8 +203,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::credit_block end type customer = { id: String, external_customer_id: String? } @@ -226,8 +216,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::customer end type entry_status = :committed | :pending @@ -306,8 +294,6 @@ module Orb ?entry_type: :expiration_change ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -323,8 +309,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::credit_block end type customer = { id: String, external_customer_id: String? } @@ -338,8 +322,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::customer end type entry_status = :committed | :pending @@ -414,8 +396,6 @@ module Orb ?entry_type: :credit_block_expiry ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -431,8 +411,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -446,8 +424,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::customer end type entry_status = :committed | :pending @@ -530,8 +506,6 @@ module Orb ?entry_type: :void ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -547,8 +521,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::credit_block end type customer = { id: String, external_customer_id: String? } @@ -562,8 +534,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::customer end type entry_status = :committed | :pending @@ -650,8 +620,6 @@ module Orb ?entry_type: :void_initiated ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -667,8 +635,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::credit_block end type customer = { id: String, external_customer_id: String? } @@ -682,8 +648,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::customer end type entry_status = :committed | :pending @@ -758,8 +722,6 @@ module Orb ?entry_type: :amendment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -775,8 +737,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -790,8 +750,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::customer end type entry_status = :committed | :pending @@ -806,7 +764,7 @@ module Orb end end - def self?.variants: -> [Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment] + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] end 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 0942c709..5654fe61 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -57,8 +57,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::ledger_list_params - type entry_status = :committed | :pending module EntryStatus diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index fb1ccfdc..44e52ac0 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -74,8 +74,6 @@ module Orb ?entry_type: :increment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::increment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -91,8 +89,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Increment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -106,8 +102,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Increment::customer end type entry_status = :committed | :pending @@ -194,8 +188,6 @@ module Orb ?entry_type: :decrement ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::decrement - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -211,8 +203,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Decrement::credit_block end type customer = { id: String, external_customer_id: String? } @@ -226,8 +216,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Decrement::customer end type entry_status = :committed | :pending @@ -306,8 +294,6 @@ module Orb ?entry_type: :expiration_change ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::expiration_change - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -323,8 +309,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::credit_block end type customer = { id: String, external_customer_id: String? } @@ -338,8 +322,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::customer end type entry_status = :committed | :pending @@ -414,8 +396,6 @@ module Orb ?entry_type: :credit_block_expiry ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -431,8 +411,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -446,8 +424,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::customer end type entry_status = :committed | :pending @@ -530,8 +506,6 @@ module Orb ?entry_type: :void ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_ - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -547,8 +521,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Void::credit_block end type customer = { id: String, external_customer_id: String? } @@ -562,8 +534,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Void::customer end type entry_status = :committed | :pending @@ -650,8 +620,6 @@ module Orb ?entry_type: :void_initiated ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_initiated - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -667,8 +635,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::credit_block end type customer = { id: String, external_customer_id: String? } @@ -682,8 +648,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::customer end type entry_status = :committed | :pending @@ -758,8 +722,6 @@ module Orb ?entry_type: :amendment ) -> void - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::amendment - type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -775,8 +737,6 @@ module Orb expiry_date: Time?, per_unit_cost_basis: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Amendment::credit_block end type customer = { id: String, external_customer_id: String? } @@ -790,8 +750,6 @@ module Orb id: String, external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::Amendment::customer end type entry_status = :committed | :pending @@ -806,7 +764,7 @@ module Orb end end - def self?.variants: -> [Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment] + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::ledger_list_response] end 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 6106ffab..73183070 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 @@ -6,7 +6,7 @@ module Orb { amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, active_from: Time?, @@ -23,7 +23,7 @@ module Orb attr_accessor currency: String - attr_accessor invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings + attr_accessor invoice_settings: Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings attr_accessor per_unit_cost_basis: String @@ -38,7 +38,7 @@ module Orb def initialize: ( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, ?active_from: Time?, @@ -47,8 +47,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_params - type invoice_settings = { auto_collection: bool, @@ -74,8 +72,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs index 1990cd7b..e2921a55 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 @@ -42,8 +42,6 @@ module Orb ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_response - type invoice_settings = { auto_collection: bool, @@ -69,8 +67,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_params.rbs b/sig/orb/models/customers/credits/top_up_create_params.rbs index 46f6a139..f308de8f 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -6,7 +6,7 @@ module Orb { amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, active_from: Time?, @@ -23,7 +23,7 @@ module Orb attr_accessor currency: String - attr_accessor invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings + attr_accessor invoice_settings: Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings attr_accessor per_unit_cost_basis: String @@ -38,7 +38,7 @@ module Orb def initialize: ( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, ?active_from: Time?, @@ -47,8 +47,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_create_params - type invoice_settings = { auto_collection: bool, @@ -74,8 +72,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_response.rbs b/sig/orb/models/customers/credits/top_up_create_response.rbs index 65b6aa86..aafcec54 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -42,8 +42,6 @@ module Orb ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_create_response - type invoice_settings = { auto_collection: bool, @@ -69,8 +67,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs index 09b286b0..7cdb2765 100644 --- a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs @@ -16,8 +16,6 @@ module Orb external_customer_id: String, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_by_external_id_params end end end diff --git a/sig/orb/models/customers/credits/top_up_delete_params.rbs b/sig/orb/models/customers/credits/top_up_delete_params.rbs index 7e58eeff..6579b85c 100644 --- a/sig/orb/models/customers/credits/top_up_delete_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_params.rbs @@ -15,8 +15,6 @@ module Orb customer_id: String, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs index 303a9a95..a39da047 100644 --- a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs @@ -21,8 +21,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs index 7ef93a2a..bbafffb5 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 @@ -42,8 +42,6 @@ module Orb ?expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_response - type invoice_settings = { auto_collection: bool, @@ -69,8 +67,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_list_params.rbs b/sig/orb/models/customers/credits/top_up_list_params.rbs index 9cea9280..f6bc41aa 100644 --- a/sig/orb/models/customers/credits/top_up_list_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_params.rbs @@ -21,8 +21,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::top_up_list_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_response.rbs b/sig/orb/models/customers/credits/top_up_list_response.rbs index d2864b7e..466f7057 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -42,8 +42,6 @@ module Orb ?expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? ) -> void - def to_hash: -> Orb::Models::Customers::Credits::top_up_list_response - type invoice_settings = { auto_collection: bool, @@ -69,8 +67,6 @@ module Orb ?memo: String?, ?require_successful_payment: bool ) -> void - - def to_hash: -> Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/dimensional_price_group.rbs b/sig/orb/models/dimensional_price_group.rbs index fc0f3ad7..90e92ab8 100644 --- a/sig/orb/models/dimensional_price_group.rbs +++ b/sig/orb/models/dimensional_price_group.rbs @@ -31,8 +31,6 @@ module Orb metadata: ::Hash[Symbol, String], name: String ) -> void - - def to_hash: -> Orb::Models::dimensional_price_group end end end diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index 2a13e06a..04547d92 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -32,8 +32,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::dimensional_price_group_create_params end end end diff --git a/sig/orb/models/dimensional_price_group_list_params.rbs b/sig/orb/models/dimensional_price_group_list_params.rbs index e7528e38..16221224 100644 --- a/sig/orb/models/dimensional_price_group_list_params.rbs +++ b/sig/orb/models/dimensional_price_group_list_params.rbs @@ -19,8 +19,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::dimensional_price_group_list_params end end end diff --git a/sig/orb/models/dimensional_price_group_retrieve_params.rbs b/sig/orb/models/dimensional_price_group_retrieve_params.rbs index 5ce6728a..aacd28a5 100644 --- a/sig/orb/models/dimensional_price_group_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_group_retrieve_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::dimensional_price_group_retrieve_params end end end diff --git a/sig/orb/models/dimensional_price_groups.rbs b/sig/orb/models/dimensional_price_groups.rbs index 24fb8493..cbe49979 100644 --- a/sig/orb/models/dimensional_price_groups.rbs +++ b/sig/orb/models/dimensional_price_groups.rbs @@ -2,21 +2,19 @@ module Orb module Models type dimensional_price_groups_api = { - data: ::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata + data: ::Array[Orb::DimensionalPriceGroup], + pagination_metadata: Orb::PaginationMetadata } class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::DimensionalPriceGroup] + attr_accessor data: ::Array[Orb::DimensionalPriceGroup] - attr_accessor pagination_metadata: Orb::Models::PaginationMetadata + attr_accessor pagination_metadata: Orb::PaginationMetadata def initialize: ( - data: ::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata + data: ::Array[Orb::DimensionalPriceGroup], + pagination_metadata: Orb::PaginationMetadata ) -> void - - def to_hash: -> Orb::Models::dimensional_price_groups_api end end end diff --git a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs index 0d53b566..c0d7f7c3 100644 --- a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params end end end diff --git a/sig/orb/models/discount.rbs b/sig/orb/models/discount.rbs index 9c2e7b6f..9d14af0e 100644 --- a/sig/orb/models/discount.rbs +++ b/sig/orb/models/discount.rbs @@ -1,15 +1,15 @@ module Orb module Models type discount = - Orb::Models::PercentageDiscount - | Orb::Models::TrialDiscount - | Orb::Models::UsageDiscount - | Orb::Models::AmountDiscount + Orb::PercentageDiscount + | Orb::TrialDiscount + | Orb::UsageDiscount + | Orb::AmountDiscount module Discount extend Orb::Internal::Type::Union - def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + def self?.variants: -> ::Array[Orb::Models::discount] end end end diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index 2b411a21..54bdee07 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -3,31 +3,29 @@ module Orb type evaluate_price_group = { amount: String, - grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], + grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value], quantity: Float } class EvaluatePriceGroup < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value] + attr_accessor grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value] attr_accessor quantity: Float def initialize: ( amount: String, - grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], + grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value], quantity: Float ) -> void - def to_hash: -> Orb::Models::evaluate_price_group - type grouping_value = String | Float | bool module GroupingValue extend Orb::Internal::Type::Union - def self?.variants: -> [String, Float, bool] + def self?.variants: -> ::Array[Orb::EvaluatePriceGroup::grouping_value] end end end diff --git a/sig/orb/models/event_deprecate_params.rbs b/sig/orb/models/event_deprecate_params.rbs index cd8f646f..b0021973 100644 --- a/sig/orb/models/event_deprecate_params.rbs +++ b/sig/orb/models/event_deprecate_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::event_deprecate_params end end end diff --git a/sig/orb/models/event_deprecate_response.rbs b/sig/orb/models/event_deprecate_response.rbs index b84aff96..a47427fb 100644 --- a/sig/orb/models/event_deprecate_response.rbs +++ b/sig/orb/models/event_deprecate_response.rbs @@ -6,8 +6,6 @@ module Orb attr_accessor deprecated: String def initialize: (deprecated: String) -> void - - def to_hash: -> Orb::Models::event_deprecate_response end end end diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 2c296ca9..96814dd7 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::EventIngestParams::Event], backfill_id: String?, debug: bool } @@ -12,7 +12,7 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor events: ::Array[Orb::Models::EventIngestParams::Event] + attr_accessor events: ::Array[Orb::EventIngestParams::Event] attr_accessor backfill_id: String? @@ -21,14 +21,12 @@ module Orb def debug=: (bool) -> bool def initialize: ( - events: ::Array[Orb::Models::EventIngestParams::Event], + events: ::Array[Orb::EventIngestParams::Event], ?backfill_id: String?, ?debug: bool, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::event_ingest_params - type event = { event_name: String, @@ -60,8 +58,6 @@ module Orb ?customer_id: String?, ?external_customer_id: String? ) -> void - - def to_hash: -> Orb::Models::EventIngestParams::event end end end diff --git a/sig/orb/models/event_ingest_response.rbs b/sig/orb/models/event_ingest_response.rbs index 7d652f24..025b24a3 100644 --- a/sig/orb/models/event_ingest_response.rbs +++ b/sig/orb/models/event_ingest_response.rbs @@ -16,8 +16,6 @@ module Orb ?debug: Orb::Models::EventIngestResponse::Debug? ) -> void - def to_hash: -> Orb::Models::event_ingest_response - type validation_failed = { idempotency_key: String, validation_errors: ::Array[String] } @@ -30,8 +28,6 @@ module Orb idempotency_key: String, validation_errors: ::Array[String] ) -> void - - def to_hash: -> Orb::Models::EventIngestResponse::validation_failed end type debug = { duplicate: ::Array[String], ingested: ::Array[String] } @@ -45,8 +41,6 @@ module Orb duplicate: ::Array[String], ingested: ::Array[String] ) -> void - - def to_hash: -> Orb::Models::EventIngestResponse::debug end end end diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index b65dc772..759458d6 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -24,8 +24,6 @@ module Orb ?timeframe_start: Time?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::event_search_params end end end diff --git a/sig/orb/models/event_search_response.rbs b/sig/orb/models/event_search_response.rbs index 9b1d7303..1134f760 100644 --- a/sig/orb/models/event_search_response.rbs +++ b/sig/orb/models/event_search_response.rbs @@ -10,8 +10,6 @@ module Orb data: ::Array[Orb::Models::EventSearchResponse::Data] ) -> void - def to_hash: -> Orb::Models::event_search_response - type data = { id: String, @@ -47,8 +45,6 @@ module Orb properties: top, timestamp: Time ) -> void - - def to_hash: -> Orb::Models::EventSearchResponse::data end end end diff --git a/sig/orb/models/event_update_params.rbs b/sig/orb/models/event_update_params.rbs index 61143acf..cfd1ac31 100644 --- a/sig/orb/models/event_update_params.rbs +++ b/sig/orb/models/event_update_params.rbs @@ -32,8 +32,6 @@ module Orb ?external_customer_id: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::event_update_params end end end diff --git a/sig/orb/models/event_update_response.rbs b/sig/orb/models/event_update_response.rbs index c6ce29d4..ab35e170 100644 --- a/sig/orb/models/event_update_response.rbs +++ b/sig/orb/models/event_update_response.rbs @@ -6,8 +6,6 @@ module Orb attr_accessor amended: String def initialize: (amended: String) -> void - - def to_hash: -> Orb::Models::event_update_response end end end diff --git a/sig/orb/models/events/backfill_close_params.rbs b/sig/orb/models/events/backfill_close_params.rbs index 381c08c6..7bf2858b 100644 --- a/sig/orb/models/events/backfill_close_params.rbs +++ b/sig/orb/models/events/backfill_close_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::Events::backfill_close_params end end end diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index d891cc7c..5eba5695 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -53,8 +53,6 @@ module Orb ?deprecation_filter: String? ) -> void - def to_hash: -> Orb::Models::Events::backfill_close_response - type status = :pending | :reflected | :pending_revert | :reverted module Status diff --git a/sig/orb/models/events/backfill_create_params.rbs b/sig/orb/models/events/backfill_create_params.rbs index b775c3fc..9747aea8 100644 --- a/sig/orb/models/events/backfill_create_params.rbs +++ b/sig/orb/models/events/backfill_create_params.rbs @@ -43,8 +43,6 @@ module Orb ?replace_existing_events: bool, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Events::backfill_create_params end end end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index a68f2923..156f4195 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -53,8 +53,6 @@ module Orb ?deprecation_filter: String? ) -> void - def to_hash: -> Orb::Models::Events::backfill_create_response - type status = :pending | :reflected | :pending_revert | :reverted module Status diff --git a/sig/orb/models/events/backfill_fetch_params.rbs b/sig/orb/models/events/backfill_fetch_params.rbs index 04a7bc9d..b4a13e19 100644 --- a/sig/orb/models/events/backfill_fetch_params.rbs +++ b/sig/orb/models/events/backfill_fetch_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::Events::backfill_fetch_params end end end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index e4822c61..7100a71a 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -53,8 +53,6 @@ module Orb ?deprecation_filter: String? ) -> void - def to_hash: -> Orb::Models::Events::backfill_fetch_response - type status = :pending | :reflected | :pending_revert | :reverted module Status diff --git a/sig/orb/models/events/backfill_list_params.rbs b/sig/orb/models/events/backfill_list_params.rbs index 94bf5d6f..f938da13 100644 --- a/sig/orb/models/events/backfill_list_params.rbs +++ b/sig/orb/models/events/backfill_list_params.rbs @@ -20,8 +20,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Events::backfill_list_params end end end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index a80a6045..70b03008 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -53,8 +53,6 @@ module Orb ?deprecation_filter: String? ) -> void - def to_hash: -> Orb::Models::Events::backfill_list_response - type status = :pending | :reflected | :pending_revert | :reverted module Status diff --git a/sig/orb/models/events/backfill_revert_params.rbs b/sig/orb/models/events/backfill_revert_params.rbs index efffe316..acd6f564 100644 --- a/sig/orb/models/events/backfill_revert_params.rbs +++ b/sig/orb/models/events/backfill_revert_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::Events::backfill_revert_params end end end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 40d2a66d..6d927662 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -53,8 +53,6 @@ module Orb ?deprecation_filter: String? ) -> void - def to_hash: -> Orb::Models::Events::backfill_revert_response - type status = :pending | :reflected | :pending_revert | :reverted module Status diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index 8e74f896..9c0b3cf7 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -3,17 +3,12 @@ module Orb class EventVolumes = Events::EventVolumes module Events - type event_volumes = - { data: ::Array[Orb::Models::Events::EventVolumes::Data] } + type event_volumes = { data: ::Array[Orb::Events::EventVolumes::Data] } class EventVolumes < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::Events::EventVolumes::Data] + attr_accessor data: ::Array[Orb::Events::EventVolumes::Data] - def initialize: ( - data: ::Array[Orb::Models::Events::EventVolumes::Data] - ) -> void - - def to_hash: -> Orb::Models::Events::event_volumes + def initialize: (data: ::Array[Orb::Events::EventVolumes::Data]) -> void type data = { count: Integer, timeframe_end: Time, timeframe_start: Time } @@ -30,8 +25,6 @@ module Orb timeframe_end: Time, timeframe_start: Time ) -> void - - def to_hash: -> Orb::Models::Events::EventVolumes::data end end end diff --git a/sig/orb/models/events/volume_list_params.rbs b/sig/orb/models/events/volume_list_params.rbs index 25950928..184cf1ff 100644 --- a/sig/orb/models/events/volume_list_params.rbs +++ b/sig/orb/models/events/volume_list_params.rbs @@ -33,8 +33,6 @@ module Orb ?timeframe_end: Time, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Events::volume_list_params end end end diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index 2cab295b..90494776 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -4,14 +4,14 @@ module Orb { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress?, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress?, created_at: Time, - credit_notes: ::Array[Orb::Models::Invoice::CreditNote], + credit_notes: ::Array[Orb::Invoice::CreditNote], currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ::Array[Orb::Invoice::CustomerBalanceTransaction], + customer_tax_id: Orb::Invoice::CustomerTaxID?, discount: top, discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, @@ -20,24 +20,24 @@ module Orb invoice_date: Time, invoice_number: String, invoice_pdf: String?, - invoice_source: Orb::Models::Invoice::invoice_source, + invoice_source: Orb::Invoice::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: ::Array[Orb::Models::Invoice::LineItem], - maximum: Orb::Models::Invoice::Maximum?, + line_items: ::Array[Orb::Invoice::LineItem], + maximum: Orb::Invoice::Maximum?, maximum_amount: String?, memo: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Invoice::Minimum?, + minimum: Orb::Invoice::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: ::Array[Orb::Invoice::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, - shipping_address: Orb::Models::Invoice::ShippingAddress?, - status: Orb::Models::Invoice::status, - subscription: Orb::Models::Invoice::Subscription?, + shipping_address: Orb::Invoice::ShippingAddress?, + status: Orb::Invoice::status, + subscription: Orb::Invoice::Subscription?, subtotal: String, sync_failed_at: Time?, total: String, @@ -50,21 +50,21 @@ module Orb attr_accessor amount_due: String - attr_accessor auto_collection: Orb::Models::Invoice::AutoCollection + attr_accessor auto_collection: Orb::Invoice::AutoCollection - attr_accessor billing_address: Orb::Models::Invoice::BillingAddress? + attr_accessor billing_address: Orb::Invoice::BillingAddress? attr_accessor created_at: Time - attr_accessor credit_notes: ::Array[Orb::Models::Invoice::CreditNote] + attr_accessor credit_notes: ::Array[Orb::Invoice::CreditNote] attr_accessor currency: String - attr_accessor customer: Orb::Models::Invoice::Customer + attr_accessor customer: Orb::Invoice::Customer - attr_accessor customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction] + attr_accessor customer_balance_transactions: ::Array[Orb::Invoice::CustomerBalanceTransaction] - attr_accessor customer_tax_id: Orb::Models::Invoice::CustomerTaxID? + attr_accessor customer_tax_id: Orb::Invoice::CustomerTaxID? attr_accessor discount: top @@ -82,15 +82,15 @@ module Orb attr_accessor invoice_pdf: String? - attr_accessor invoice_source: Orb::Models::Invoice::invoice_source + attr_accessor invoice_source: Orb::Invoice::invoice_source attr_accessor issue_failed_at: Time? attr_accessor issued_at: Time? - attr_accessor line_items: ::Array[Orb::Models::Invoice::LineItem] + attr_accessor line_items: ::Array[Orb::Invoice::LineItem] - attr_accessor maximum: Orb::Models::Invoice::Maximum? + attr_accessor maximum: Orb::Invoice::Maximum? attr_accessor maximum_amount: String? @@ -98,13 +98,13 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Invoice::Minimum? + attr_accessor minimum: Orb::Invoice::Minimum? attr_accessor minimum_amount: String? attr_accessor paid_at: Time? - attr_accessor payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt] + attr_accessor payment_attempts: ::Array[Orb::Invoice::PaymentAttempt] attr_accessor payment_failed_at: Time? @@ -112,11 +112,11 @@ module Orb attr_accessor scheduled_issue_at: Time? - attr_accessor shipping_address: Orb::Models::Invoice::ShippingAddress? + attr_accessor shipping_address: Orb::Invoice::ShippingAddress? - attr_accessor status: Orb::Models::Invoice::status + attr_accessor status: Orb::Invoice::status - attr_accessor subscription: Orb::Models::Invoice::Subscription? + attr_accessor subscription: Orb::Invoice::Subscription? attr_accessor subtotal: String @@ -131,14 +131,14 @@ module Orb def initialize: ( id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress?, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress?, created_at: Time, - credit_notes: ::Array[Orb::Models::Invoice::CreditNote], + credit_notes: ::Array[Orb::Invoice::CreditNote], currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ::Array[Orb::Invoice::CustomerBalanceTransaction], + customer_tax_id: Orb::Invoice::CustomerTaxID?, discount: top, discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, @@ -147,24 +147,24 @@ module Orb invoice_date: Time, invoice_number: String, invoice_pdf: String?, - invoice_source: Orb::Models::Invoice::invoice_source, + invoice_source: Orb::Invoice::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: ::Array[Orb::Models::Invoice::LineItem], - maximum: Orb::Models::Invoice::Maximum?, + line_items: ::Array[Orb::Invoice::LineItem], + maximum: Orb::Invoice::Maximum?, maximum_amount: String?, memo: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Invoice::Minimum?, + minimum: Orb::Invoice::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: ::Array[Orb::Invoice::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, - shipping_address: Orb::Models::Invoice::ShippingAddress?, - status: Orb::Models::Invoice::status, - subscription: Orb::Models::Invoice::Subscription?, + shipping_address: Orb::Invoice::ShippingAddress?, + status: Orb::Invoice::status, + subscription: Orb::Invoice::Subscription?, subtotal: String, sync_failed_at: Time?, total: String, @@ -172,8 +172,6 @@ module Orb will_auto_issue: bool ) -> void - def to_hash: -> Orb::Models::invoice - type auto_collection = { enabled: bool?, @@ -197,8 +195,6 @@ module Orb num_attempts: Integer?, previously_attempted_at: Time? ) -> void - - def to_hash: -> Orb::Models::Invoice::auto_collection end type billing_address = @@ -232,8 +228,6 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::Invoice::billing_address end type credit_note = @@ -271,8 +265,6 @@ module Orb type: String, voided_at: Time? ) -> void - - def to_hash: -> Orb::Models::Invoice::credit_note end type customer = { id: String, external_customer_id: String? } @@ -283,60 +275,56 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::Invoice::customer end type customer_balance_transaction = { id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::action, + action: Orb::Invoice::CustomerBalanceTransaction::action, amount: String, created_at: Time, - credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, + credit_note: Orb::Invoice::CustomerBalanceTransaction::CreditNote?, description: String?, ending_balance: String, - invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, + invoice: Orb::Invoice::CustomerBalanceTransaction::Invoice?, starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ + type: Orb::Invoice::CustomerBalanceTransaction::type_ } class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor action: Orb::Models::Invoice::CustomerBalanceTransaction::action + attr_accessor action: Orb::Invoice::CustomerBalanceTransaction::action attr_accessor amount: String attr_accessor created_at: Time - attr_accessor credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote? + attr_accessor credit_note: Orb::Invoice::CustomerBalanceTransaction::CreditNote? attr_accessor description: String? attr_accessor ending_balance: String - attr_accessor invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice? + attr_accessor invoice: Orb::Invoice::CustomerBalanceTransaction::Invoice? attr_accessor starting_balance: String - attr_accessor type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ + attr_accessor type: Orb::Invoice::CustomerBalanceTransaction::type_ def initialize: ( id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::action, + action: Orb::Invoice::CustomerBalanceTransaction::action, amount: String, created_at: Time, - credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, + credit_note: Orb::Invoice::CustomerBalanceTransaction::CreditNote?, description: String?, ending_balance: String, - invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, + invoice: Orb::Invoice::CustomerBalanceTransaction::Invoice?, starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ + type: Orb::Invoice::CustomerBalanceTransaction::type_ ) -> void - def to_hash: -> Orb::Models::Invoice::customer_balance_transaction - type action = :applied_to_invoice | :manual_adjustment @@ -361,7 +349,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] + def self?.values: -> ::Array[Orb::Invoice::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -370,8 +358,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::credit_note end type invoice = { id: String } @@ -380,8 +366,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement @@ -392,32 +376,30 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] + def self?.values: -> ::Array[Orb::Invoice::CustomerBalanceTransaction::type_] end end type customer_tax_id = { - country: Orb::Models::Invoice::CustomerTaxID::country, - type: Orb::Models::Invoice::CustomerTaxID::type_, + country: Orb::Invoice::CustomerTaxID::country, + type: Orb::Invoice::CustomerTaxID::type_, value: String } class CustomerTaxID < Orb::Internal::Type::BaseModel - attr_accessor country: Orb::Models::Invoice::CustomerTaxID::country + attr_accessor country: Orb::Invoice::CustomerTaxID::country - attr_accessor type: Orb::Models::Invoice::CustomerTaxID::type_ + attr_accessor type: Orb::Invoice::CustomerTaxID::type_ attr_accessor value: String def initialize: ( - country: Orb::Models::Invoice::CustomerTaxID::country, - type: Orb::Models::Invoice::CustomerTaxID::type_, + country: Orb::Invoice::CustomerTaxID::country, + type: Orb::Invoice::CustomerTaxID::type_, value: String ) -> void - def to_hash: -> Orb::Models::Invoice::customer_tax_id - type country = :AD | :AE @@ -580,7 +562,7 @@ module Orb VN: :VN ZA: :ZA - def self?.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] + def self?.values: -> ::Array[Orb::Invoice::CustomerTaxID::country] end type type_ = @@ -731,7 +713,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::Invoice::CustomerTaxID::type_] end end @@ -744,32 +726,32 @@ module Orb PARTIAL: :partial ONE_OFF: :one_off - def self?.values: -> ::Array[Orb::Models::Invoice::invoice_source] + def self?.values: -> ::Array[Orb::Invoice::invoice_source] end type line_item = { id: String, adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], + adjustments: ::Array[Orb::Invoice::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, end_date: Time, filter: String?, grouping: String?, - maximum: Orb::Models::Invoice::LineItem::Maximum?, + maximum: Orb::Invoice::LineItem::Maximum?, maximum_amount: String?, - minimum: Orb::Models::Invoice::LineItem::Minimum?, + minimum: Orb::Invoice::LineItem::Minimum?, minimum_amount: String?, name: String, partially_invoiced_amount: String, 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::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + tax_amounts: ::Array[Orb::Invoice::LineItem::TaxAmount], usage_customer_ids: ::Array[String]? } @@ -778,7 +760,7 @@ module Orb attr_accessor adjusted_subtotal: String - attr_accessor adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment] + attr_accessor adjustments: ::Array[Orb::Invoice::LineItem::adjustment] attr_accessor amount: String @@ -792,11 +774,11 @@ module Orb attr_accessor grouping: String? - attr_accessor maximum: Orb::Models::Invoice::LineItem::Maximum? + attr_accessor maximum: Orb::Invoice::LineItem::Maximum? attr_accessor maximum_amount: String? - attr_accessor minimum: Orb::Models::Invoice::LineItem::Minimum? + attr_accessor minimum: Orb::Invoice::LineItem::Minimum? attr_accessor minimum_amount: String? @@ -810,47 +792,45 @@ 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::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::Invoice::LineItem::TaxAmount] attr_accessor usage_customer_ids: ::Array[String]? def initialize: ( id: String, adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], + adjustments: ::Array[Orb::Invoice::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, end_date: Time, filter: String?, grouping: String?, - maximum: Orb::Models::Invoice::LineItem::Maximum?, + maximum: Orb::Invoice::LineItem::Maximum?, maximum_amount: String?, - minimum: Orb::Models::Invoice::LineItem::Minimum?, + minimum: Orb::Invoice::LineItem::Minimum?, minimum_amount: String?, name: String, partially_invoiced_amount: String, 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::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + tax_amounts: ::Array[Orb::Invoice::LineItem::TaxAmount], usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::Invoice::line_item - type adjustment = - Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount - | Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount - | Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount - | Orb::Models::Invoice::LineItem::Adjustment::Minimum - | Orb::Models::Invoice::LineItem::Adjustment::Maximum + Orb::Invoice::LineItem::Adjustment::UsageDiscount + | Orb::Invoice::LineItem::Adjustment::AmountDiscount + | Orb::Invoice::LineItem::Adjustment::PercentageDiscount + | Orb::Invoice::LineItem::Adjustment::Minimum + | Orb::Invoice::LineItem::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -890,8 +870,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::usage_discount end type amount_discount = @@ -929,8 +907,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::amount_discount end type percentage_discount = @@ -968,8 +944,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::percentage_discount end type minimum = @@ -1011,8 +985,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::minimum end type maximum = @@ -1050,11 +1022,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::maximum end - def self?.variants: -> [Orb::Models::Invoice::LineItem::Adjustment::UsageDiscount, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscount, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscount, Orb::Models::Invoice::LineItem::Adjustment::Minimum, Orb::Models::Invoice::LineItem::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Invoice::LineItem::adjustment] end type maximum = @@ -1069,8 +1039,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::maximum end type minimum = @@ -1085,14 +1053,12 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::minimum end type sub_line_item = - Orb::Models::Invoice::LineItem::SubLineItem::Matrix - | Orb::Models::Invoice::LineItem::SubLineItem::Tier - | Orb::Models::Invoice::LineItem::SubLineItem::Null + Orb::Invoice::LineItem::SubLineItem::Matrix + | Orb::Invoice::LineItem::SubLineItem::Tier + | Orb::Invoice::LineItem::SubLineItem::Null module SubLineItem extend Orb::Internal::Type::Union @@ -1100,8 +1066,8 @@ module Orb type matrix = { amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping?, - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, + grouping: Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping?, + matrix_config: Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, name: String, quantity: Float, type: :matrix @@ -1110,9 +1076,9 @@ module Orb class Matrix < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor grouping: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping? + attr_accessor grouping: Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping? - attr_accessor matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig attr_accessor name: String @@ -1122,15 +1088,13 @@ module Orb def initialize: ( amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::Grouping?, - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, + grouping: Orb::Invoice::LineItem::SubLineItem::Matrix::Grouping?, + matrix_config: Orb::Invoice::LineItem::SubLineItem::Matrix::MatrixConfig, name: String, quantity: Float, ?type: :matrix ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::matrix - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1139,8 +1103,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::Matrix::grouping end type matrix_config = { dimension_values: ::Array[String?] } @@ -1149,45 +1111,41 @@ module Orb attr_accessor dimension_values: ::Array[String?] def initialize: (dimension_values: ::Array[String?]) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::Matrix::matrix_config end end type tier = { amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping?, + grouping: Orb::Invoice::LineItem::SubLineItem::Tier::Grouping?, name: String, quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, + tier_config: Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig, type: :tier } class Tier < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor grouping: Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping? + attr_accessor grouping: Orb::Invoice::LineItem::SubLineItem::Tier::Grouping? attr_accessor name: String attr_accessor quantity: Float - attr_accessor tier_config: Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig + attr_accessor tier_config: Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig attr_accessor type: :tier def initialize: ( amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Tier::Grouping?, + grouping: Orb::Invoice::LineItem::SubLineItem::Tier::Grouping?, name: String, quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::Tier::TierConfig, + tier_config: Orb::Invoice::LineItem::SubLineItem::Tier::TierConfig, ?type: :tier ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::tier - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1196,8 +1154,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::Tier::grouping end type tier_config = @@ -1215,15 +1171,13 @@ module Orb last_unit: Float?, unit_amount: String ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::Tier::tier_config end end type null = { amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping?, + grouping: Orb::Invoice::LineItem::SubLineItem::Null::Grouping?, name: String, quantity: Float, type: :"'null'" @@ -1232,7 +1186,7 @@ module Orb class Null < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor grouping: Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping? + attr_accessor grouping: Orb::Invoice::LineItem::SubLineItem::Null::Grouping? attr_accessor name: String @@ -1242,14 +1196,12 @@ module Orb def initialize: ( amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::Null::Grouping?, + grouping: Orb::Invoice::LineItem::SubLineItem::Null::Grouping?, name: String, quantity: Float, ?type: :"'null'" ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::null - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1258,12 +1210,10 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::Null::grouping end end - def self?.variants: -> [Orb::Models::Invoice::LineItem::SubLineItem::Matrix, Orb::Models::Invoice::LineItem::SubLineItem::Tier, Orb::Models::Invoice::LineItem::SubLineItem::Null] + def self?.variants: -> ::Array[Orb::Invoice::LineItem::sub_line_item] end type tax_amount = @@ -1285,8 +1235,6 @@ module Orb tax_rate_description: String, tax_rate_percentage: String? ) -> void - - def to_hash: -> Orb::Models::Invoice::LineItem::tax_amount end end @@ -1302,8 +1250,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Invoice::maximum end type minimum = @@ -1318,8 +1264,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Invoice::minimum end type payment_attempt = @@ -1327,7 +1271,7 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, + payment_provider: Orb::Invoice::PaymentAttempt::payment_provider?, payment_provider_id: String?, succeeded: bool } @@ -1339,7 +1283,7 @@ module Orb attr_accessor created_at: Time - attr_accessor payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider? + attr_accessor payment_provider: Orb::Invoice::PaymentAttempt::payment_provider? attr_accessor payment_provider_id: String? @@ -1349,13 +1293,11 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, + payment_provider: Orb::Invoice::PaymentAttempt::payment_provider?, payment_provider_id: String?, succeeded: bool ) -> void - def to_hash: -> Orb::Models::Invoice::payment_attempt - type payment_provider = :stripe module PaymentProvider @@ -1363,7 +1305,7 @@ module Orb STRIPE: :stripe - def self?.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] + def self?.values: -> ::Array[Orb::Invoice::PaymentAttempt::payment_provider] end end @@ -1398,8 +1340,6 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::Invoice::shipping_address end type status = :issued | :paid | :synced | :void | :draft @@ -1413,7 +1353,7 @@ module Orb VOID: :void DRAFT: :draft - def self?.values: -> ::Array[Orb::Models::Invoice::status] + def self?.values: -> ::Array[Orb::Invoice::status] end type subscription = { id: String } @@ -1422,8 +1362,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Invoice::subscription end end end diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index 848c1935..5b3ea170 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -4,7 +4,7 @@ module Orb { currency: String, invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: String?, discount: Orb::Models::discount?, @@ -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::InvoiceCreateParams::LineItem] attr_accessor net_terms: Integer @@ -44,7 +44,7 @@ module Orb def initialize: ( currency: String, invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::InvoiceCreateParams::LineItem], net_terms: Integer, ?customer_id: String?, ?discount: Orb::Models::discount?, @@ -55,17 +55,15 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::invoice_create_params - type line_item = { end_date: Date, item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, + model_type: Orb::InvoiceCreateParams::LineItem::model_type, name: String, quantity: Float, start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig } class LineItem < Orb::Internal::Type::BaseModel @@ -73,7 +71,7 @@ module Orb attr_accessor item_id: String - attr_accessor model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type + attr_accessor model_type: Orb::InvoiceCreateParams::LineItem::model_type attr_accessor name: String @@ -81,20 +79,18 @@ module Orb attr_accessor start_date: Date - attr_accessor unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + attr_accessor unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig def initialize: ( end_date: Date, item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, + model_type: Orb::InvoiceCreateParams::LineItem::model_type, name: String, quantity: Float, start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + unit_config: Orb::InvoiceCreateParams::LineItem::UnitConfig ) -> void - def to_hash: -> Orb::Models::InvoiceCreateParams::line_item - type model_type = :unit module ModelType @@ -102,7 +98,7 @@ module Orb UNIT: :unit - def self?.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] + def self?.values: -> ::Array[Orb::InvoiceCreateParams::LineItem::model_type] end type unit_config = { unit_amount: String } @@ -111,8 +107,6 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::InvoiceCreateParams::LineItem::unit_config end end end diff --git a/sig/orb/models/invoice_fetch_params.rbs b/sig/orb/models/invoice_fetch_params.rbs index 9bde76d0..0ff6119f 100644 --- a/sig/orb/models/invoice_fetch_params.rbs +++ b/sig/orb/models/invoice_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::invoice_fetch_params end end end diff --git a/sig/orb/models/invoice_fetch_upcoming_params.rbs b/sig/orb/models/invoice_fetch_upcoming_params.rbs index c174fb71..c8f9b0cb 100644 --- a/sig/orb/models/invoice_fetch_upcoming_params.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_params.rbs @@ -13,8 +13,6 @@ module Orb subscription_id: String, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::invoice_fetch_upcoming_params end end end diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index be55f5fd..1f07ee0c 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -172,8 +172,6 @@ module Orb will_auto_issue: bool ) -> void - def to_hash: -> Orb::Models::invoice_fetch_upcoming_response - type auto_collection = { enabled: bool?, @@ -197,8 +195,6 @@ module Orb num_attempts: Integer?, previously_attempted_at: Time? ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::auto_collection end type billing_address = @@ -232,8 +228,6 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::billing_address end type credit_note = @@ -271,8 +265,6 @@ module Orb type: String, voided_at: Time? ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::credit_note end type customer = { id: String, external_customer_id: String? } @@ -283,8 +275,6 @@ module Orb attr_accessor external_customer_id: String? def initialize: (id: String, external_customer_id: String?) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer end type customer_balance_transaction = @@ -335,8 +325,6 @@ module Orb type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction - type action = :applied_to_invoice | :manual_adjustment @@ -370,8 +358,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note end type invoice = { id: String } @@ -380,8 +366,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement @@ -416,8 +400,6 @@ module Orb value: String ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id - type country = :AD | :AE @@ -843,8 +825,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item - type adjustment = Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount @@ -890,8 +870,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::usage_discount end type amount_discount = @@ -929,8 +907,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::amount_discount end type percentage_discount = @@ -968,8 +944,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::percentage_discount end type minimum = @@ -1011,8 +985,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::minimum end type maximum = @@ -1050,11 +1022,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::maximum end - def self?.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment] end type maximum = @@ -1069,8 +1039,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum end type minimum = @@ -1085,8 +1053,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum end type sub_line_item = @@ -1129,8 +1095,6 @@ module Orb ?type: :matrix ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1139,8 +1103,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::grouping end type matrix_config = { dimension_values: ::Array[String?] } @@ -1149,8 +1111,6 @@ module Orb attr_accessor dimension_values: ::Array[String?] def initialize: (dimension_values: ::Array[String?]) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::matrix_config end end @@ -1186,8 +1146,6 @@ module Orb ?type: :tier ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1196,8 +1154,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::grouping end type tier_config = @@ -1215,8 +1171,6 @@ module Orb last_unit: Float?, unit_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::tier_config end end @@ -1248,8 +1202,6 @@ module Orb ?type: :"'null'" ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::null - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -1258,12 +1210,10 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::grouping end end - def self?.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null] + def self?.variants: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item] end type tax_amount = @@ -1285,8 +1235,6 @@ module Orb tax_rate_description: String, tax_rate_percentage: String? ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount end end @@ -1302,8 +1250,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::maximum end type minimum = @@ -1318,8 +1264,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::minimum end type payment_attempt = @@ -1354,8 +1298,6 @@ module Orb succeeded: bool ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt - type payment_provider = :stripe module PaymentProvider @@ -1398,8 +1340,6 @@ module Orb postal_code: String?, state: String? ) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::shipping_address end type status = :issued | :paid | :synced | :void | :draft @@ -1422,8 +1362,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::subscription end end end diff --git a/sig/orb/models/invoice_issue_params.rbs b/sig/orb/models/invoice_issue_params.rbs index c03730ca..162d6436 100644 --- a/sig/orb/models/invoice_issue_params.rbs +++ b/sig/orb/models/invoice_issue_params.rbs @@ -15,8 +15,6 @@ module Orb ?synchronous: bool, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::invoice_issue_params end end end diff --git a/sig/orb/models/invoice_level_discount.rbs b/sig/orb/models/invoice_level_discount.rbs index c8188c44..a6da083f 100644 --- a/sig/orb/models/invoice_level_discount.rbs +++ b/sig/orb/models/invoice_level_discount.rbs @@ -1,14 +1,12 @@ module Orb module Models type invoice_level_discount = - Orb::Models::PercentageDiscount - | Orb::Models::AmountDiscount - | Orb::Models::TrialDiscount + Orb::PercentageDiscount | Orb::AmountDiscount | Orb::TrialDiscount module InvoiceLevelDiscount extend Orb::Internal::Type::Union - def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount] + def self?.variants: -> ::Array[Orb::Models::invoice_level_discount] end end end diff --git a/sig/orb/models/invoice_line_item_create_params.rbs b/sig/orb/models/invoice_line_item_create_params.rbs index 06508bc2..a15e1a4b 100644 --- a/sig/orb/models/invoice_line_item_create_params.rbs +++ b/sig/orb/models/invoice_line_item_create_params.rbs @@ -36,8 +36,6 @@ module Orb start_date: Date, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::invoice_line_item_create_params end end end diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index 4ab390bb..6308ed27 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -96,8 +96,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::invoice_line_item_create_response - type adjustment = Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount @@ -143,8 +141,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::usage_discount end type amount_discount = @@ -182,8 +178,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::amount_discount end type percentage_discount = @@ -221,8 +215,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::percentage_discount end type minimum = @@ -264,8 +256,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::minimum end type maximum = @@ -303,11 +293,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::maximum end - def self?.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Minimum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment] end type maximum = @@ -322,8 +310,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::maximum end type minimum = @@ -338,8 +324,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::minimum end type sub_line_item = @@ -382,8 +366,6 @@ module Orb ?type: :matrix ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -392,8 +374,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::grouping end type matrix_config = { dimension_values: ::Array[String?] } @@ -402,8 +382,6 @@ module Orb attr_accessor dimension_values: ::Array[String?] def initialize: (dimension_values: ::Array[String?]) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix::matrix_config end end @@ -439,8 +417,6 @@ module Orb ?type: :tier ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -449,8 +425,6 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::grouping end type tier_config = @@ -468,8 +442,6 @@ module Orb last_unit: Float?, unit_amount: String ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier::tier_config end end @@ -501,8 +473,6 @@ module Orb ?type: :"'null'" ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::null - type grouping = { key: String, value: String? } class Grouping < Orb::Internal::Type::BaseModel @@ -511,12 +481,10 @@ module Orb attr_accessor value: String? def initialize: (key: String, value: String?) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null::grouping end end - def self?.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Matrix, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Tier, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Null] + def self?.variants: -> ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item] end type tax_amount = @@ -538,8 +506,6 @@ module Orb tax_rate_description: String, tax_rate_percentage: String? ) -> void - - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::tax_amount end end end diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index e95901b8..7a91880a 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::InvoiceListParams::status]?, subscription_id: String? } & Orb::Internal::Type::request_parameters @@ -64,7 +64,7 @@ module Orb def limit=: (Integer) -> Integer - attr_accessor status: ::Array[Orb::Models::InvoiceListParams::status]? + attr_accessor status: ::Array[Orb::InvoiceListParams::status]? attr_accessor subscription_id: String? @@ -86,13 +86,11 @@ module Orb ?invoice_date_lte: Time?, ?is_recurring: bool?, ?limit: Integer, - ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?status: ::Array[Orb::InvoiceListParams::status]?, ?subscription_id: String?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::invoice_list_params - type date_type = :due_date | :invoice_date module DateType @@ -115,7 +113,7 @@ module Orb SYNCED: :synced VOID: :void - def self?.values: -> ::Array[Orb::Models::InvoiceListParams::status] + def self?.values: -> ::Array[Orb::InvoiceListParams::status] end end end diff --git a/sig/orb/models/invoice_mark_paid_params.rbs b/sig/orb/models/invoice_mark_paid_params.rbs index 41389eef..075695da 100644 --- a/sig/orb/models/invoice_mark_paid_params.rbs +++ b/sig/orb/models/invoice_mark_paid_params.rbs @@ -20,8 +20,6 @@ module Orb ?notes: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::invoice_mark_paid_params end end end diff --git a/sig/orb/models/invoice_pay_params.rbs b/sig/orb/models/invoice_pay_params.rbs index 52783531..90a55f77 100644 --- a/sig/orb/models/invoice_pay_params.rbs +++ b/sig/orb/models/invoice_pay_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::invoice_pay_params end end end diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index a7a089d8..847d3a95 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -14,8 +14,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::invoice_update_params end end end diff --git a/sig/orb/models/invoice_void_params.rbs b/sig/orb/models/invoice_void_params.rbs index 84c09864..ec1586f2 100644 --- a/sig/orb/models/invoice_void_params.rbs +++ b/sig/orb/models/invoice_void_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::invoice_void_params end end end diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index f1990130..dc983d22 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::Item::ExternalConnection], name: String } @@ -13,37 +13,33 @@ module Orb attr_accessor created_at: Time - attr_accessor external_connections: ::Array[Orb::Models::Item::ExternalConnection] + attr_accessor external_connections: ::Array[Orb::Item::ExternalConnection] attr_accessor name: String def initialize: ( id: String, created_at: Time, - external_connections: ::Array[Orb::Models::Item::ExternalConnection], + external_connections: ::Array[Orb::Item::ExternalConnection], name: String ) -> void - def to_hash: -> Orb::Models::item - type external_connection = { - external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, + external_connection_name: Orb::Item::ExternalConnection::external_connection_name, external_entity_id: String } class ExternalConnection < Orb::Internal::Type::BaseModel - attr_accessor external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name + attr_accessor external_connection_name: Orb::Item::ExternalConnection::external_connection_name attr_accessor external_entity_id: String def initialize: ( - external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, + external_connection_name: Orb::Item::ExternalConnection::external_connection_name, external_entity_id: String ) -> void - def to_hash: -> Orb::Models::Item::external_connection - type external_connection_name = :stripe | :quickbooks @@ -64,7 +60,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self?.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::Item::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/item_create_params.rbs b/sig/orb/models/item_create_params.rbs index 4ec4b325..1f26a8b3 100644 --- a/sig/orb/models/item_create_params.rbs +++ b/sig/orb/models/item_create_params.rbs @@ -13,8 +13,6 @@ module Orb name: String, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::item_create_params end end end diff --git a/sig/orb/models/item_fetch_params.rbs b/sig/orb/models/item_fetch_params.rbs index 372acb3c..7988fb51 100644 --- a/sig/orb/models/item_fetch_params.rbs +++ b/sig/orb/models/item_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::item_fetch_params end end end diff --git a/sig/orb/models/item_list_params.rbs b/sig/orb/models/item_list_params.rbs index 9fdd146d..cade6db3 100644 --- a/sig/orb/models/item_list_params.rbs +++ b/sig/orb/models/item_list_params.rbs @@ -19,8 +19,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::item_list_params end end end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index 135234c3..0f5b4b5d 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::ItemUpdateParams::ExternalConnection]?, name: String? } & Orb::Internal::Type::request_parameters @@ -11,36 +11,32 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]? + attr_accessor external_connections: ::Array[Orb::ItemUpdateParams::ExternalConnection]? attr_accessor name: String? def initialize: ( - ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?external_connections: ::Array[Orb::ItemUpdateParams::ExternalConnection]?, ?name: String?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::item_update_params - type external_connection = { - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, + external_connection_name: Orb::ItemUpdateParams::ExternalConnection::external_connection_name, external_entity_id: String } class ExternalConnection < Orb::Internal::Type::BaseModel - attr_accessor external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name + attr_accessor external_connection_name: Orb::ItemUpdateParams::ExternalConnection::external_connection_name attr_accessor external_entity_id: String def initialize: ( - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, + external_connection_name: Orb::ItemUpdateParams::ExternalConnection::external_connection_name, external_entity_id: String ) -> void - def to_hash: -> Orb::Models::ItemUpdateParams::external_connection - type external_connection_name = :stripe | :quickbooks @@ -61,7 +57,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self?.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::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 9d7f9a91..7139dbe5 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -32,8 +32,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::metric_create_params end end end diff --git a/sig/orb/models/metric_fetch_params.rbs b/sig/orb/models/metric_fetch_params.rbs index 006bf76f..f9494aa2 100644 --- a/sig/orb/models/metric_fetch_params.rbs +++ b/sig/orb/models/metric_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::metric_fetch_params end end end diff --git a/sig/orb/models/metric_list_params.rbs b/sig/orb/models/metric_list_params.rbs index 69499306..b9d2c437 100644 --- a/sig/orb/models/metric_list_params.rbs +++ b/sig/orb/models/metric_list_params.rbs @@ -38,8 +38,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::metric_list_params end end end diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index ef4520d4..7f33ad71 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -14,8 +14,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::metric_update_params end end end diff --git a/sig/orb/models/pagination_metadata.rbs b/sig/orb/models/pagination_metadata.rbs index 26d644ab..d386e384 100644 --- a/sig/orb/models/pagination_metadata.rbs +++ b/sig/orb/models/pagination_metadata.rbs @@ -8,8 +8,6 @@ module Orb attr_accessor next_cursor: String? def initialize: (has_more: bool, next_cursor: String?) -> void - - def to_hash: -> Orb::Models::pagination_metadata end end end diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index 9c63d7a2..eecc4c67 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -3,7 +3,7 @@ module Orb type percentage_discount = { applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::PercentageDiscount::discount_type, + discount_type: Orb::PercentageDiscount::discount_type, percentage_discount: Float, reason: String? } @@ -11,7 +11,7 @@ module Orb class PercentageDiscount < Orb::Internal::Type::BaseModel attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor discount_type: Orb::Models::PercentageDiscount::discount_type + attr_accessor discount_type: Orb::PercentageDiscount::discount_type attr_accessor percentage_discount: Float @@ -19,13 +19,11 @@ module Orb def initialize: ( applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::PercentageDiscount::discount_type, + discount_type: Orb::PercentageDiscount::discount_type, percentage_discount: Float, ?reason: String? ) -> void - def to_hash: -> Orb::Models::percentage_discount - type discount_type = :percentage module DiscountType @@ -33,7 +31,7 @@ module Orb PERCENTAGE: :percentage - def self?.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] + def self?.values: -> ::Array[Orb::PercentageDiscount::discount_type] end end end diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index 1aa0f2fd..65d56a18 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -3,8 +3,8 @@ module Orb type plan = { id: String, - adjustments: ::Array[Orb::Models::Plan::adjustment], - base_plan: Orb::Models::Plan::BasePlan?, + adjustments: ::Array[Orb::Plan::adjustment], + base_plan: Orb::Plan::BasePlan?, base_plan_id: String?, created_at: Time, currency: String, @@ -13,27 +13,27 @@ module Orb discount: Orb::Models::discount?, external_plan_id: String?, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum?, + maximum: Orb::Plan::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Plan::Minimum?, + minimum: Orb::Plan::Minimum?, minimum_amount: String?, name: String, net_terms: Integer?, - plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + plan_phases: ::Array[Orb::Plan::PlanPhase]?, prices: ::Array[Orb::Models::price], - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::status, - trial_config: Orb::Models::Plan::TrialConfig, + product: Orb::Plan::Product, + status: Orb::Plan::status, + trial_config: Orb::Plan::TrialConfig, version: Integer } class Plan < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor adjustments: ::Array[Orb::Models::Plan::adjustment] + attr_accessor adjustments: ::Array[Orb::Plan::adjustment] - attr_accessor base_plan: Orb::Models::Plan::BasePlan? + attr_accessor base_plan: Orb::Plan::BasePlan? attr_accessor base_plan_id: String? @@ -51,13 +51,13 @@ module Orb attr_accessor invoicing_currency: String - attr_accessor maximum: Orb::Models::Plan::Maximum? + attr_accessor maximum: Orb::Plan::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Plan::Minimum? + attr_accessor minimum: Orb::Plan::Minimum? attr_accessor minimum_amount: String? @@ -65,22 +65,22 @@ module Orb attr_accessor net_terms: Integer? - attr_accessor plan_phases: ::Array[Orb::Models::Plan::PlanPhase]? + attr_accessor plan_phases: ::Array[Orb::Plan::PlanPhase]? attr_accessor prices: ::Array[Orb::Models::price] - attr_accessor product: Orb::Models::Plan::Product + attr_accessor product: Orb::Plan::Product - attr_accessor status: Orb::Models::Plan::status + attr_accessor status: Orb::Plan::status - attr_accessor trial_config: Orb::Models::Plan::TrialConfig + attr_accessor trial_config: Orb::Plan::TrialConfig attr_accessor version: Integer def initialize: ( id: String, - adjustments: ::Array[Orb::Models::Plan::adjustment], - base_plan: Orb::Models::Plan::BasePlan?, + adjustments: ::Array[Orb::Plan::adjustment], + base_plan: Orb::Plan::BasePlan?, base_plan_id: String?, created_at: Time, currency: String, @@ -89,29 +89,27 @@ module Orb discount: Orb::Models::discount?, external_plan_id: String?, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum?, + maximum: Orb::Plan::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Plan::Minimum?, + minimum: Orb::Plan::Minimum?, minimum_amount: String?, name: String, net_terms: Integer?, - plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + plan_phases: ::Array[Orb::Plan::PlanPhase]?, prices: ::Array[Orb::Models::price], - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::status, - trial_config: Orb::Models::Plan::TrialConfig, + product: Orb::Plan::Product, + status: Orb::Plan::status, + trial_config: Orb::Plan::TrialConfig, version: Integer ) -> void - def to_hash: -> Orb::Models::plan - type adjustment = - Orb::Models::Plan::Adjustment::UsageDiscount - | Orb::Models::Plan::Adjustment::AmountDiscount - | Orb::Models::Plan::Adjustment::PercentageDiscount - | Orb::Models::Plan::Adjustment::Minimum - | Orb::Models::Plan::Adjustment::Maximum + Orb::Plan::Adjustment::UsageDiscount + | Orb::Plan::Adjustment::AmountDiscount + | Orb::Plan::Adjustment::PercentageDiscount + | Orb::Plan::Adjustment::Minimum + | Orb::Plan::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -151,8 +149,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::Plan::Adjustment::usage_discount end type amount_discount = @@ -190,8 +186,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::Plan::Adjustment::amount_discount end type percentage_discount = @@ -229,8 +223,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::Plan::Adjustment::percentage_discount end type minimum = @@ -272,8 +264,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::Plan::Adjustment::minimum end type maximum = @@ -311,11 +301,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::Plan::Adjustment::maximum end - def self?.variants: -> [Orb::Models::Plan::Adjustment::UsageDiscount, Orb::Models::Plan::Adjustment::AmountDiscount, Orb::Models::Plan::Adjustment::PercentageDiscount, Orb::Models::Plan::Adjustment::Minimum, Orb::Models::Plan::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Plan::adjustment] end type base_plan = { id: String?, external_plan_id: String?, name: String? } @@ -332,8 +320,6 @@ module Orb external_plan_id: String?, name: String? ) -> void - - def to_hash: -> Orb::Models::Plan::base_plan end type maximum = @@ -348,8 +334,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Plan::maximum end type minimum = @@ -364,8 +348,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Plan::minimum end type plan_phase = @@ -374,10 +356,10 @@ module Orb description: String?, discount: Orb::Models::discount?, duration: Integer?, - duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, - maximum: Orb::Models::Plan::PlanPhase::Maximum?, + duration_unit: Orb::Plan::PlanPhase::duration_unit?, + maximum: Orb::Plan::PlanPhase::Maximum?, maximum_amount: String?, - minimum: Orb::Models::Plan::PlanPhase::Minimum?, + minimum: Orb::Plan::PlanPhase::Minimum?, minimum_amount: String?, name: String, order: Integer @@ -392,13 +374,13 @@ module Orb attr_accessor duration: Integer? - attr_accessor duration_unit: Orb::Models::Plan::PlanPhase::duration_unit? + attr_accessor duration_unit: Orb::Plan::PlanPhase::duration_unit? - attr_accessor maximum: Orb::Models::Plan::PlanPhase::Maximum? + attr_accessor maximum: Orb::Plan::PlanPhase::Maximum? attr_accessor maximum_amount: String? - attr_accessor minimum: Orb::Models::Plan::PlanPhase::Minimum? + attr_accessor minimum: Orb::Plan::PlanPhase::Minimum? attr_accessor minimum_amount: String? @@ -411,17 +393,15 @@ module Orb description: String?, discount: Orb::Models::discount?, duration: Integer?, - duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, - maximum: Orb::Models::Plan::PlanPhase::Maximum?, + duration_unit: Orb::Plan::PlanPhase::duration_unit?, + maximum: Orb::Plan::PlanPhase::Maximum?, maximum_amount: String?, - minimum: Orb::Models::Plan::PlanPhase::Minimum?, + minimum: Orb::Plan::PlanPhase::Minimum?, minimum_amount: String?, name: String, order: Integer ) -> void - def to_hash: -> Orb::Models::Plan::plan_phase - type duration_unit = :daily | :monthly | :quarterly | :semi_annual | :annual @@ -434,7 +414,7 @@ module Orb SEMI_ANNUAL: :semi_annual ANNUAL: :annual - def self?.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] + def self?.values: -> ::Array[Orb::Plan::PlanPhase::duration_unit] end type maximum = @@ -449,8 +429,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Plan::PlanPhase::maximum end type minimum = @@ -465,8 +443,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Plan::PlanPhase::minimum end end @@ -480,8 +456,6 @@ module Orb attr_accessor name: String def initialize: (id: String, created_at: Time, name: String) -> void - - def to_hash: -> Orb::Models::Plan::product end type status = :active | :archived | :draft @@ -493,27 +467,25 @@ module Orb ARCHIVED: :archived DRAFT: :draft - def self?.values: -> ::Array[Orb::Models::Plan::status] + def self?.values: -> ::Array[Orb::Plan::status] end type trial_config = { trial_period: Integer?, - trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit + trial_period_unit: Orb::Plan::TrialConfig::trial_period_unit } class TrialConfig < Orb::Internal::Type::BaseModel attr_accessor trial_period: Integer? - attr_accessor trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit + attr_accessor trial_period_unit: Orb::Plan::TrialConfig::trial_period_unit def initialize: ( trial_period: Integer?, - trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit + trial_period_unit: Orb::Plan::TrialConfig::trial_period_unit ) -> void - def to_hash: -> Orb::Models::Plan::trial_config - type trial_period_unit = :days module TrialPeriodUnit @@ -521,7 +493,7 @@ module Orb DAYS: :days - def self?.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] + def self?.values: -> ::Array[Orb::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 4bd21afc..7c5de358 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -4,7 +4,7 @@ module Orb { currency: String, name: String, - prices: ::Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::PlanCreateParams::price], default_invoice_memo: String?, external_plan_id: String?, metadata: ::Hash[Symbol, String?]?, @@ -21,7 +21,7 @@ module Orb attr_accessor name: String - attr_accessor prices: ::Array[Orb::Models::PlanCreateParams::price] + attr_accessor prices: ::Array[Orb::PlanCreateParams::price] attr_accessor default_invoice_memo: String? @@ -40,7 +40,7 @@ module Orb def initialize: ( currency: String, name: String, - prices: ::Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::PlanCreateParams::price], ?default_invoice_memo: String?, ?external_plan_id: String?, ?metadata: ::Hash[Symbol, String?]?, @@ -49,59 +49,57 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::plan_create_params - type price = - Orb::Models::PlanCreateParams::Price::Unit - | Orb::Models::PlanCreateParams::Price::Package - | Orb::Models::PlanCreateParams::Price::Matrix - | Orb::Models::PlanCreateParams::Price::Tiered - | Orb::Models::PlanCreateParams::Price::TieredBps - | Orb::Models::PlanCreateParams::Price::Bps - | Orb::Models::PlanCreateParams::Price::BulkBps - | Orb::Models::PlanCreateParams::Price::Bulk - | Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount - | Orb::Models::PlanCreateParams::Price::TieredPackage - | Orb::Models::PlanCreateParams::Price::TieredWithMinimum - | Orb::Models::PlanCreateParams::Price::UnitWithPercent - | Orb::Models::PlanCreateParams::Price::PackageWithAllocation - | Orb::Models::PlanCreateParams::Price::TieredWithProration - | Orb::Models::PlanCreateParams::Price::UnitWithProration - | Orb::Models::PlanCreateParams::Price::GroupedAllocation - | Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum - | Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum - | Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName - | Orb::Models::PlanCreateParams::Price::BulkWithProration - | Orb::Models::PlanCreateParams::Price::GroupedTieredPackage - | Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage - | Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing - | Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing - | Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk + Orb::PlanCreateParams::Price::Unit + | Orb::PlanCreateParams::Price::Package + | Orb::PlanCreateParams::Price::Matrix + | Orb::PlanCreateParams::Price::Tiered + | Orb::PlanCreateParams::Price::TieredBps + | Orb::PlanCreateParams::Price::Bps + | Orb::PlanCreateParams::Price::BulkBps + | Orb::PlanCreateParams::Price::Bulk + | Orb::PlanCreateParams::Price::ThresholdTotalAmount + | Orb::PlanCreateParams::Price::TieredPackage + | Orb::PlanCreateParams::Price::TieredWithMinimum + | Orb::PlanCreateParams::Price::UnitWithPercent + | Orb::PlanCreateParams::Price::PackageWithAllocation + | Orb::PlanCreateParams::Price::TieredWithProration + | Orb::PlanCreateParams::Price::UnitWithProration + | Orb::PlanCreateParams::Price::GroupedAllocation + | Orb::PlanCreateParams::Price::GroupedWithProratedMinimum + | Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum + | Orb::PlanCreateParams::Price::MatrixWithDisplayName + | Orb::PlanCreateParams::Price::BulkWithProration + | Orb::PlanCreateParams::Price::GroupedTieredPackage + | Orb::PlanCreateParams::Price::MaxGroupTieredPackage + | Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing + | Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing + | Orb::PlanCreateParams::Price::CumulativeGroupedBulk module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence, + cadence: Orb::PlanCreateParams::Price::Unit::cadence, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::PlanCreateParams::Price::Unit::UnitConfig, + unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Unit::cadence attr_accessor item_id: String @@ -109,13 +107,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::PlanCreateParams::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -127,30 +125,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence, + cadence: Orb::PlanCreateParams::Price::Unit::cadence, item_id: String, name: String, - unit_config: Orb::Models::PlanCreateParams::Price::Unit::UnitConfig, + unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::unit - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -164,7 +160,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -173,28 +169,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -203,28 +195,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -233,32 +223,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::PlanCreateParams::Price::Package::cadence, + cadence: Orb::PlanCreateParams::Price::Package::cadence, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::PlanCreateParams::Price::Package::PackageConfig, + package_config: Orb::PlanCreateParams::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Package::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Package::cadence attr_accessor item_id: String @@ -266,13 +256,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::PlanCreateParams::Price::Package::PackageConfig + attr_accessor package_config: Orb::PlanCreateParams::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -284,30 +274,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::Package::cadence, + cadence: Orb::PlanCreateParams::Price::Package::cadence, item_id: String, name: String, - package_config: Orb::Models::PlanCreateParams::Price::Package::PackageConfig, + package_config: Orb::PlanCreateParams::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::package - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -321,7 +309,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::cadence] end type package_config = @@ -336,28 +324,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -366,28 +350,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -396,36 +378,36 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence, + cadence: Orb::PlanCreateParams::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig, + matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Matrix::cadence attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -435,7 +417,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -447,30 +429,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence, + cadence: Orb::PlanCreateParams::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig, + matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::matrix - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -484,14 +464,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -499,16 +479,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -521,29 +499,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -552,28 +526,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -582,32 +554,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence, + cadence: Orb::PlanCreateParams::Price::Tiered::cadence, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig, + tiered_config: Orb::PlanCreateParams::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Tiered::cadence attr_accessor item_id: String @@ -615,13 +587,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::PlanCreateParams::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -633,30 +605,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence, + cadence: Orb::PlanCreateParams::Price::Tiered::cadence, item_id: String, name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig, + tiered_config: Orb::PlanCreateParams::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::tiered - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -670,23 +640,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -702,29 +670,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -733,28 +697,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -763,32 +725,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence, + cadence: Orb::PlanCreateParams::Price::TieredBps::cadence, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::TieredBps::cadence attr_accessor item_id: String @@ -796,13 +758,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -814,30 +776,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence, + cadence: Orb::PlanCreateParams::Price::TieredBps::cadence, item_id: String, name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::tiered_bps - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -851,23 +811,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -891,29 +849,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -922,28 +876,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -952,34 +904,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::PlanCreateParams::Price::Bps::BpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence, + bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig, + cadence: Orb::PlanCreateParams::Price::Bps::cadence, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::PlanCreateParams::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Bps::cadence attr_accessor item_id: String @@ -991,7 +943,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1003,30 +955,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bps_config: Orb::Models::PlanCreateParams::Price::Bps::BpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence, + bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig, + cadence: Orb::PlanCreateParams::Price::Bps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -1035,8 +985,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bps::bps_config end type cadence = @@ -1052,27 +1000,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1081,28 +1027,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1111,34 +1055,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence, + bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig, + cadence: Orb::PlanCreateParams::Price::BulkBps::cadence, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::BulkBps::cadence attr_accessor item_id: String @@ -1150,7 +1094,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1162,44 +1106,40 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_bps_config: Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence, + bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig, + cadence: Orb::PlanCreateParams::Price::BulkBps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -1215,8 +1155,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkBps::BulkBpsConfig::tier end end @@ -1233,27 +1171,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1262,28 +1198,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1292,34 +1226,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence, + bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig, + cadence: Orb::PlanCreateParams::Price::Bulk::cadence, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::Bulk::cadence attr_accessor item_id: String @@ -1331,7 +1265,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1343,44 +1277,40 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_config: Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig, - cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence, + bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig, + cadence: Orb::PlanCreateParams::Price::Bulk::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -1392,8 +1322,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bulk::BulkConfig::tier end end @@ -1410,27 +1338,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1439,28 +1365,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1469,32 +1393,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence, + cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence, item_id: String, model_type: :threshold_total_amount, name: String, threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence attr_accessor item_id: String @@ -1508,7 +1432,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1520,30 +1444,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence, + cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::threshold_total_amount - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1557,27 +1479,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1586,28 +1506,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1616,32 +1534,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence, item_id: String, model_type: :tiered_package, name: String, tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence attr_accessor item_id: String @@ -1655,7 +1573,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1667,30 +1585,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::tiered_package - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1704,27 +1620,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1733,28 +1647,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1763,32 +1675,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence, item_id: String, model_type: :tiered_with_minimum, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence attr_accessor item_id: String @@ -1802,7 +1714,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1814,30 +1726,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::tiered_with_minimum - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1851,27 +1761,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1880,28 +1788,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1910,32 +1816,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence, + cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence, item_id: String, model_type: :unit_with_percent, name: String, unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence attr_accessor item_id: String @@ -1949,7 +1855,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1961,30 +1867,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence, + cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::unit_with_percent - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1998,27 +1902,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2027,28 +1929,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2057,32 +1957,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence, + cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence, item_id: String, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence attr_accessor item_id: String @@ -2096,7 +1996,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2108,30 +2008,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence, + cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::package_with_allocation - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2145,27 +2043,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2174,28 +2070,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2204,32 +2098,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence, item_id: String, model_type: :tiered_with_proration, name: String, tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence attr_accessor item_id: String @@ -2243,7 +2137,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2255,30 +2149,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::tiered_with_proration - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2292,27 +2184,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2321,28 +2211,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2351,32 +2239,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence, item_id: String, model_type: :unit_with_proration, name: String, unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence attr_accessor item_id: String @@ -2390,7 +2278,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2402,30 +2290,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::unit_with_proration - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2439,27 +2325,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2468,28 +2352,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2498,32 +2380,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence attr_accessor grouped_allocation_config: ::Hash[Symbol, top] @@ -2537,7 +2419,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2549,30 +2431,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::grouped_allocation - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2586,27 +2466,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2615,28 +2493,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2645,32 +2521,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] @@ -2684,7 +2560,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2696,30 +2572,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2733,27 +2607,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2762,28 +2634,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2792,32 +2662,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] @@ -2831,7 +2701,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2843,30 +2713,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2880,27 +2748,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2909,28 +2775,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2939,32 +2803,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence, + cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence attr_accessor item_id: String @@ -2978,7 +2842,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2990,30 +2854,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence, + cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::matrix_with_display_name - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3027,27 +2889,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3056,28 +2916,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3086,7 +2944,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end @@ -3094,26 +2952,26 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence attr_accessor item_id: String @@ -3125,7 +2983,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3137,30 +2995,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence, + cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::bulk_with_proration - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3174,27 +3030,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3203,28 +3057,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3233,32 +3085,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] @@ -3272,7 +3124,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3284,30 +3136,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::grouped_tiered_package - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3321,27 +3171,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3350,28 +3198,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3380,32 +3226,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence attr_accessor item_id: String @@ -3419,7 +3265,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3431,30 +3277,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::max_group_tiered_package - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3468,27 +3312,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3497,28 +3339,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3527,32 +3367,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor item_id: String @@ -3566,7 +3406,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3578,30 +3418,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3615,27 +3453,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3644,28 +3480,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3674,32 +3508,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor item_id: String @@ -3713,7 +3547,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3725,30 +3559,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3762,27 +3594,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3791,28 +3621,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3821,32 +3649,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, model_type: :cumulative_grouped_bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -3860,7 +3688,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3872,30 +3700,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3909,27 +3735,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3938,28 +3762,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3968,12 +3790,12 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::PlanCreateParams::Price::Unit, Orb::Models::PlanCreateParams::Price::Package, Orb::Models::PlanCreateParams::Price::Matrix, Orb::Models::PlanCreateParams::Price::Tiered, Orb::Models::PlanCreateParams::Price::TieredBps, Orb::Models::PlanCreateParams::Price::Bps, Orb::Models::PlanCreateParams::Price::BulkBps, Orb::Models::PlanCreateParams::Price::Bulk, Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount, Orb::Models::PlanCreateParams::Price::TieredPackage, Orb::Models::PlanCreateParams::Price::TieredWithMinimum, Orb::Models::PlanCreateParams::Price::UnitWithPercent, Orb::Models::PlanCreateParams::Price::PackageWithAllocation, Orb::Models::PlanCreateParams::Price::TieredWithProration, Orb::Models::PlanCreateParams::Price::UnitWithProration, Orb::Models::PlanCreateParams::Price::GroupedAllocation, Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum, Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum, Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName, Orb::Models::PlanCreateParams::Price::BulkWithProration, Orb::Models::PlanCreateParams::Price::GroupedTieredPackage, Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing, Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing, Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk] + def self?.variants: -> ::Array[Orb::PlanCreateParams::price] end type status = :active | :draft diff --git a/sig/orb/models/plan_fetch_params.rbs b/sig/orb/models/plan_fetch_params.rbs index 2d1fbb53..5f82de8b 100644 --- a/sig/orb/models/plan_fetch_params.rbs +++ b/sig/orb/models/plan_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::plan_fetch_params end end end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index 1624a44c..69a9c09c 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -47,8 +47,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::plan_list_params - type status = :active | :archived | :draft module Status diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index 2e4f2a10..a6b8bc12 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -17,8 +17,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::plan_update_params end end end diff --git a/sig/orb/models/plans/external_plan_id_fetch_params.rbs b/sig/orb/models/plans/external_plan_id_fetch_params.rbs index 41f83069..13de9d1e 100644 --- a/sig/orb/models/plans/external_plan_id_fetch_params.rbs +++ b/sig/orb/models/plans/external_plan_id_fetch_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::Plans::external_plan_id_fetch_params end end end diff --git a/sig/orb/models/plans/external_plan_id_update_params.rbs b/sig/orb/models/plans/external_plan_id_update_params.rbs index d9069339..73745da0 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -18,8 +18,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Plans::external_plan_id_update_params end end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 2dd0ab41..1445ce4b 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -1,34 +1,34 @@ module Orb module Models type price = - Orb::Models::Price::Unit - | Orb::Models::Price::Package - | Orb::Models::Price::Matrix - | Orb::Models::Price::Tiered - | Orb::Models::Price::TieredBps - | Orb::Models::Price::Bps - | Orb::Models::Price::BulkBps - | Orb::Models::Price::Bulk - | Orb::Models::Price::ThresholdTotalAmount - | Orb::Models::Price::TieredPackage - | Orb::Models::Price::GroupedTiered - | Orb::Models::Price::TieredWithMinimum - | Orb::Models::Price::TieredPackageWithMinimum - | Orb::Models::Price::PackageWithAllocation - | Orb::Models::Price::UnitWithPercent - | Orb::Models::Price::MatrixWithAllocation - | Orb::Models::Price::TieredWithProration - | Orb::Models::Price::UnitWithProration - | Orb::Models::Price::GroupedAllocation - | Orb::Models::Price::GroupedWithProratedMinimum - | Orb::Models::Price::GroupedWithMeteredMinimum - | Orb::Models::Price::MatrixWithDisplayName - | Orb::Models::Price::BulkWithProration - | Orb::Models::Price::GroupedTieredPackage - | Orb::Models::Price::MaxGroupTieredPackage - | Orb::Models::Price::ScalableMatrixWithUnitPricing - | Orb::Models::Price::ScalableMatrixWithTieredPricing - | Orb::Models::Price::CumulativeGroupedBulk + Orb::Price::Unit + | Orb::Price::Package + | Orb::Price::Matrix + | Orb::Price::Tiered + | Orb::Price::TieredBps + | Orb::Price::Bps + | Orb::Price::BulkBps + | Orb::Price::Bulk + | Orb::Price::ThresholdTotalAmount + | Orb::Price::TieredPackage + | Orb::Price::GroupedTiered + | Orb::Price::TieredWithMinimum + | Orb::Price::TieredPackageWithMinimum + | Orb::Price::PackageWithAllocation + | Orb::Price::UnitWithPercent + | Orb::Price::MatrixWithAllocation + | Orb::Price::TieredWithProration + | Orb::Price::UnitWithProration + | Orb::Price::GroupedAllocation + | Orb::Price::GroupedWithProratedMinimum + | Orb::Price::GroupedWithMeteredMinimum + | Orb::Price::MatrixWithDisplayName + | Orb::Price::BulkWithProration + | Orb::Price::GroupedTieredPackage + | Orb::Price::MaxGroupTieredPackage + | Orb::Price::ScalableMatrixWithUnitPricing + | Orb::Price::ScalableMatrixWithTieredPricing + | Orb::Price::CumulativeGroupedBulk module Price extend Orb::Internal::Type::Union @@ -36,45 +36,45 @@ module Orb type unit = { id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::cadence, + billable_metric: Orb::Price::Unit::BillableMetric?, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation?, + credit_allocation: Orb::Price::Unit::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum?, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration?, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Unit::Minimum?, + minimum: Orb::Price::Unit::Minimum?, minimum_amount: String?, model_type: :unit, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Unit::price_type, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration? + price_type: Orb::Price::Unit::price_type, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration? } class Unit < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Unit::BillableMetric? + attr_accessor billable_metric: Orb::Price::Unit::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Unit::cadence + attr_accessor cadence: Orb::Price::Unit::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Unit::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Unit::CreditAllocation? attr_accessor currency: String @@ -84,17 +84,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Unit::Item + attr_accessor item: Orb::Price::Unit::Item - attr_accessor maximum: Orb::Models::Price::Unit::Maximum? + attr_accessor maximum: Orb::Price::Unit::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Unit::Minimum? + attr_accessor minimum: Orb::Price::Unit::Minimum? attr_accessor minimum_amount: String? @@ -104,69 +104,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Unit::price_type + attr_accessor price_type: Orb::Price::Unit::price_type - attr_accessor unit_config: Orb::Models::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::Price::Unit::UnitConfig - attr_accessor dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::cadence, + billable_metric: Orb::Price::Unit::BillableMetric?, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation?, + credit_allocation: Orb::Price::Unit::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum?, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration?, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Unit::Minimum?, + minimum: Orb::Price::Unit::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Unit::price_type, - unit_config: Orb::Models::Price::Unit::UnitConfig, - ?dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration?, + price_type: Orb::Price::Unit::price_type, + unit_config: Orb::Price::Unit::UnitConfig, + ?dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::Price::unit - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Unit::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -175,7 +169,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Unit::BillingCycleConfiguration::duration_unit] end end @@ -192,7 +186,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::Price::Unit::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -203,28 +197,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Unit::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -233,7 +223,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end @@ -245,8 +235,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Unit::item end type maximum = @@ -261,8 +249,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Unit::maximum end type minimum = @@ -277,8 +263,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Unit::minimum end type price_type = :usage_price | :fixed_price @@ -289,7 +273,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Unit::price_type] + def self?.values: -> ::Array[Orb::Price::Unit::price_type] end type unit_config = { unit_amount: String } @@ -298,8 +282,6 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::Price::Unit::unit_config end type dimensional_price_configuration = @@ -317,53 +299,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Unit::dimensional_price_configuration end end type package = { id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, + billable_metric: Orb::Price::Package::BillableMetric?, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation?, + credit_allocation: Orb::Price::Package::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum?, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration?, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Package::Minimum?, + minimum: Orb::Price::Package::Minimum?, minimum_amount: String?, model_type: :package, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration? + price_type: Orb::Price::Package::price_type, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration? } class Package < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Package::BillableMetric? + attr_accessor billable_metric: Orb::Price::Package::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Package::cadence + attr_accessor cadence: Orb::Price::Package::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Package::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Package::CreditAllocation? attr_accessor currency: String @@ -373,17 +353,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Package::Item + attr_accessor item: Orb::Price::Package::Item - attr_accessor maximum: Orb::Models::Price::Package::Maximum? + attr_accessor maximum: Orb::Price::Package::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Package::Minimum? + attr_accessor minimum: Orb::Price::Package::Minimum? attr_accessor minimum_amount: String? @@ -391,71 +371,65 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::Price::Package::PackageConfig + attr_accessor package_config: Orb::Price::Package::PackageConfig attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Package::price_type + attr_accessor price_type: Orb::Price::Package::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, + billable_metric: Orb::Price::Package::BillableMetric?, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation?, + credit_allocation: Orb::Price::Package::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum?, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration?, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Package::Minimum?, + minimum: Orb::Price::Package::Minimum?, minimum_amount: String?, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, - ?dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration?, + price_type: Orb::Price::Package::price_type, + ?dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::Price::package - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Package::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -464,7 +438,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Package::BillingCycleConfiguration::duration_unit] end end @@ -481,7 +455,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] + def self?.values: -> ::Array[Orb::Price::Package::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -492,28 +466,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Package::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -522,7 +492,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Package::InvoicingCycleConfiguration::duration_unit] end end @@ -534,8 +504,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Package::item end type maximum = @@ -550,8 +518,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Package::maximum end type minimum = @@ -566,8 +532,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Package::minimum end type package_config = { package_amount: String, package_size: Integer } @@ -581,8 +545,6 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::Price::Package::package_config end type price_type = :usage_price | :fixed_price @@ -593,7 +555,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] + def self?.values: -> ::Array[Orb::Price::Package::price_type] end type dimensional_price_configuration = @@ -611,53 +573,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Package::dimensional_price_configuration end end type matrix = { id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, + billable_metric: Orb::Price::Matrix::BillableMetric?, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation?, + credit_allocation: Orb::Price::Matrix::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum?, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration?, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Matrix::Minimum?, + minimum: Orb::Price::Matrix::Minimum?, minimum_amount: String?, model_type: :matrix, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration? + price_type: Orb::Price::Matrix::price_type, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration? } class Matrix < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Matrix::BillableMetric? + attr_accessor billable_metric: Orb::Price::Matrix::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Matrix::cadence + attr_accessor cadence: Orb::Price::Matrix::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Matrix::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Matrix::CreditAllocation? attr_accessor currency: String @@ -667,19 +627,19 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Matrix::Item + attr_accessor item: Orb::Price::Matrix::Item - attr_accessor matrix_config: Orb::Models::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::Price::Matrix::MatrixConfig - attr_accessor maximum: Orb::Models::Price::Matrix::Maximum? + attr_accessor maximum: Orb::Price::Matrix::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Matrix::Minimum? + attr_accessor minimum: Orb::Price::Matrix::Minimum? attr_accessor minimum_amount: String? @@ -689,67 +649,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Matrix::price_type + attr_accessor price_type: Orb::Price::Matrix::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, + billable_metric: Orb::Price::Matrix::BillableMetric?, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation?, + credit_allocation: Orb::Price::Matrix::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum?, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration?, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Matrix::Minimum?, + minimum: Orb::Price::Matrix::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, - ?dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration?, + price_type: Orb::Price::Matrix::price_type, + ?dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::Price::matrix - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Matrix::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -758,7 +712,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Matrix::BillingCycleConfiguration::duration_unit] end end @@ -775,7 +729,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::Price::Matrix::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -786,28 +740,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Matrix::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -816,7 +766,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end @@ -828,15 +778,13 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Matrix::item end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -844,16 +792,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -866,8 +812,6 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Matrix::MatrixConfig::matrix_value end end @@ -883,8 +827,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Matrix::maximum end type minimum = @@ -899,8 +841,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Matrix::minimum end type price_type = :usage_price | :fixed_price @@ -911,7 +851,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] + def self?.values: -> ::Array[Orb::Price::Matrix::price_type] end type dimensional_price_configuration = @@ -929,53 +869,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Matrix::dimensional_price_configuration end end type tiered = { id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + billable_metric: Orb::Price::Tiered::BillableMetric?, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation?, + credit_allocation: Orb::Price::Tiered::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum?, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration?, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Tiered::Minimum?, + minimum: Orb::Price::Tiered::Minimum?, minimum_amount: String?, model_type: :tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration? + price_type: Orb::Price::Tiered::price_type, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration? } class Tiered < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Tiered::BillableMetric? + attr_accessor billable_metric: Orb::Price::Tiered::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Tiered::cadence + attr_accessor cadence: Orb::Price::Tiered::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Tiered::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Tiered::CreditAllocation? attr_accessor currency: String @@ -985,17 +923,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Tiered::Item + attr_accessor item: Orb::Price::Tiered::Item - attr_accessor maximum: Orb::Models::Price::Tiered::Maximum? + attr_accessor maximum: Orb::Price::Tiered::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Tiered::Minimum? + attr_accessor minimum: Orb::Price::Tiered::Minimum? attr_accessor minimum_amount: String? @@ -1005,69 +943,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Tiered::price_type + attr_accessor price_type: Orb::Price::Tiered::price_type - attr_accessor tiered_config: Orb::Models::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::Price::Tiered::TieredConfig - attr_accessor dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + billable_metric: Orb::Price::Tiered::BillableMetric?, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation?, + credit_allocation: Orb::Price::Tiered::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum?, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration?, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Tiered::Minimum?, + minimum: Orb::Price::Tiered::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - ?dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration?, + price_type: Orb::Price::Tiered::price_type, + tiered_config: Orb::Price::Tiered::TieredConfig, + ?dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::Price::tiered - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Tiered::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1076,7 +1008,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Tiered::BillingCycleConfiguration::duration_unit] end end @@ -1093,7 +1025,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::Price::Tiered::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1104,28 +1036,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Tiered::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1134,7 +1062,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end @@ -1146,8 +1074,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Tiered::item end type maximum = @@ -1162,8 +1088,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Tiered::maximum end type minimum = @@ -1178,8 +1102,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Tiered::minimum end type price_type = :usage_price | :fixed_price @@ -1190,21 +1112,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] + def self?.values: -> ::Array[Orb::Price::Tiered::price_type] end type tiered_config = - { tiers: ::Array[Orb::Models::Price::Tiered::TieredConfig::Tier] } + { tiers: ::Array[Orb::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1220,8 +1140,6 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::Price::Tiered::TieredConfig::tier end end @@ -1240,53 +1158,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Tiered::dimensional_price_configuration end end type tiered_bps = { id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation?, + credit_allocation: Orb::Price::TieredBps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration?, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredBps::Minimum?, + minimum: Orb::Price::TieredBps::Minimum?, minimum_amount: String?, model_type: :tiered_bps, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBps::price_type, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration? + price_type: Orb::Price::TieredBps::price_type, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration? } class TieredBps < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::TieredBps::BillableMetric? + attr_accessor billable_metric: Orb::Price::TieredBps::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredBps::cadence + attr_accessor cadence: Orb::Price::TieredBps::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::TieredBps::CreditAllocation? attr_accessor currency: String @@ -1296,17 +1212,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::TieredBps::Item + attr_accessor item: Orb::Price::TieredBps::Item - attr_accessor maximum: Orb::Models::Price::TieredBps::Maximum? + attr_accessor maximum: Orb::Price::TieredBps::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::TieredBps::Minimum? + attr_accessor minimum: Orb::Price::TieredBps::Minimum? attr_accessor minimum_amount: String? @@ -1316,69 +1232,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredBps::price_type + attr_accessor price_type: Orb::Price::TieredBps::price_type - attr_accessor tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig - attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation?, + credit_allocation: Orb::Price::TieredBps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration?, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredBps::Minimum?, + minimum: Orb::Price::TieredBps::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBps::price_type, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - ?dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration?, + price_type: Orb::Price::TieredBps::price_type, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + ?dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::Price::tiered_bps - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1387,7 +1297,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end @@ -1404,7 +1314,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::Price::TieredBps::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1415,28 +1325,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1445,7 +1351,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end @@ -1457,8 +1363,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::item end type maximum = @@ -1473,8 +1377,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::maximum end type minimum = @@ -1489,8 +1391,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::minimum end type price_type = :usage_price | :fixed_price @@ -1501,23 +1401,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredBps::price_type] + def self?.values: -> ::Array[Orb::Price::TieredBps::price_type] end type tiered_bps_config = - { - tiers: ::Array[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier] - } + { tiers: ::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -1541,8 +1437,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::TieredBpsConfig::tier end end @@ -1561,55 +1455,53 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredBps::dimensional_price_configuration end end type bps = { id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::cadence, + billable_metric: Orb::Price::Bps::BillableMetric?, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation?, + credit_allocation: Orb::Price::Bps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum?, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration?, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Bps::Minimum?, + minimum: Orb::Price::Bps::Minimum?, minimum_amount: String?, model_type: :bps, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bps::price_type, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration? + price_type: Orb::Price::Bps::price_type, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration? } class Bps < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Bps::BillableMetric? + attr_accessor billable_metric: Orb::Price::Bps::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration - attr_accessor bps_config: Orb::Models::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::Price::Bps::cadence + attr_accessor cadence: Orb::Price::Bps::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Bps::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Bps::CreditAllocation? attr_accessor currency: String @@ -1619,17 +1511,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Bps::Item + attr_accessor item: Orb::Price::Bps::Item - attr_accessor maximum: Orb::Models::Price::Bps::Maximum? + attr_accessor maximum: Orb::Price::Bps::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Bps::Minimum? + attr_accessor minimum: Orb::Price::Bps::Minimum? attr_accessor minimum_amount: String? @@ -1639,67 +1531,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Bps::price_type + attr_accessor price_type: Orb::Price::Bps::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::cadence, + billable_metric: Orb::Price::Bps::BillableMetric?, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation?, + credit_allocation: Orb::Price::Bps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum?, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration?, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Bps::Minimum?, + minimum: Orb::Price::Bps::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bps::price_type, - ?dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration?, + price_type: Orb::Price::Bps::price_type, + ?dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::Price::bps - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Bps::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1708,7 +1594,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Bps::BillingCycleConfiguration::duration_unit] end end @@ -1720,8 +1606,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::Price::Bps::bps_config end type cadence = @@ -1737,7 +1621,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::Price::Bps::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1748,28 +1632,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Bps::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1778,7 +1658,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end @@ -1790,8 +1670,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Bps::item end type maximum = @@ -1806,8 +1684,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Bps::maximum end type minimum = @@ -1822,8 +1698,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Bps::minimum end type price_type = :usage_price | :fixed_price @@ -1834,7 +1708,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Bps::price_type] + def self?.values: -> ::Array[Orb::Price::Bps::price_type] end type dimensional_price_configuration = @@ -1852,55 +1726,53 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Bps::dimensional_price_configuration end end type bulk_bps = { id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric?, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation?, + credit_allocation: Orb::Price::BulkBps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum?, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration?, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkBps::Minimum?, + minimum: Orb::Price::BulkBps::Minimum?, minimum_amount: String?, model_type: :bulk_bps, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBps::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration? + price_type: Orb::Price::BulkBps::price_type, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration? } class BulkBps < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::BulkBps::BillableMetric? + attr_accessor billable_metric: Orb::Price::BulkBps::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration - attr_accessor bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::Price::BulkBps::cadence + attr_accessor cadence: Orb::Price::BulkBps::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::BulkBps::CreditAllocation? attr_accessor currency: String @@ -1910,17 +1782,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::BulkBps::Item + attr_accessor item: Orb::Price::BulkBps::Item - attr_accessor maximum: Orb::Models::Price::BulkBps::Maximum? + attr_accessor maximum: Orb::Price::BulkBps::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::BulkBps::Minimum? + attr_accessor minimum: Orb::Price::BulkBps::Minimum? attr_accessor minimum_amount: String? @@ -1930,67 +1802,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::BulkBps::price_type + attr_accessor price_type: Orb::Price::BulkBps::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric?, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation?, + credit_allocation: Orb::Price::BulkBps::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum?, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration?, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkBps::Minimum?, + minimum: Orb::Price::BulkBps::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBps::price_type, - ?dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration?, + price_type: Orb::Price::BulkBps::price_type, + ?dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::Price::bulk_bps - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1999,22 +1865,20 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type bulk_bps_config = - { tiers: ::Array[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier] } + { tiers: ::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -2030,8 +1894,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::BulkBpsConfig::tier end end @@ -2048,7 +1910,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::Price::BulkBps::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2059,28 +1921,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2089,7 +1947,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end @@ -2101,8 +1959,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::item end type maximum = @@ -2117,8 +1973,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::maximum end type minimum = @@ -2133,8 +1987,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::minimum end type price_type = :usage_price | :fixed_price @@ -2145,7 +1997,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::BulkBps::price_type] + def self?.values: -> ::Array[Orb::Price::BulkBps::price_type] end type dimensional_price_configuration = @@ -2163,55 +2015,53 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkBps::dimensional_price_configuration end end type bulk = { id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::cadence, + billable_metric: Orb::Price::Bulk::BillableMetric?, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation?, + credit_allocation: Orb::Price::Bulk::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum?, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration?, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Bulk::Minimum?, + minimum: Orb::Price::Bulk::Minimum?, minimum_amount: String?, model_type: :bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bulk::price_type, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration? + price_type: Orb::Price::Bulk::price_type, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration? } class Bulk < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::Bulk::BillableMetric? + attr_accessor billable_metric: Orb::Price::Bulk::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration - attr_accessor bulk_config: Orb::Models::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::Price::Bulk::cadence + attr_accessor cadence: Orb::Price::Bulk::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::Bulk::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::Bulk::CreditAllocation? attr_accessor currency: String @@ -2221,17 +2071,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::Bulk::Item + attr_accessor item: Orb::Price::Bulk::Item - attr_accessor maximum: Orb::Models::Price::Bulk::Maximum? + attr_accessor maximum: Orb::Price::Bulk::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::Bulk::Minimum? + attr_accessor minimum: Orb::Price::Bulk::Minimum? attr_accessor minimum_amount: String? @@ -2241,67 +2091,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Bulk::price_type + attr_accessor price_type: Orb::Price::Bulk::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::cadence, + billable_metric: Orb::Price::Bulk::BillableMetric?, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation?, + credit_allocation: Orb::Price::Bulk::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration?, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum?, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration?, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::Bulk::Minimum?, + minimum: Orb::Price::Bulk::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bulk::price_type, - ?dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration?, + price_type: Orb::Price::Bulk::price_type, + ?dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::Price::bulk - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::Bulk::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2310,22 +2154,20 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type bulk_config = - { tiers: ::Array[Orb::Models::Price::Bulk::BulkConfig::Tier] } + { tiers: ::Array[Orb::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -2337,8 +2179,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::Price::Bulk::BulkConfig::tier end end @@ -2355,7 +2195,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::Price::Bulk::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2366,28 +2206,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::Bulk::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2396,7 +2232,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end @@ -2408,8 +2244,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::Bulk::item end type maximum = @@ -2424,8 +2258,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Bulk::maximum end type minimum = @@ -2440,8 +2272,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::Bulk::minimum end type price_type = :usage_price | :fixed_price @@ -2452,7 +2282,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Bulk::price_type] + def self?.values: -> ::Array[Orb::Price::Bulk::price_type] end type dimensional_price_configuration = @@ -2470,53 +2300,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::Bulk::dimensional_price_configuration end end type threshold_total_amount = { id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric?, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation?, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum?, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum?, + minimum: Orb::Price::ThresholdTotalAmount::Minimum?, minimum_amount: String?, model_type: :threshold_total_amount, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ThresholdTotalAmount::price_type, + price_type: Orb::Price::ThresholdTotalAmount::price_type, threshold_total_amount_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric? + attr_accessor billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::Price::ThresholdTotalAmount::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation? attr_accessor currency: String @@ -2526,17 +2354,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::ThresholdTotalAmount::Item + attr_accessor item: Orb::Price::ThresholdTotalAmount::Item - attr_accessor maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum? + attr_accessor maximum: Orb::Price::ThresholdTotalAmount::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum? + attr_accessor minimum: Orb::Price::ThresholdTotalAmount::Minimum? attr_accessor minimum_amount: String? @@ -2546,69 +2374,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::ThresholdTotalAmount::price_type + attr_accessor price_type: Orb::Price::ThresholdTotalAmount::price_type attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric?, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation?, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum?, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum?, + minimum: Orb::Price::ThresholdTotalAmount::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ThresholdTotalAmount::price_type, + price_type: Orb::Price::ThresholdTotalAmount::price_type, threshold_total_amount_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::Price::threshold_total_amount - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2617,7 +2439,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end @@ -2634,7 +2456,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::Price::ThresholdTotalAmount::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2645,28 +2467,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2675,7 +2493,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end @@ -2687,8 +2505,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::item end type maximum = @@ -2703,8 +2519,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::maximum end type minimum = @@ -2719,8 +2533,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::minimum end type price_type = :usage_price | :fixed_price @@ -2731,7 +2543,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::price_type] + def self?.values: -> ::Array[Orb::Price::ThresholdTotalAmount::price_type] end type dimensional_price_configuration = @@ -2749,53 +2561,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::ThresholdTotalAmount::dimensional_price_configuration end end type tiered_package = { id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackage::Minimum?, + minimum: Orb::Price::TieredPackage::Minimum?, minimum_amount: String?, model_type: :tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackage::price_type, + price_type: Orb::Price::TieredPackage::price_type, tiered_package_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration? } class TieredPackage < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::TieredPackage::BillableMetric? + attr_accessor billable_metric: Orb::Price::TieredPackage::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredPackage::cadence + attr_accessor cadence: Orb::Price::TieredPackage::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::TieredPackage::CreditAllocation? attr_accessor currency: String @@ -2805,17 +2615,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::TieredPackage::Item + attr_accessor item: Orb::Price::TieredPackage::Item - attr_accessor maximum: Orb::Models::Price::TieredPackage::Maximum? + attr_accessor maximum: Orb::Price::TieredPackage::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::TieredPackage::Minimum? + attr_accessor minimum: Orb::Price::TieredPackage::Minimum? attr_accessor minimum_amount: String? @@ -2825,69 +2635,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredPackage::price_type + attr_accessor price_type: Orb::Price::TieredPackage::price_type attr_accessor tiered_package_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackage::Minimum?, + minimum: Orb::Price::TieredPackage::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackage::price_type, + price_type: Orb::Price::TieredPackage::price_type, tiered_package_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::Price::tiered_package - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2896,7 +2700,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end @@ -2913,7 +2717,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::Price::TieredPackage::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2924,28 +2728,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2954,7 +2754,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end @@ -2966,8 +2766,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::item end type maximum = @@ -2982,8 +2780,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::maximum end type minimum = @@ -2998,8 +2794,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::minimum end type price_type = :usage_price | :fixed_price @@ -3010,7 +2804,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::price_type] + def self?.values: -> ::Array[Orb::Price::TieredPackage::price_type] end type dimensional_price_configuration = @@ -3028,53 +2822,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackage::dimensional_price_configuration end end type grouped_tiered = { id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation?, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_tiered_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTiered::Minimum?, + minimum: Orb::Price::GroupedTiered::Minimum?, minimum_amount: String?, model_type: :grouped_tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTiered::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration? + price_type: Orb::Price::GroupedTiered::price_type, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration? } class GroupedTiered < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric? + attr_accessor billable_metric: Orb::Price::GroupedTiered::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedTiered::cadence + attr_accessor cadence: Orb::Price::GroupedTiered::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::GroupedTiered::CreditAllocation? attr_accessor currency: String @@ -3086,17 +2878,17 @@ module Orb attr_accessor grouped_tiered_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::GroupedTiered::Item + attr_accessor item: Orb::Price::GroupedTiered::Item - attr_accessor maximum: Orb::Models::Price::GroupedTiered::Maximum? + attr_accessor maximum: Orb::Price::GroupedTiered::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::GroupedTiered::Minimum? + attr_accessor minimum: Orb::Price::GroupedTiered::Minimum? attr_accessor minimum_amount: String? @@ -3106,67 +2898,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedTiered::price_type + attr_accessor price_type: Orb::Price::GroupedTiered::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation?, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_tiered_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTiered::Minimum?, + minimum: Orb::Price::GroupedTiered::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTiered::price_type, - ?dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration?, + price_type: Orb::Price::GroupedTiered::price_type, + ?dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration?, ?model_type: :grouped_tiered ) -> void - def to_hash: -> Orb::Models::Price::grouped_tiered - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedTiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedTiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3175,7 +2961,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedTiered::BillingCycleConfiguration::duration_unit] end end @@ -3192,7 +2978,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::cadence] + def self?.values: -> ::Array[Orb::Price::GroupedTiered::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3203,28 +2989,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedTiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3233,7 +3015,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit] end end @@ -3245,8 +3027,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::item end type maximum = @@ -3261,8 +3041,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::maximum end type minimum = @@ -3277,8 +3055,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::minimum end type price_type = :usage_price | :fixed_price @@ -3289,7 +3065,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::price_type] + def self?.values: -> ::Array[Orb::Price::GroupedTiered::price_type] end type dimensional_price_configuration = @@ -3307,53 +3083,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTiered::dimensional_price_configuration end end type tiered_with_minimum = { id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation?, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithMinimum::Minimum?, + minimum: Orb::Price::TieredWithMinimum::Minimum?, minimum_amount: String?, model_type: :tiered_with_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimum::price_type, + price_type: Orb::Price::TieredWithMinimum::price_type, tiered_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration? } class TieredWithMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric? + attr_accessor billable_metric: Orb::Price::TieredWithMinimum::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::Price::TieredWithMinimum::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation? attr_accessor currency: String @@ -3363,17 +3137,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::TieredWithMinimum::Item + attr_accessor item: Orb::Price::TieredWithMinimum::Item - attr_accessor maximum: Orb::Models::Price::TieredWithMinimum::Maximum? + attr_accessor maximum: Orb::Price::TieredWithMinimum::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::TieredWithMinimum::Minimum? + attr_accessor minimum: Orb::Price::TieredWithMinimum::Minimum? attr_accessor minimum_amount: String? @@ -3383,69 +3157,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredWithMinimum::price_type + attr_accessor price_type: Orb::Price::TieredWithMinimum::price_type attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation?, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithMinimum::Minimum?, + minimum: Orb::Price::TieredWithMinimum::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimum::price_type, + price_type: Orb::Price::TieredWithMinimum::price_type, tiered_with_minimum_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::Price::tiered_with_minimum - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3454,7 +3222,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end @@ -3471,7 +3239,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::Price::TieredWithMinimum::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3482,28 +3250,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3512,7 +3276,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end @@ -3524,8 +3288,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::item end type maximum = @@ -3540,8 +3302,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::maximum end type minimum = @@ -3556,8 +3316,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::minimum end type price_type = :usage_price | :fixed_price @@ -3568,7 +3326,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::price_type] + def self?.values: -> ::Array[Orb::Price::TieredWithMinimum::price_type] end type dimensional_price_configuration = @@ -3586,53 +3344,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithMinimum::dimensional_price_configuration end end type tiered_package_with_minimum = { id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation?, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum?, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum?, minimum_amount: String?, model_type: :tiered_package_with_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type, + price_type: Orb::Price::TieredPackageWithMinimum::price_type, tiered_package_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration? } class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric? + attr_accessor billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence + attr_accessor cadence: Orb::Price::TieredPackageWithMinimum::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation? attr_accessor currency: String @@ -3642,17 +3398,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::TieredPackageWithMinimum::Item + attr_accessor item: Orb::Price::TieredPackageWithMinimum::Item - attr_accessor maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum? + attr_accessor maximum: Orb::Price::TieredPackageWithMinimum::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum? + attr_accessor minimum: Orb::Price::TieredPackageWithMinimum::Minimum? attr_accessor minimum_amount: String? @@ -3662,69 +3418,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type + attr_accessor price_type: Orb::Price::TieredPackageWithMinimum::price_type attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation?, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum?, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type, + price_type: Orb::Price::TieredPackageWithMinimum::price_type, tiered_package_with_minimum_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration?, ?model_type: :tiered_package_with_minimum ) -> void - def to_hash: -> Orb::Models::Price::tiered_package_with_minimum - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3733,7 +3483,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit] end end @@ -3750,7 +3500,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::cadence] + def self?.values: -> ::Array[Orb::Price::TieredPackageWithMinimum::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3761,28 +3511,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3791,7 +3537,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit] end end @@ -3803,8 +3549,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::item end type maximum = @@ -3819,8 +3563,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::maximum end type minimum = @@ -3835,8 +3577,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::minimum end type price_type = :usage_price | :fixed_price @@ -3847,7 +3587,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::price_type] + def self?.values: -> ::Array[Orb::Price::TieredPackageWithMinimum::price_type] end type dimensional_price_configuration = @@ -3865,53 +3605,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredPackageWithMinimum::dimensional_price_configuration end end type package_with_allocation = { id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation?, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackageWithAllocation::Minimum?, + minimum: Orb::Price::PackageWithAllocation::Minimum?, minimum_amount: String?, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackageWithAllocation::price_type, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration? + price_type: Orb::Price::PackageWithAllocation::price_type, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration? } class PackageWithAllocation < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric? + attr_accessor billable_metric: Orb::Price::PackageWithAllocation::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::Price::PackageWithAllocation::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation? attr_accessor currency: String @@ -3921,17 +3659,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::PackageWithAllocation::Item + attr_accessor item: Orb::Price::PackageWithAllocation::Item - attr_accessor maximum: Orb::Models::Price::PackageWithAllocation::Maximum? + attr_accessor maximum: Orb::Price::PackageWithAllocation::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::PackageWithAllocation::Minimum? + attr_accessor minimum: Orb::Price::PackageWithAllocation::Minimum? attr_accessor minimum_amount: String? @@ -3943,67 +3681,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::PackageWithAllocation::price_type + attr_accessor price_type: Orb::Price::PackageWithAllocation::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation?, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackageWithAllocation::Minimum?, + minimum: Orb::Price::PackageWithAllocation::Minimum?, minimum_amount: String?, name: String, package_with_allocation_config: ::Hash[Symbol, top], plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackageWithAllocation::price_type, - ?dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration?, + price_type: Orb::Price::PackageWithAllocation::price_type, + ?dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::Price::package_with_allocation - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4012,7 +3744,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end @@ -4029,7 +3761,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::Price::PackageWithAllocation::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4040,28 +3772,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4070,7 +3798,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end @@ -4082,8 +3810,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::item end type maximum = @@ -4098,8 +3824,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::maximum end type minimum = @@ -4114,8 +3838,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::minimum end type price_type = :usage_price | :fixed_price @@ -4126,7 +3848,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::price_type] + def self?.values: -> ::Array[Orb::Price::PackageWithAllocation::price_type] end type dimensional_price_configuration = @@ -4144,53 +3866,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::PackageWithAllocation::dimensional_price_configuration end end type unit_with_percent = { id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric?, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation?, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum?, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration?, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithPercent::Minimum?, + minimum: Orb::Price::UnitWithPercent::Minimum?, minimum_amount: String?, model_type: :unit_with_percent, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithPercent::price_type, + price_type: Orb::Price::UnitWithPercent::price_type, unit_with_percent_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration? } class UnitWithPercent < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric? + attr_accessor billable_metric: Orb::Price::UnitWithPercent::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::Price::UnitWithPercent::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation? attr_accessor currency: String @@ -4200,17 +3920,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::UnitWithPercent::Item + attr_accessor item: Orb::Price::UnitWithPercent::Item - attr_accessor maximum: Orb::Models::Price::UnitWithPercent::Maximum? + attr_accessor maximum: Orb::Price::UnitWithPercent::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::UnitWithPercent::Minimum? + attr_accessor minimum: Orb::Price::UnitWithPercent::Minimum? attr_accessor minimum_amount: String? @@ -4220,69 +3940,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::UnitWithPercent::price_type + attr_accessor price_type: Orb::Price::UnitWithPercent::price_type attr_accessor unit_with_percent_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric?, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation?, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum?, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration?, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithPercent::Minimum?, + minimum: Orb::Price::UnitWithPercent::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithPercent::price_type, + price_type: Orb::Price::UnitWithPercent::price_type, unit_with_percent_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::Price::unit_with_percent - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4291,7 +4005,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end @@ -4308,7 +4022,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::Price::UnitWithPercent::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4319,28 +4033,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4349,7 +4059,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end @@ -4361,8 +4071,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::item end type maximum = @@ -4377,8 +4085,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::maximum end type minimum = @@ -4393,8 +4099,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::minimum end type price_type = :usage_price | :fixed_price @@ -4405,7 +4109,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::price_type] + def self?.values: -> ::Array[Orb::Price::UnitWithPercent::price_type] end type dimensional_price_configuration = @@ -4423,53 +4127,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithPercent::dimensional_price_configuration end end type matrix_with_allocation = { id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation?, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum?, + minimum: Orb::Price::MatrixWithAllocation::Minimum?, minimum_amount: String?, model_type: :matrix_with_allocation, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithAllocation::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration? + price_type: Orb::Price::MatrixWithAllocation::price_type, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration? } class MatrixWithAllocation < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric? + attr_accessor billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::MatrixWithAllocation::cadence + attr_accessor cadence: Orb::Price::MatrixWithAllocation::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation? attr_accessor currency: String @@ -4479,19 +4181,19 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::MatrixWithAllocation::Item + attr_accessor item: Orb::Price::MatrixWithAllocation::Item - attr_accessor matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig + attr_accessor matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig - attr_accessor maximum: Orb::Models::Price::MatrixWithAllocation::Maximum? + attr_accessor maximum: Orb::Price::MatrixWithAllocation::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::MatrixWithAllocation::Minimum? + attr_accessor minimum: Orb::Price::MatrixWithAllocation::Minimum? attr_accessor minimum_amount: String? @@ -4501,67 +4203,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::MatrixWithAllocation::price_type + attr_accessor price_type: Orb::Price::MatrixWithAllocation::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation?, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum?, + minimum: Orb::Price::MatrixWithAllocation::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithAllocation::price_type, - ?dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration?, + price_type: Orb::Price::MatrixWithAllocation::price_type, + ?dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration?, ?model_type: :matrix_with_allocation ) -> void - def to_hash: -> Orb::Models::Price::matrix_with_allocation - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4570,7 +4266,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit] end end @@ -4587,7 +4283,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::cadence] + def self?.values: -> ::Array[Orb::Price::MatrixWithAllocation::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4598,28 +4294,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4628,7 +4320,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit] end end @@ -4640,8 +4332,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::item end type matrix_with_allocation_config = @@ -4649,7 +4339,7 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel @@ -4659,17 +4349,15 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::matrix_with_allocation_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -4682,8 +4370,6 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig::matrix_value end end @@ -4699,8 +4385,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::maximum end type minimum = @@ -4715,8 +4399,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::minimum end type price_type = :usage_price | :fixed_price @@ -4727,7 +4409,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::price_type] + def self?.values: -> ::Array[Orb::Price::MatrixWithAllocation::price_type] end type dimensional_price_configuration = @@ -4745,53 +4427,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithAllocation::dimensional_price_configuration end end type tiered_with_proration = { id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation?, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithProration::Minimum?, + minimum: Orb::Price::TieredWithProration::Minimum?, minimum_amount: String?, model_type: :tiered_with_proration, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithProration::price_type, + price_type: Orb::Price::TieredWithProration::price_type, tiered_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration? } class TieredWithProration < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric? + attr_accessor billable_metric: Orb::Price::TieredWithProration::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::Price::TieredWithProration::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::TieredWithProration::CreditAllocation? attr_accessor currency: String @@ -4801,17 +4481,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::TieredWithProration::Item + attr_accessor item: Orb::Price::TieredWithProration::Item - attr_accessor maximum: Orb::Models::Price::TieredWithProration::Maximum? + attr_accessor maximum: Orb::Price::TieredWithProration::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::TieredWithProration::Minimum? + attr_accessor minimum: Orb::Price::TieredWithProration::Minimum? attr_accessor minimum_amount: String? @@ -4821,69 +4501,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredWithProration::price_type + attr_accessor price_type: Orb::Price::TieredWithProration::price_type attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation?, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithProration::Minimum?, + minimum: Orb::Price::TieredWithProration::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithProration::price_type, + price_type: Orb::Price::TieredWithProration::price_type, tiered_with_proration_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::Price::tiered_with_proration - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4892,7 +4566,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end @@ -4909,7 +4583,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::Price::TieredWithProration::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4920,28 +4594,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4950,7 +4620,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end @@ -4962,8 +4632,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::item end type maximum = @@ -4978,8 +4646,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::maximum end type minimum = @@ -4994,8 +4660,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::minimum end type price_type = :usage_price | :fixed_price @@ -5006,7 +4670,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::price_type] + def self?.values: -> ::Array[Orb::Price::TieredWithProration::price_type] end type dimensional_price_configuration = @@ -5024,53 +4688,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::TieredWithProration::dimensional_price_configuration end end type unit_with_proration = { id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation?, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithProration::Minimum?, + minimum: Orb::Price::UnitWithProration::Minimum?, minimum_amount: String?, model_type: :unit_with_proration, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithProration::price_type, + price_type: Orb::Price::UnitWithProration::price_type, unit_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration? } class UnitWithProration < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric? + attr_accessor billable_metric: Orb::Price::UnitWithProration::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::Price::UnitWithProration::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::UnitWithProration::CreditAllocation? attr_accessor currency: String @@ -5080,17 +4742,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::UnitWithProration::Item + attr_accessor item: Orb::Price::UnitWithProration::Item - attr_accessor maximum: Orb::Models::Price::UnitWithProration::Maximum? + attr_accessor maximum: Orb::Price::UnitWithProration::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::UnitWithProration::Minimum? + attr_accessor minimum: Orb::Price::UnitWithProration::Minimum? attr_accessor minimum_amount: String? @@ -5100,69 +4762,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::UnitWithProration::price_type + attr_accessor price_type: Orb::Price::UnitWithProration::price_type attr_accessor unit_with_proration_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation?, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithProration::Minimum?, + minimum: Orb::Price::UnitWithProration::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithProration::price_type, + price_type: Orb::Price::UnitWithProration::price_type, unit_with_proration_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::Price::unit_with_proration - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5171,7 +4827,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end @@ -5188,7 +4844,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::Price::UnitWithProration::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5199,28 +4855,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5229,7 +4881,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end @@ -5241,8 +4893,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::item end type maximum = @@ -5257,8 +4907,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::maximum end type minimum = @@ -5273,8 +4921,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::minimum end type price_type = :usage_price | :fixed_price @@ -5285,7 +4931,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::price_type] + def self?.values: -> ::Array[Orb::Price::UnitWithProration::price_type] end type dimensional_price_configuration = @@ -5303,53 +4949,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::UnitWithProration::dimensional_price_configuration end end type grouped_allocation = { id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation?, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_allocation_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedAllocation::Minimum?, + minimum: Orb::Price::GroupedAllocation::Minimum?, minimum_amount: String?, model_type: :grouped_allocation, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedAllocation::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration? + price_type: Orb::Price::GroupedAllocation::price_type, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration? } class GroupedAllocation < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric? + attr_accessor billable_metric: Orb::Price::GroupedAllocation::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::Price::GroupedAllocation::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation? attr_accessor currency: String @@ -5361,17 +5005,17 @@ module Orb attr_accessor grouped_allocation_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::GroupedAllocation::Item + attr_accessor item: Orb::Price::GroupedAllocation::Item - attr_accessor maximum: Orb::Models::Price::GroupedAllocation::Maximum? + attr_accessor maximum: Orb::Price::GroupedAllocation::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::GroupedAllocation::Minimum? + attr_accessor minimum: Orb::Price::GroupedAllocation::Minimum? attr_accessor minimum_amount: String? @@ -5381,67 +5025,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedAllocation::price_type + attr_accessor price_type: Orb::Price::GroupedAllocation::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation?, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_allocation_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedAllocation::Minimum?, + minimum: Orb::Price::GroupedAllocation::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedAllocation::price_type, - ?dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration?, + price_type: Orb::Price::GroupedAllocation::price_type, + ?dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::Price::grouped_allocation - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5450,7 +5088,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end @@ -5467,7 +5105,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::Price::GroupedAllocation::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5478,28 +5116,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5508,7 +5142,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end @@ -5520,8 +5154,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::item end type maximum = @@ -5536,8 +5168,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::maximum end type minimum = @@ -5552,8 +5182,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::minimum end type price_type = :usage_price | :fixed_price @@ -5564,7 +5192,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::price_type] + def self?.values: -> ::Array[Orb::Price::GroupedAllocation::price_type] end type dimensional_price_configuration = @@ -5582,53 +5210,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedAllocation::dimensional_price_configuration end end type grouped_with_prorated_minimum = { id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation?, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum?, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum?, minimum_amount: String?, model_type: :grouped_with_prorated_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration? + price_type: Orb::Price::GroupedWithProratedMinimum::price_type, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric? + attr_accessor billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::Price::GroupedWithProratedMinimum::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation? attr_accessor currency: String @@ -5640,17 +5266,17 @@ module Orb attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::GroupedWithProratedMinimum::Item + attr_accessor item: Orb::Price::GroupedWithProratedMinimum::Item - attr_accessor maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum? + attr_accessor maximum: Orb::Price::GroupedWithProratedMinimum::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum? + attr_accessor minimum: Orb::Price::GroupedWithProratedMinimum::Minimum? attr_accessor minimum_amount: String? @@ -5660,67 +5286,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type + attr_accessor price_type: Orb::Price::GroupedWithProratedMinimum::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation?, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum?, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, - ?dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration?, + price_type: Orb::Price::GroupedWithProratedMinimum::price_type, + ?dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::Price::grouped_with_prorated_minimum - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5729,7 +5349,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end @@ -5746,7 +5366,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::Price::GroupedWithProratedMinimum::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5757,28 +5377,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5787,7 +5403,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end @@ -5799,8 +5415,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::item end type maximum = @@ -5815,8 +5429,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::maximum end type minimum = @@ -5831,8 +5443,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::minimum end type price_type = :usage_price | :fixed_price @@ -5843,7 +5453,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::price_type] + def self?.values: -> ::Array[Orb::Price::GroupedWithProratedMinimum::price_type] end type dimensional_price_configuration = @@ -5861,53 +5471,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimum::dimensional_price_configuration end end type grouped_with_metered_minimum = { id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation?, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_with_metered_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum?, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum?, minimum_amount: String?, model_type: :grouped_with_metered_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration? + price_type: Orb::Price::GroupedWithMeteredMinimum::price_type, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric? + attr_accessor billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::Price::GroupedWithMeteredMinimum::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation? attr_accessor currency: String @@ -5919,17 +5527,17 @@ module Orb attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::GroupedWithMeteredMinimum::Item + attr_accessor item: Orb::Price::GroupedWithMeteredMinimum::Item - attr_accessor maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum? + attr_accessor maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum? + attr_accessor minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum? attr_accessor minimum_amount: String? @@ -5939,67 +5547,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type + attr_accessor price_type: Orb::Price::GroupedWithMeteredMinimum::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation?, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_with_metered_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum?, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, - ?dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration?, + price_type: Orb::Price::GroupedWithMeteredMinimum::price_type, + ?dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::Price::grouped_with_metered_minimum - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6008,7 +5610,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end @@ -6025,7 +5627,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::Price::GroupedWithMeteredMinimum::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6036,28 +5638,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6066,7 +5664,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end @@ -6078,8 +5676,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::item end type maximum = @@ -6094,8 +5690,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::maximum end type minimum = @@ -6110,8 +5704,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::minimum end type price_type = :usage_price | :fixed_price @@ -6122,7 +5714,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::price_type] + def self?.values: -> ::Array[Orb::Price::GroupedWithMeteredMinimum::price_type] end type dimensional_price_configuration = @@ -6140,53 +5732,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimum::dimensional_price_configuration end end type matrix_with_display_name = { id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric?, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation?, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum?, + maximum: Orb::Price::MatrixWithDisplayName::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum?, + minimum: Orb::Price::MatrixWithDisplayName::Minimum?, minimum_amount: String?, model_type: :matrix_with_display_name, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration? + price_type: Orb::Price::MatrixWithDisplayName::price_type, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric? + attr_accessor billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::Price::MatrixWithDisplayName::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation? attr_accessor currency: String @@ -6196,19 +5786,19 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::MatrixWithDisplayName::Item + attr_accessor item: Orb::Price::MatrixWithDisplayName::Item attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] - attr_accessor maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum? + attr_accessor maximum: Orb::Price::MatrixWithDisplayName::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum? + attr_accessor minimum: Orb::Price::MatrixWithDisplayName::Minimum? attr_accessor minimum_amount: String? @@ -6218,67 +5808,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::MatrixWithDisplayName::price_type + attr_accessor price_type: Orb::Price::MatrixWithDisplayName::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric?, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation?, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum?, + maximum: Orb::Price::MatrixWithDisplayName::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum?, + minimum: Orb::Price::MatrixWithDisplayName::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, - ?dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration?, + price_type: Orb::Price::MatrixWithDisplayName::price_type, + ?dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::Price::matrix_with_display_name - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6287,7 +5871,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end @@ -6304,7 +5888,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::Price::MatrixWithDisplayName::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6315,28 +5899,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6345,7 +5925,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end @@ -6357,8 +5937,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::item end type maximum = @@ -6373,8 +5951,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::maximum end type minimum = @@ -6389,8 +5965,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::minimum end type price_type = :usage_price | :fixed_price @@ -6401,7 +5975,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::price_type] + def self?.values: -> ::Array[Orb::Price::MatrixWithDisplayName::price_type] end type dimensional_price_configuration = @@ -6419,55 +5993,53 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::MatrixWithDisplayName::dimensional_price_configuration end end type bulk_with_proration = { id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProration::cadence, + cadence: Orb::Price::BulkWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation?, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkWithProration::Minimum?, + minimum: Orb::Price::BulkWithProration::Minimum?, minimum_amount: String?, model_type: :bulk_with_proration, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProration::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration? + price_type: Orb::Price::BulkWithProration::price_type, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration? } class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric? + attr_accessor billable_metric: Orb::Price::BulkWithProration::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::Price::BulkWithProration::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::BulkWithProration::CreditAllocation? attr_accessor currency: String @@ -6477,17 +6049,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::BulkWithProration::Item + attr_accessor item: Orb::Price::BulkWithProration::Item - attr_accessor maximum: Orb::Models::Price::BulkWithProration::Maximum? + attr_accessor maximum: Orb::Price::BulkWithProration::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::BulkWithProration::Minimum? + attr_accessor minimum: Orb::Price::BulkWithProration::Minimum? attr_accessor minimum_amount: String? @@ -6497,67 +6069,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::BulkWithProration::price_type + attr_accessor price_type: Orb::Price::BulkWithProration::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric?, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProration::cadence, + cadence: Orb::Price::BulkWithProration::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation?, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum?, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration?, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkWithProration::Minimum?, + minimum: Orb::Price::BulkWithProration::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProration::price_type, - ?dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration?, + price_type: Orb::Price::BulkWithProration::price_type, + ?dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::Price::bulk_with_proration - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6566,7 +6132,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end @@ -6583,7 +6149,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::Price::BulkWithProration::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6594,28 +6160,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6624,7 +6186,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end @@ -6636,8 +6198,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::item end type maximum = @@ -6652,8 +6212,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::maximum end type minimum = @@ -6668,8 +6226,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::minimum end type price_type = :usage_price | :fixed_price @@ -6680,7 +6236,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::price_type] + def self?.values: -> ::Array[Orb::Price::BulkWithProration::price_type] end type dimensional_price_configuration = @@ -6698,53 +6254,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::BulkWithProration::dimensional_price_configuration end end type grouped_tiered_package = { id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_tiered_package_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum?, + minimum: Orb::Price::GroupedTieredPackage::Minimum?, minimum_amount: String?, model_type: :grouped_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackage::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration? + price_type: Orb::Price::GroupedTieredPackage::price_type, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric? + attr_accessor billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::Price::GroupedTieredPackage::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation? attr_accessor currency: String @@ -6756,17 +6310,17 @@ module Orb attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::GroupedTieredPackage::Item + attr_accessor item: Orb::Price::GroupedTieredPackage::Item - attr_accessor maximum: Orb::Models::Price::GroupedTieredPackage::Maximum? + attr_accessor maximum: Orb::Price::GroupedTieredPackage::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::GroupedTieredPackage::Minimum? + attr_accessor minimum: Orb::Price::GroupedTieredPackage::Minimum? attr_accessor minimum_amount: String? @@ -6776,67 +6330,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedTieredPackage::price_type + attr_accessor price_type: Orb::Price::GroupedTieredPackage::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, grouped_tiered_package_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum?, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum?, + minimum: Orb::Price::GroupedTieredPackage::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackage::price_type, - ?dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration?, + price_type: Orb::Price::GroupedTieredPackage::price_type, + ?dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::Price::grouped_tiered_package - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6845,7 +6393,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end @@ -6862,7 +6410,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::Price::GroupedTieredPackage::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6873,28 +6421,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6903,7 +6447,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end @@ -6915,8 +6459,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::item end type maximum = @@ -6931,8 +6473,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::maximum end type minimum = @@ -6947,8 +6487,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::minimum end type price_type = :usage_price | :fixed_price @@ -6959,7 +6497,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::price_type] + def self?.values: -> ::Array[Orb::Price::GroupedTieredPackage::price_type] end type dimensional_price_configuration = @@ -6977,53 +6515,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::GroupedTieredPackage::dimensional_price_configuration end end type max_group_tiered_package = { id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum?, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum?, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum?, minimum_amount: String?, model_type: :max_group_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration? + price_type: Orb::Price::MaxGroupTieredPackage::price_type, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric? + attr_accessor billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::Price::MaxGroupTieredPackage::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation? attr_accessor currency: String @@ -7033,19 +6569,19 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::MaxGroupTieredPackage::Item + attr_accessor item: Orb::Price::MaxGroupTieredPackage::Item attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] - attr_accessor maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum? + attr_accessor maximum: Orb::Price::MaxGroupTieredPackage::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum? + attr_accessor minimum: Orb::Price::MaxGroupTieredPackage::Minimum? attr_accessor minimum_amount: String? @@ -7055,67 +6591,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type + attr_accessor price_type: Orb::Price::MaxGroupTieredPackage::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric?, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation?, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum?, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum?, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, - ?dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration?, + price_type: Orb::Price::MaxGroupTieredPackage::price_type, + ?dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::Price::max_group_tiered_package - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7124,7 +6654,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end @@ -7141,7 +6671,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::Price::MaxGroupTieredPackage::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7152,28 +6682,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7182,7 +6708,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end @@ -7194,8 +6720,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::item end type maximum = @@ -7210,8 +6734,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::maximum end type minimum = @@ -7226,8 +6748,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::minimum end type price_type = :usage_price | :fixed_price @@ -7238,7 +6758,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::price_type] + def self?.values: -> ::Array[Orb::Price::MaxGroupTieredPackage::price_type] end type dimensional_price_configuration = @@ -7256,53 +6776,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::MaxGroupTieredPackage::dimensional_price_configuration end end type scalable_matrix_with_unit_pricing = { id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric?, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation?, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum?, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum?, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum?, minimum_amount: String?, model_type: :scalable_matrix_with_unit_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::price_type, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric? + attr_accessor billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation? attr_accessor currency: String @@ -7312,17 +6830,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item + attr_accessor item: Orb::Price::ScalableMatrixWithUnitPricing::Item - attr_accessor maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum? + attr_accessor maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum? + attr_accessor minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum? attr_accessor minimum_amount: String? @@ -7332,69 +6850,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type + attr_accessor price_type: Orb::Price::ScalableMatrixWithUnitPricing::price_type attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric?, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation?, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum?, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum?, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::price_type, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::Price::scalable_matrix_with_unit_pricing - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7403,7 +6915,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end @@ -7420,7 +6932,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithUnitPricing::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7431,28 +6943,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7461,7 +6969,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end @@ -7473,8 +6981,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::item end type maximum = @@ -7489,8 +6995,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::maximum end type minimum = @@ -7505,8 +7009,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::minimum end type price_type = :usage_price | :fixed_price @@ -7517,7 +7019,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithUnitPricing::price_type] end type dimensional_price_configuration = @@ -7535,53 +7037,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricing::dimensional_price_configuration end end type scalable_matrix_with_tiered_pricing = { id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric?, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation?, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum?, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum?, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum?, minimum_amount: String?, model_type: :scalable_matrix_with_tiered_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::price_type, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration? + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric? + attr_accessor billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation? attr_accessor currency: String @@ -7591,17 +7091,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item + attr_accessor item: Orb::Price::ScalableMatrixWithTieredPricing::Item - attr_accessor maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum? + attr_accessor maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum? + attr_accessor minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum? attr_accessor minimum_amount: String? @@ -7611,69 +7111,63 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type + attr_accessor price_type: Orb::Price::ScalableMatrixWithTieredPricing::price_type attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric?, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation?, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum?, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum?, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::price_type, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration?, + ?dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::Price::scalable_matrix_with_tiered_pricing - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7682,7 +7176,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end @@ -7699,7 +7193,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithTieredPricing::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7710,28 +7204,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7740,7 +7230,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end @@ -7752,8 +7242,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::item end type maximum = @@ -7768,8 +7256,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::maximum end type minimum = @@ -7784,8 +7270,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::minimum end type price_type = :usage_price | :fixed_price @@ -7796,7 +7280,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type] + def self?.values: -> ::Array[Orb::Price::ScalableMatrixWithTieredPricing::price_type] end type dimensional_price_configuration = @@ -7814,53 +7298,51 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricing::dimensional_price_configuration end end type cumulative_grouped_bulk = { id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric?, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation?, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum?, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum?, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum?, minimum_amount: String?, model_type: :cumulative_grouped_bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration? + price_type: Orb::Price::CumulativeGroupedBulk::price_type, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric? + attr_accessor billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric? - attr_accessor billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration + attr_accessor billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::Price::CumulativeGroupedBulk::cadence attr_accessor conversion_rate: Float? attr_accessor created_at: Time - attr_accessor credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation? + attr_accessor credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation? attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -7872,17 +7354,17 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? - attr_accessor item: Orb::Models::Price::CumulativeGroupedBulk::Item + attr_accessor item: Orb::Price::CumulativeGroupedBulk::Item - attr_accessor maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum? + attr_accessor maximum: Orb::Price::CumulativeGroupedBulk::Maximum? attr_accessor maximum_amount: String? attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum? + attr_accessor minimum: Orb::Price::CumulativeGroupedBulk::Minimum? attr_accessor minimum_amount: String? @@ -7892,67 +7374,61 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type + attr_accessor price_type: Orb::Price::CumulativeGroupedBulk::price_type - attr_accessor dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration? + attr_accessor dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration? def initialize: ( id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric?, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::cadence, conversion_rate: Float?, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation?, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum?, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum?, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, - ?dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration?, + price_type: Orb::Price::CumulativeGroupedBulk::price_type, + ?dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::Price::cumulative_grouped_bulk - type billable_metric = { id: String } class BillableMetric < Orb::Internal::Type::BaseModel attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::billable_metric end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7961,7 +7437,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end @@ -7978,7 +7454,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::Price::CumulativeGroupedBulk::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7989,28 +7465,24 @@ module Orb attr_accessor currency: String def initialize: (allows_rollover: bool, currency: String) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::credit_allocation end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8019,7 +7491,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end @@ -8031,8 +7503,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::item end type maximum = @@ -8047,8 +7517,6 @@ module Orb applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::maximum end type minimum = @@ -8063,8 +7531,6 @@ module Orb applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::minimum end type price_type = :usage_price | :fixed_price @@ -8075,7 +7541,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::price_type] + def self?.values: -> ::Array[Orb::Price::CumulativeGroupedBulk::price_type] end type dimensional_price_configuration = @@ -8093,12 +7559,10 @@ module Orb dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void - - def to_hash: -> Orb::Models::Price::CumulativeGroupedBulk::dimensional_price_configuration end end - def self?.variants: -> [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBps, Orb::Models::Price::Bps, Orb::Models::Price::BulkBps, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk] + def self?.variants: -> ::Array[Orb::Models::price] end end end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index 01c4392e..d0c9ca7f 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -7,24 +7,24 @@ module Orb item_id: String, model_type: Orb::Models::PriceCreateParams::model_type, name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, + unit_config: Orb::PriceCreateParams::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::PriceCreateParams::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::PriceCreateParams::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, - package_config: Orb::Models::PriceCreateParams::PackageConfig, - matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, - matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, + package_config: Orb::PriceCreateParams::PackageConfig, + matrix_config: Orb::PriceCreateParams::MatrixConfig, + matrix_with_allocation_config: Orb::PriceCreateParams::MatrixWithAllocationConfig, + tiered_config: Orb::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::PriceCreateParams::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], grouped_tiered_config: ::Hash[Symbol, top], @@ -61,13 +61,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::PriceCreateParams::UnitConfig + attr_accessor unit_config: Orb::PriceCreateParams::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::PriceCreateParams::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -77,25 +77,25 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::PriceCreateParams::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? - attr_accessor package_config: Orb::Models::PriceCreateParams::PackageConfig + attr_accessor package_config: Orb::PriceCreateParams::PackageConfig - attr_accessor matrix_config: Orb::Models::PriceCreateParams::MatrixConfig + attr_accessor matrix_config: Orb::PriceCreateParams::MatrixConfig - attr_accessor matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig + attr_accessor matrix_with_allocation_config: Orb::PriceCreateParams::MatrixWithAllocationConfig - attr_accessor tiered_config: Orb::Models::PriceCreateParams::TieredConfig + attr_accessor tiered_config: Orb::PriceCreateParams::TieredConfig - attr_accessor tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig - attr_accessor bps_config: Orb::Models::PriceCreateParams::BpsConfig + attr_accessor bps_config: Orb::PriceCreateParams::BpsConfig - attr_accessor bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig - attr_accessor bulk_config: Orb::Models::PriceCreateParams::BulkConfig + attr_accessor bulk_config: Orb::PriceCreateParams::BulkConfig attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] @@ -141,15 +141,15 @@ module Orb item_id: String, model_type: Orb::Models::PriceCreateParams::model_type, name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - package_config: Orb::Models::PriceCreateParams::PackageConfig, - matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, - matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, + unit_config: Orb::PriceCreateParams::UnitConfig, + package_config: Orb::PriceCreateParams::PackageConfig, + matrix_config: Orb::PriceCreateParams::MatrixConfig, + matrix_with_allocation_config: Orb::PriceCreateParams::MatrixWithAllocationConfig, + tiered_config: Orb::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::PriceCreateParams::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], grouped_tiered_config: ::Hash[Symbol, top], @@ -171,18 +171,16 @@ module Orb cumulative_grouped_bulk_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PriceCreateParams::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PriceCreateParams::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::price_create_params - type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -215,28 +213,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PriceCreateParams::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PriceCreateParams::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit + duration_unit: Orb::PriceCreateParams::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -245,28 +239,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PriceCreateParams::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PriceCreateParams::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::PriceCreateParams::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::PriceCreateParams::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -275,7 +267,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] end end @@ -287,15 +279,13 @@ module Orb attr_accessor package_size: Integer def initialize: (package_amount: String, package_size: Integer) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::package_config end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::PriceCreateParams::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -303,16 +293,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::PriceCreateParams::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::PriceCreateParams::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -325,8 +313,6 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::MatrixConfig::matrix_value end end @@ -335,7 +321,7 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel @@ -345,17 +331,15 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -368,23 +352,19 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value end end type tiered_config = - { tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] } + { tiers: ::Array[Orb::PriceCreateParams::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + tiers: ::Array[Orb::PriceCreateParams::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -400,25 +380,19 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::TieredConfig::tier end end type tiered_bps_config = - { - tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] - } + { tiers: ::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + tiers: ::Array[Orb::PriceCreateParams::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::tiered_bps_config - type tier = { bps: Float, @@ -442,8 +416,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::TieredBpsConfig::tier end end @@ -455,22 +427,18 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::bps_config end type bulk_bps_config = - { tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] } + { tiers: ::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + tiers: ::Array[Orb::PriceCreateParams::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::bulk_bps_config - type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -486,23 +454,19 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::BulkBpsConfig::tier end end type bulk_config = - { tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] } + { tiers: ::Array[Orb::PriceCreateParams::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::PriceCreateParams::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + tiers: ::Array[Orb::PriceCreateParams::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::PriceCreateParams::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -511,8 +475,6 @@ module Orb attr_accessor maximum_units: Float? def initialize: (unit_amount: String, ?maximum_units: Float?) -> void - - def to_hash: -> Orb::Models::PriceCreateParams::BulkConfig::tier end end end diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index 99850b5c..04c4d736 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -38,8 +38,6 @@ module Orb ?grouping_keys: ::Array[String], ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::price_evaluate_params end end end diff --git a/sig/orb/models/price_evaluate_response.rbs b/sig/orb/models/price_evaluate_response.rbs index ab56f3fa..8604c434 100644 --- a/sig/orb/models/price_evaluate_response.rbs +++ b/sig/orb/models/price_evaluate_response.rbs @@ -1,14 +1,11 @@ module Orb module Models - type price_evaluate_response = - { data: ::Array[Orb::Models::EvaluatePriceGroup] } + type price_evaluate_response = { data: ::Array[Orb::EvaluatePriceGroup] } class PriceEvaluateResponse < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::EvaluatePriceGroup] + attr_accessor data: ::Array[Orb::EvaluatePriceGroup] - def initialize: (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void - - def to_hash: -> Orb::Models::price_evaluate_response + def initialize: (data: ::Array[Orb::EvaluatePriceGroup]) -> void end end end diff --git a/sig/orb/models/price_fetch_params.rbs b/sig/orb/models/price_fetch_params.rbs index 559d54c8..f4b7d461 100644 --- a/sig/orb/models/price_fetch_params.rbs +++ b/sig/orb/models/price_fetch_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::price_fetch_params end end end diff --git a/sig/orb/models/price_list_params.rbs b/sig/orb/models/price_list_params.rbs index 57deb46d..f877a470 100644 --- a/sig/orb/models/price_list_params.rbs +++ b/sig/orb/models/price_list_params.rbs @@ -19,8 +19,6 @@ module Orb ?limit: Integer, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::price_list_params end end end diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 47662ac5..b7b4a983 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -14,8 +14,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::price_update_params end end end diff --git a/sig/orb/models/prices/external_price_id_fetch_params.rbs b/sig/orb/models/prices/external_price_id_fetch_params.rbs index 7179319c..d34d6c07 100644 --- a/sig/orb/models/prices/external_price_id_fetch_params.rbs +++ b/sig/orb/models/prices/external_price_id_fetch_params.rbs @@ -9,8 +9,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::Prices::external_price_id_fetch_params end end end diff --git a/sig/orb/models/prices/external_price_id_update_params.rbs b/sig/orb/models/prices/external_price_id_update_params.rbs index 0778fe8e..38641f80 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -15,8 +15,6 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::Prices::external_price_id_update_params end end end diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index 3e789afe..7a43f094 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -4,30 +4,30 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Subscription::AdjustmentInterval], auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], + discount_intervals: ::Array[Orb::Subscription::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + maximum_intervals: ::Array[Orb::Subscription::MaximumInterval], metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], + minimum_intervals: ::Array[Orb::Subscription::MinimumInterval], net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange?, + plan: Orb::Plan, + price_intervals: ::Array[Orb::Subscription::PriceInterval], + redeemed_coupon: Orb::Subscription::RedeemedCoupon?, start_date: Time, - status: Orb::Models::Subscription::status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::status, + trial_info: Orb::Subscription::TrialInfo } class Subscription < Orb::Internal::Type::BaseModel @@ -35,11 +35,11 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Subscription::AdjustmentInterval] attr_accessor auto_collection: bool? - attr_accessor billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration + attr_accessor billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration attr_accessor billing_cycle_day: Integer @@ -49,75 +49,73 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: ::Array[Orb::Models::Subscription::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::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::Subscription::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Subscription::MaximumInterval] attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Subscription::MinimumInterval] attr_accessor net_terms: Integer - attr_accessor pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange? + attr_accessor pending_subscription_change: Orb::Subscription::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan - attr_accessor price_intervals: ::Array[Orb::Models::Subscription::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Subscription::PriceInterval] - attr_accessor redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon? + attr_accessor redeemed_coupon: Orb::Subscription::RedeemedCoupon? attr_accessor start_date: Time - attr_accessor status: Orb::Models::Subscription::status + attr_accessor status: Orb::Subscription::status - attr_accessor trial_info: Orb::Models::Subscription::TrialInfo + attr_accessor trial_info: Orb::Subscription::TrialInfo def initialize: ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Subscription::AdjustmentInterval], auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], + discount_intervals: ::Array[Orb::Subscription::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + maximum_intervals: ::Array[Orb::Subscription::MaximumInterval], metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], + minimum_intervals: ::Array[Orb::Subscription::MinimumInterval], net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange?, + plan: Orb::Plan, + price_intervals: ::Array[Orb::Subscription::PriceInterval], + redeemed_coupon: Orb::Subscription::RedeemedCoupon?, start_date: Time, - status: Orb::Models::Subscription::status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::status, + trial_info: Orb::Subscription::TrialInfo ) -> void - def to_hash: -> Orb::Models::subscription - type adjustment_interval = { id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, + adjustment: Orb::Subscription::AdjustmentInterval::adjustment, applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time @@ -126,7 +124,7 @@ module Orb class AdjustmentInterval < Orb::Internal::Type::BaseModel attr_accessor id: String - attr_accessor adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment + attr_accessor adjustment: Orb::Subscription::AdjustmentInterval::adjustment attr_accessor applies_to_price_interval_ids: ::Array[String] @@ -136,20 +134,18 @@ module Orb def initialize: ( id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, + adjustment: Orb::Subscription::AdjustmentInterval::adjustment, applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void - def to_hash: -> Orb::Models::Subscription::adjustment_interval - type adjustment = - Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount - | Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount - | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount - | Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum - | Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum + Orb::Subscription::AdjustmentInterval::Adjustment::UsageDiscount + | Orb::Subscription::AdjustmentInterval::Adjustment::AmountDiscount + | Orb::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount + | Orb::Subscription::AdjustmentInterval::Adjustment::Minimum + | Orb::Subscription::AdjustmentInterval::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -189,8 +185,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -228,8 +222,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -267,8 +259,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -310,8 +300,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -349,11 +337,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Subscription::AdjustmentInterval::adjustment] end end @@ -372,14 +358,12 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::Subscription::billing_cycle_anchor_configuration end type discount_interval = - Orb::Models::Subscription::DiscountInterval::Amount - | Orb::Models::Subscription::DiscountInterval::Percentage - | Orb::Models::Subscription::DiscountInterval::Usage + Orb::Subscription::DiscountInterval::Amount + | Orb::Subscription::DiscountInterval::Percentage + | Orb::Subscription::DiscountInterval::Usage module DiscountInterval extend Orb::Internal::Type::Union @@ -415,8 +399,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount end type percentage = @@ -450,8 +432,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage end type usage = @@ -485,11 +465,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::Amount, Orb::Models::Subscription::DiscountInterval::Percentage, Orb::Models::Subscription::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Subscription::discount_interval] end type fixed_fee_quantity_schedule = @@ -510,8 +488,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::Subscription::fixed_fee_quantity_schedule end type maximum_interval = @@ -541,8 +517,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::Subscription::maximum_interval end type minimum_interval = @@ -572,8 +546,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::Subscription::minimum_interval end type pending_subscription_change = { id: String } @@ -582,8 +554,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::Subscription::pending_subscription_change end type price_interval = @@ -594,7 +564,7 @@ module Orb current_billing_period_start_date: Time?, end_date: Time?, filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Subscription::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time, usage_customer_ids: ::Array[String]? @@ -613,7 +583,7 @@ module Orb attr_accessor filter: String? - attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Subscription::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -628,14 +598,12 @@ module Orb current_billing_period_start_date: Time?, end_date: Time?, filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Subscription::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time, usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::Subscription::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -651,8 +619,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition end end @@ -671,8 +637,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming @@ -684,7 +648,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self?.values: -> ::Array[Orb::Models::Subscription::status] + def self?.values: -> ::Array[Orb::Subscription::status] end type trial_info = { end_date: Time? } @@ -693,8 +657,6 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::Subscription::trial_info end end end diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 1aa21836..a1e7870e 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -25,8 +25,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_cancel_params - type cancel_option = :end_of_subscription_term | :immediate | :requested_date diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index c2a44b2b..015a57a2 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionCancelResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_cancel_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionCancelResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_change_apply_params.rbs b/sig/orb/models/subscription_change_apply_params.rbs index b358187e..ad56551a 100644 --- a/sig/orb/models/subscription_change_apply_params.rbs +++ b/sig/orb/models/subscription_change_apply_params.rbs @@ -17,8 +17,6 @@ module Orb ?previously_collected_amount: String?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::subscription_change_apply_params end end end diff --git a/sig/orb/models/subscription_change_apply_response.rbs b/sig/orb/models/subscription_change_apply_response.rbs index bf300801..0ba97308 100644 --- a/sig/orb/models/subscription_change_apply_response.rbs +++ b/sig/orb/models/subscription_change_apply_response.rbs @@ -32,8 +32,6 @@ module Orb ?cancelled_at: Time? ) -> void - def to_hash: -> Orb::Models::subscription_change_apply_response - type status = :pending | :applied | :cancelled module Status @@ -57,7 +55,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval], end_date: Time?, @@ -68,7 +66,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -96,7 +94,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -118,7 +116,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval] @@ -142,7 +140,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval], end_date: Time?, @@ -153,7 +151,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -162,8 +160,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionChangeApplyResponse::Subscription::ChangedResources? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::subscription - type adjustment_interval = { id: String, @@ -192,8 +188,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::adjustment_interval - type adjustment = Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount @@ -239,8 +233,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -278,8 +270,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -317,8 +307,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -360,8 +348,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -399,11 +385,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment] end end @@ -422,8 +406,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::billing_cycle_anchor_configuration end type discount_interval = @@ -465,8 +447,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::amount end type percentage = @@ -500,8 +480,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::percentage end type usage = @@ -535,11 +513,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval] end type fixed_fee_quantity_schedule = @@ -565,8 +541,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::fixed_fee_quantity_schedule end type maximum_interval = @@ -596,8 +570,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::maximum_interval end type minimum_interval = @@ -627,8 +599,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::minimum_interval end type pending_subscription_change = { id: String } @@ -637,8 +607,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::pending_subscription_change end type price_interval = @@ -689,8 +657,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -706,8 +672,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval::fixed_fee_quantity_transition end end @@ -726,8 +690,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming @@ -748,35 +710,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeApplyResponse::Subscription::changed_resources end end end diff --git a/sig/orb/models/subscription_change_cancel_params.rbs b/sig/orb/models/subscription_change_cancel_params.rbs index 7db5567f..de91f82f 100644 --- a/sig/orb/models/subscription_change_cancel_params.rbs +++ b/sig/orb/models/subscription_change_cancel_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::subscription_change_cancel_params end end end diff --git a/sig/orb/models/subscription_change_cancel_response.rbs b/sig/orb/models/subscription_change_cancel_response.rbs index 1cdf16b2..5088f408 100644 --- a/sig/orb/models/subscription_change_cancel_response.rbs +++ b/sig/orb/models/subscription_change_cancel_response.rbs @@ -32,8 +32,6 @@ module Orb ?cancelled_at: Time? ) -> void - def to_hash: -> Orb::Models::subscription_change_cancel_response - type status = :pending | :applied | :cancelled module Status @@ -57,7 +55,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::discount_interval], end_date: Time?, @@ -68,7 +66,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -96,7 +94,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -118,7 +116,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval] @@ -142,7 +140,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::discount_interval], end_date: Time?, @@ -153,7 +151,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeCancelResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeCancelResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -162,8 +160,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionChangeCancelResponse::Subscription::ChangedResources? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::subscription - type adjustment_interval = { id: String, @@ -192,8 +188,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::adjustment_interval - type adjustment = Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount @@ -239,8 +233,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -278,8 +270,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -317,8 +307,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -360,8 +348,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -399,11 +385,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::AdjustmentInterval::adjustment] end end @@ -422,8 +406,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::billing_cycle_anchor_configuration end type discount_interval = @@ -465,8 +447,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::amount end type percentage = @@ -500,8 +480,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::percentage end type usage = @@ -535,11 +513,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeCancelResponse::Subscription::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeCancelResponse::Subscription::discount_interval] end type fixed_fee_quantity_schedule = @@ -565,8 +541,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::fixed_fee_quantity_schedule end type maximum_interval = @@ -596,8 +570,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::maximum_interval end type minimum_interval = @@ -627,8 +599,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::minimum_interval end type pending_subscription_change = { id: String } @@ -637,8 +607,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::pending_subscription_change end type price_interval = @@ -689,8 +657,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -706,8 +672,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::PriceInterval::fixed_fee_quantity_transition end end @@ -726,8 +690,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming @@ -748,35 +710,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeCancelResponse::Subscription::changed_resources end end end diff --git a/sig/orb/models/subscription_change_retrieve_params.rbs b/sig/orb/models/subscription_change_retrieve_params.rbs index 18648e49..dc9894ec 100644 --- a/sig/orb/models/subscription_change_retrieve_params.rbs +++ b/sig/orb/models/subscription_change_retrieve_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::subscription_change_retrieve_params end end end diff --git a/sig/orb/models/subscription_change_retrieve_response.rbs b/sig/orb/models/subscription_change_retrieve_response.rbs index 7351e803..d21b77ba 100644 --- a/sig/orb/models/subscription_change_retrieve_response.rbs +++ b/sig/orb/models/subscription_change_retrieve_response.rbs @@ -32,8 +32,6 @@ module Orb ?cancelled_at: Time? ) -> void - def to_hash: -> Orb::Models::subscription_change_retrieve_response - type status = :pending | :applied | :cancelled module Status @@ -57,7 +55,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::discount_interval], end_date: Time?, @@ -68,7 +66,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -96,7 +94,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -118,7 +116,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval] @@ -142,7 +140,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::discount_interval], end_date: Time?, @@ -153,7 +151,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::RedeemedCoupon?, start_date: Time, @@ -162,8 +160,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::ChangedResources? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::subscription - type adjustment_interval = { id: String, @@ -192,8 +188,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::adjustment_interval - type adjustment = Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount @@ -239,8 +233,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -278,8 +270,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -317,8 +307,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -360,8 +348,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -399,11 +385,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::AdjustmentInterval::adjustment] end end @@ -422,8 +406,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::billing_cycle_anchor_configuration end type discount_interval = @@ -465,8 +447,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::amount end type percentage = @@ -500,8 +480,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::percentage end type usage = @@ -535,11 +513,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Amount, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Percentage, Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::discount_interval] end type fixed_fee_quantity_schedule = @@ -565,8 +541,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::fixed_fee_quantity_schedule end type maximum_interval = @@ -596,8 +570,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::maximum_interval end type minimum_interval = @@ -627,8 +599,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::minimum_interval end type pending_subscription_change = { id: String } @@ -637,8 +607,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::pending_subscription_change end type price_interval = @@ -689,8 +657,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -706,8 +672,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::PriceInterval::fixed_fee_quantity_transition end end @@ -726,8 +690,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming @@ -748,35 +710,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionChangeRetrieveResponse::Subscription::changed_resources end end end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 3283f9c3..14806c54 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -2,12 +2,12 @@ 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::SubscriptionCreateParams::AddAdjustment]?, + add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?, align_billing_with_subscription_start_date: bool, auto_collection: bool?, aws_region: String?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + billing_cycle_anchor_configuration: Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, coupon_redemption_code: String?, credits_overage_rate: Float?, customer_id: String?, @@ -26,10 +26,10 @@ module Orb 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]?, + remove_adjustments: ::Array[Orb::SubscriptionCreateParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::SubscriptionCreateParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::SubscriptionCreateParams::ReplacePrice]?, start_date: Time?, trial_duration_days: Integer?, usage_customer_ids: ::Array[String]? @@ -40,9 +40,9 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_accessor add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]? + attr_accessor add_adjustments: ::Array[Orb::SubscriptionCreateParams::AddAdjustment]? - attr_accessor add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]? + attr_accessor add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]? attr_reader align_billing_with_subscription_start_date: bool? @@ -52,7 +52,7 @@ module Orb attr_accessor aws_region: String? - attr_accessor billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration? + attr_accessor billing_cycle_anchor_configuration: Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration? attr_accessor coupon_redemption_code: String? @@ -90,13 +90,13 @@ module Orb attr_accessor price_overrides: ::Array[top]? - attr_accessor remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]? + attr_accessor remove_adjustments: ::Array[Orb::SubscriptionCreateParams::RemoveAdjustment]? - attr_accessor remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]? + attr_accessor remove_prices: ::Array[Orb::SubscriptionCreateParams::RemovePrice]? - attr_accessor replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]? + attr_accessor replace_adjustments: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment]? - attr_accessor replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]? + attr_accessor replace_prices: ::Array[Orb::SubscriptionCreateParams::ReplacePrice]? attr_accessor start_date: Time? @@ -105,12 +105,12 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? def initialize: ( - ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?add_adjustments: ::Array[Orb::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?, ?align_billing_with_subscription_start_date: bool, ?auto_collection: bool?, ?aws_region: String?, - ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?billing_cycle_anchor_configuration: Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, ?coupon_redemption_code: String?, ?credits_overage_rate: Float?, ?customer_id: String?, @@ -129,28 +129,26 @@ module Orb ?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]?, + ?remove_adjustments: ::Array[Orb::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::SubscriptionCreateParams::ReplacePrice]?, ?start_date: Time?, ?trial_duration_days: Integer?, ?usage_customer_ids: ::Array[String]?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_create_params - type add_adjustment = { - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, + adjustment: Orb::SubscriptionCreateParams::AddAdjustment::adjustment, end_date: Time?, plan_phase_order: Integer?, start_date: Time? } class AddAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment + attr_accessor adjustment: Orb::SubscriptionCreateParams::AddAdjustment::adjustment attr_accessor end_date: Time? @@ -159,20 +157,18 @@ module Orb attr_accessor start_date: Time? def initialize: ( - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, + adjustment: Orb::SubscriptionCreateParams::AddAdjustment::adjustment, ?end_date: Time?, ?plan_phase_order: Integer?, ?start_date: Time? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::add_adjustment - type adjustment = - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount - | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount - | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount - | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum - | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount + | Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount + | Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount + | Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum + | Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -202,8 +198,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::percentage_discount end type usage_discount = @@ -231,8 +225,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::usage_discount end type amount_discount = @@ -260,8 +252,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::amount_discount end type minimum = @@ -293,8 +283,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::minimum end type maximum = @@ -322,32 +310,30 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::SubscriptionCreateParams::AddAdjustment::adjustment] end end type add_price = { - allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, + allocation_price: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice?, + discounts: ::Array[Orb::SubscriptionCreateParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, minimum_amount: String?, plan_phase_order: Integer?, - price: Orb::Models::SubscriptionCreateParams::AddPrice::price?, + price: Orb::SubscriptionCreateParams::AddPrice::price?, price_id: String?, start_date: Time? } class AddPrice < Orb::Internal::Type::BaseModel - attr_accessor allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice? + attr_accessor allocation_price: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice? - attr_accessor discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]? + attr_accessor discounts: ::Array[Orb::SubscriptionCreateParams::AddPrice::Discount]? attr_accessor end_date: Time? @@ -359,31 +345,29 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price: Orb::Models::SubscriptionCreateParams::AddPrice::price? + attr_accessor price: Orb::SubscriptionCreateParams::AddPrice::price? attr_accessor price_id: String? attr_accessor start_date: Time? def initialize: ( - ?allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, - ?discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, + ?allocation_price: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::SubscriptionCreateParams::AddPrice::Discount]?, ?end_date: Time?, ?external_price_id: String?, ?maximum_amount: String?, ?minimum_amount: String?, ?plan_phase_order: Integer?, - ?price: Orb::Models::SubscriptionCreateParams::AddPrice::price?, + ?price: Orb::SubscriptionCreateParams::AddPrice::price?, ?price_id: String?, ?start_date: Time? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::add_price - type allocation_price = { amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool } @@ -391,7 +375,7 @@ module Orb class AllocationPrice < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence attr_accessor currency: String @@ -399,13 +383,11 @@ module Orb def initialize: ( amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::allocation_price - type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -419,20 +401,20 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] end end type discount = { - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, + discount_type: Orb::SubscriptionCreateParams::AddPrice::Discount::discount_type, amount_discount: String?, percentage_discount: Float?, usage_discount: Float? } class Discount < Orb::Internal::Type::BaseModel - attr_accessor discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type + attr_accessor discount_type: Orb::SubscriptionCreateParams::AddPrice::Discount::discount_type attr_accessor amount_discount: String? @@ -441,14 +423,12 @@ module Orb attr_accessor usage_discount: Float? def initialize: ( - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, + discount_type: Orb::SubscriptionCreateParams::AddPrice::Discount::discount_type, ?amount_discount: String?, ?percentage_discount: Float?, ?usage_discount: Float? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::discount - type discount_type = :percentage | :usage | :amount module DiscountType @@ -458,62 +438,62 @@ module Orb USAGE: :usage AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Discount::discount_type] end end type price = - Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName - | Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::AddPrice::Price::Unit + | Orb::SubscriptionCreateParams::AddPrice::Price::Package + | Orb::SubscriptionCreateParams::AddPrice::Price::Matrix + | Orb::SubscriptionCreateParams::AddPrice::Price::Tiered + | Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps + | Orb::SubscriptionCreateParams::AddPrice::Price::Bps + | Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps + | Orb::SubscriptionCreateParams::AddPrice::Price::Bulk + | Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount + | Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage + | Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum + | Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent + | Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation + | Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration + | Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum + | Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration + | Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing + | Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing + | Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk + | Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum + | Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::cadence, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::cadence attr_accessor item_id: String @@ -521,13 +501,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -539,33 +519,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::cadence, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::unit - type cadence = :annual | :semi_annual @@ -584,7 +562,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -593,28 +571,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -623,28 +597,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -653,33 +625,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Package::cadence, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Package::cadence attr_accessor item_id: String @@ -687,13 +659,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig + attr_accessor package_config: Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -705,33 +677,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Package::cadence, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionCreateParams::AddPrice::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::package - type cadence = :annual | :semi_annual @@ -750,7 +720,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Package::cadence] end type package_config = @@ -765,28 +735,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -795,28 +761,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -825,37 +789,37 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -865,7 +829,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -877,33 +841,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::matrix - type cadence = :annual | :semi_annual @@ -922,14 +884,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -937,16 +899,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -959,29 +919,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -990,28 +946,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1020,33 +974,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence attr_accessor item_id: String @@ -1054,13 +1008,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1072,33 +1026,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::tiered - type cadence = :annual | :semi_annual @@ -1117,23 +1069,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1149,29 +1099,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1180,28 +1126,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1210,33 +1154,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence attr_accessor item_id: String @@ -1244,13 +1188,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1262,33 +1206,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::tiered_bps - type cadence = :annual | :semi_annual @@ -1307,23 +1249,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -1347,29 +1287,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1378,28 +1314,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1408,35 +1342,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::cadence, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::cadence attr_accessor item_id: String @@ -1448,7 +1382,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1460,33 +1394,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -1495,8 +1427,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::bps_config end type cadence = @@ -1517,27 +1447,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1546,28 +1474,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1576,35 +1502,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence attr_accessor item_id: String @@ -1616,7 +1542,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1628,47 +1554,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, @@ -1688,8 +1610,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BulkBpsConfig::tier end end @@ -1711,27 +1631,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1740,28 +1658,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1770,35 +1686,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence attr_accessor item_id: String @@ -1810,7 +1726,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1822,47 +1738,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -1874,8 +1786,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BulkConfig::tier end end @@ -1897,27 +1807,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1926,28 +1834,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1956,33 +1862,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence, item_id: String, model_type: :threshold_total_amount, name: String, threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence attr_accessor item_id: String @@ -1996,7 +1902,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2008,33 +1914,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::threshold_total_amount - type cadence = :annual | :semi_annual @@ -2053,27 +1957,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2082,28 +1984,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2112,33 +2012,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence, item_id: String, model_type: :tiered_package, name: String, tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence attr_accessor item_id: String @@ -2152,7 +2052,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2164,33 +2064,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::tiered_package - type cadence = :annual | :semi_annual @@ -2209,27 +2107,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2238,28 +2134,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2268,33 +2162,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence, item_id: String, model_type: :tiered_with_minimum, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence attr_accessor item_id: String @@ -2308,7 +2202,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2320,33 +2214,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::tiered_with_minimum - type cadence = :annual | :semi_annual @@ -2365,27 +2257,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2394,28 +2284,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2424,33 +2312,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence, item_id: String, model_type: :unit_with_percent, name: String, unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence attr_accessor item_id: String @@ -2464,7 +2352,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2476,33 +2364,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::unit_with_percent - type cadence = :annual | :semi_annual @@ -2521,27 +2407,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2550,28 +2434,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2580,33 +2462,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence, item_id: String, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence attr_accessor item_id: String @@ -2620,7 +2502,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2632,33 +2514,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::package_with_allocation - type cadence = :annual | :semi_annual @@ -2677,27 +2557,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2706,28 +2584,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2736,33 +2612,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, item_id: String, model_type: :tiered_with_proration, name: String, tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence attr_accessor item_id: String @@ -2776,7 +2652,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2788,33 +2664,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::tiered_with_proration - type cadence = :annual | :semi_annual @@ -2833,27 +2707,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2862,28 +2734,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2892,33 +2762,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence, item_id: String, model_type: :unit_with_proration, name: String, unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence attr_accessor item_id: String @@ -2932,7 +2802,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2944,33 +2814,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::unit_with_proration - type cadence = :annual | :semi_annual @@ -2989,27 +2857,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3018,28 +2884,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3048,33 +2912,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence attr_accessor grouped_allocation_config: ::Hash[Symbol, top] @@ -3088,7 +2952,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3100,33 +2964,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::grouped_allocation - type cadence = :annual | :semi_annual @@ -3145,27 +3007,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3174,28 +3034,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3204,33 +3062,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] @@ -3244,7 +3102,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3256,33 +3114,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual @@ -3301,27 +3157,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3330,28 +3184,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3360,7 +3212,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end @@ -3368,19 +3220,19 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -3388,7 +3240,7 @@ module Orb class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence attr_accessor item_id: String @@ -3400,7 +3252,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3412,7 +3264,7 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -3420,25 +3272,23 @@ module Orb def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::bulk_with_proration - type cadence = :annual | :semi_annual @@ -3457,27 +3307,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3486,28 +3334,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3516,33 +3362,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor item_id: String @@ -3556,7 +3402,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3568,33 +3414,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual @@ -3613,27 +3457,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3642,28 +3484,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3672,33 +3512,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor item_id: String @@ -3712,7 +3552,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3724,33 +3564,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual @@ -3769,27 +3607,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3798,28 +3634,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3828,33 +3662,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, model_type: :cumulative_grouped_bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -3868,7 +3702,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3880,33 +3714,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual @@ -3925,27 +3757,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3954,28 +3784,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3984,33 +3812,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence attr_accessor item_id: String @@ -4024,7 +3852,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4036,33 +3864,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::max_group_tiered_package - type cadence = :annual | :semi_annual @@ -4081,27 +3907,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4110,28 +3934,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4140,33 +3962,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] @@ -4180,7 +4002,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4192,33 +4014,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual @@ -4237,27 +4057,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4266,28 +4084,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4296,33 +4112,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence attr_accessor item_id: String @@ -4336,7 +4152,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4348,33 +4164,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::matrix_with_display_name - type cadence = :annual | :semi_annual @@ -4393,27 +4207,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4422,28 +4234,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4452,33 +4262,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] @@ -4492,7 +4302,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4504,33 +4314,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::grouped_tiered_package - type cadence = :annual | :semi_annual @@ -4549,27 +4357,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4578,28 +4384,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4608,12 +4412,12 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Unit, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Package, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedTieredPackage] + def self?.variants: -> ::Array[Orb::SubscriptionCreateParams::AddPrice::price] end end @@ -4632,8 +4436,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration end type external_marketplace = :google | :aws | :azure @@ -4654,8 +4456,6 @@ module Orb attr_accessor adjustment_id: String def initialize: (adjustment_id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_adjustment end type remove_price = { external_price_id: String?, price_id: String? } @@ -4669,34 +4469,30 @@ module Orb ?external_price_id: String?, ?price_id: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_price end type replace_adjustment = { - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, + adjustment: Orb::SubscriptionCreateParams::ReplaceAdjustment::adjustment, replaces_adjustment_id: String } class ReplaceAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment + attr_accessor adjustment: Orb::SubscriptionCreateParams::ReplaceAdjustment::adjustment attr_accessor replaces_adjustment_id: String def initialize: ( - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, + adjustment: Orb::SubscriptionCreateParams::ReplaceAdjustment::adjustment, replaces_adjustment_id: String ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_adjustment - type adjustment = - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount - | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount - | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount - | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum - | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount + | Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount + | Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount + | Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum + | Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -4726,8 +4522,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::percentage_discount end type usage_discount = @@ -4755,8 +4549,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::usage_discount end type amount_discount = @@ -4784,8 +4576,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::amount_discount end type minimum = @@ -4817,8 +4607,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::minimum end type maximum = @@ -4846,33 +4634,31 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::adjustment] end end type replace_price = { replaces_price_id: String, - allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + allocation_price: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, + discounts: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, minimum_amount: String?, - price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, + price: Orb::SubscriptionCreateParams::ReplacePrice::price?, price_id: String? } class ReplacePrice < Orb::Internal::Type::BaseModel attr_accessor replaces_price_id: String - attr_accessor allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice? + attr_accessor allocation_price: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice? - attr_accessor discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]? + attr_accessor discounts: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Discount]? attr_accessor external_price_id: String? @@ -4882,28 +4668,26 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price? + attr_accessor price: Orb::SubscriptionCreateParams::ReplacePrice::price? attr_accessor price_id: String? def initialize: ( replaces_price_id: String, - ?allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, - ?discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + ?allocation_price: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Discount]?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?maximum_amount: String?, ?minimum_amount: String?, - ?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, + ?price: Orb::SubscriptionCreateParams::ReplacePrice::price?, ?price_id: String? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_price - type allocation_price = { amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool } @@ -4911,7 +4695,7 @@ module Orb class AllocationPrice < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence attr_accessor currency: String @@ -4919,13 +4703,11 @@ module Orb def initialize: ( amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::allocation_price - type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4939,20 +4721,20 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] end end type discount = { - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, + discount_type: Orb::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, amount_discount: String?, percentage_discount: Float?, usage_discount: Float? } class Discount < Orb::Internal::Type::BaseModel - attr_accessor discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type + attr_accessor discount_type: Orb::SubscriptionCreateParams::ReplacePrice::Discount::discount_type attr_accessor amount_discount: String? @@ -4961,14 +4743,12 @@ module Orb attr_accessor usage_discount: Float? def initialize: ( - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, + discount_type: Orb::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, ?amount_discount: String?, ?percentage_discount: Float?, ?usage_discount: Float? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::discount - type discount_type = :percentage | :usage | :amount module DiscountType @@ -4978,62 +4758,62 @@ module Orb USAGE: :usage AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] end end type price = - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName - | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Package + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered + | Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps + | Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk + | Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount + | Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage + | Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum + | Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent + | Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation + | Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration + | Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum + | Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration + | Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing + | Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing + | Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk + | Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum + | Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence attr_accessor item_id: String @@ -5041,13 +4821,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5059,33 +4839,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::unit - type cadence = :annual | :semi_annual @@ -5104,7 +4882,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -5113,28 +4891,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5143,28 +4917,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5173,33 +4945,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence attr_accessor item_id: String @@ -5207,13 +4979,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig + attr_accessor package_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5225,33 +4997,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::package - type cadence = :annual | :semi_annual @@ -5270,7 +5040,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::cadence] end type package_config = @@ -5285,28 +5055,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5315,28 +5081,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5345,37 +5109,37 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -5385,7 +5149,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5397,33 +5161,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::matrix - type cadence = :annual | :semi_annual @@ -5442,14 +5204,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -5457,16 +5219,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -5479,29 +5239,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5510,28 +5266,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5540,33 +5294,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence attr_accessor item_id: String @@ -5574,13 +5328,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5592,33 +5346,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::tiered - type cadence = :annual | :semi_annual @@ -5637,23 +5389,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -5669,29 +5419,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5700,28 +5446,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5730,33 +5474,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence attr_accessor item_id: String @@ -5764,13 +5508,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5782,33 +5526,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::tiered_bps - type cadence = :annual | :semi_annual @@ -5827,23 +5569,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -5867,29 +5607,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5898,28 +5634,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5928,35 +5662,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence attr_accessor item_id: String @@ -5968,7 +5702,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5980,33 +5714,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -6015,8 +5747,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::bps_config end type cadence = @@ -6037,27 +5767,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6066,28 +5794,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6096,35 +5822,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence attr_accessor item_id: String @@ -6136,7 +5862,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6148,47 +5874,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, @@ -6208,8 +5930,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::tier end end @@ -6231,27 +5951,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6260,28 +5978,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6290,35 +6006,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence attr_accessor item_id: String @@ -6330,7 +6046,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6342,47 +6058,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -6394,8 +6106,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BulkConfig::tier end end @@ -6417,27 +6127,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6446,28 +6154,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6476,33 +6182,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, item_id: String, model_type: :threshold_total_amount, name: String, threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence attr_accessor item_id: String @@ -6516,7 +6222,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6528,33 +6234,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::threshold_total_amount - type cadence = :annual | :semi_annual @@ -6573,27 +6277,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6602,28 +6304,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6632,33 +6332,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence, item_id: String, model_type: :tiered_package, name: String, tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence attr_accessor item_id: String @@ -6672,7 +6372,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6684,33 +6384,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::tiered_package - type cadence = :annual | :semi_annual @@ -6729,27 +6427,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6758,28 +6454,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6788,33 +6482,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence, item_id: String, model_type: :tiered_with_minimum, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence attr_accessor item_id: String @@ -6828,7 +6522,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6840,33 +6534,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::tiered_with_minimum - type cadence = :annual | :semi_annual @@ -6885,27 +6577,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6914,28 +6604,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6944,33 +6632,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence, item_id: String, model_type: :unit_with_percent, name: String, unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence attr_accessor item_id: String @@ -6984,7 +6672,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6996,33 +6684,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::unit_with_percent - type cadence = :annual | :semi_annual @@ -7041,27 +6727,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7070,28 +6754,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7100,33 +6782,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence, item_id: String, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence attr_accessor item_id: String @@ -7140,7 +6822,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7152,33 +6834,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::package_with_allocation - type cadence = :annual | :semi_annual @@ -7197,27 +6877,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7226,28 +6904,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7256,33 +6932,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, item_id: String, model_type: :tiered_with_proration, name: String, tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence attr_accessor item_id: String @@ -7296,7 +6972,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7308,33 +6984,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::tiered_with_proration - type cadence = :annual | :semi_annual @@ -7353,27 +7027,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7382,28 +7054,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7412,33 +7082,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence, item_id: String, model_type: :unit_with_proration, name: String, unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence attr_accessor item_id: String @@ -7452,7 +7122,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7464,33 +7134,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::unit_with_proration - type cadence = :annual | :semi_annual @@ -7509,27 +7177,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7538,28 +7204,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7568,33 +7232,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence attr_accessor grouped_allocation_config: ::Hash[Symbol, top] @@ -7608,7 +7272,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7620,33 +7284,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::grouped_allocation - type cadence = :annual | :semi_annual @@ -7665,27 +7327,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7694,28 +7354,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7724,33 +7382,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] @@ -7764,7 +7422,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7776,33 +7434,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual @@ -7821,27 +7477,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7850,28 +7504,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7880,7 +7532,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end @@ -7888,19 +7540,19 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -7908,7 +7560,7 @@ module Orb class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence attr_accessor item_id: String @@ -7920,7 +7572,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7932,7 +7584,7 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -7940,25 +7592,23 @@ module Orb def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::bulk_with_proration - type cadence = :annual | :semi_annual @@ -7977,27 +7627,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8006,28 +7654,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8036,33 +7682,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor item_id: String @@ -8076,7 +7722,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8088,33 +7734,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual @@ -8133,27 +7777,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8162,28 +7804,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8192,33 +7832,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor item_id: String @@ -8232,7 +7872,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8244,33 +7884,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual @@ -8289,27 +7927,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8318,28 +7954,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8348,33 +7982,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, model_type: :cumulative_grouped_bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -8388,7 +8022,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8400,33 +8034,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual @@ -8445,27 +8077,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8474,28 +8104,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8504,33 +8132,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence attr_accessor item_id: String @@ -8544,7 +8172,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8556,33 +8184,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::max_group_tiered_package - type cadence = :annual | :semi_annual @@ -8601,27 +8227,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8630,28 +8254,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8660,33 +8282,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] @@ -8700,7 +8322,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8712,33 +8334,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual @@ -8757,27 +8377,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8786,28 +8404,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8816,33 +8432,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence attr_accessor item_id: String @@ -8856,7 +8472,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8868,33 +8484,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::matrix_with_display_name - type cadence = :annual | :semi_annual @@ -8913,27 +8527,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8942,28 +8554,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8972,33 +8582,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] @@ -9012,7 +8622,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -9024,33 +8634,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::grouped_tiered_package - type cadence = :annual | :semi_annual @@ -9069,27 +8677,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -9098,28 +8704,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -9128,12 +8732,12 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedTieredPackage] + def self?.variants: -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::price] end end end diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index 557e30c8..281431af 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionCreateResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_create_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 54f2e90e..494f61a9 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -29,8 +29,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_fetch_costs_params - type view_mode = :periodic | :cumulative module ViewMode diff --git a/sig/orb/models/subscription_fetch_costs_response.rbs b/sig/orb/models/subscription_fetch_costs_response.rbs index 4affb121..a9b4d7fe 100644 --- a/sig/orb/models/subscription_fetch_costs_response.rbs +++ b/sig/orb/models/subscription_fetch_costs_response.rbs @@ -10,8 +10,6 @@ module Orb data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] ) -> void - def to_hash: -> Orb::Models::subscription_fetch_costs_response - type data = { per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], @@ -40,8 +38,6 @@ module Orb total: String ) -> void - def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::data - type per_price_cost = { price: Orb::Models::price, @@ -69,8 +65,6 @@ module Orb total: String, ?quantity: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/subscription_fetch_params.rbs b/sig/orb/models/subscription_fetch_params.rbs index b95194d5..bcb11d8b 100644 --- a/sig/orb/models/subscription_fetch_params.rbs +++ b/sig/orb/models/subscription_fetch_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::subscription_fetch_params end end end diff --git a/sig/orb/models/subscription_fetch_schedule_params.rbs b/sig/orb/models/subscription_fetch_schedule_params.rbs index 84c5dd47..2266eba4 100644 --- a/sig/orb/models/subscription_fetch_schedule_params.rbs +++ b/sig/orb/models/subscription_fetch_schedule_params.rbs @@ -38,8 +38,6 @@ module Orb ?start_date_lte: Time?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::subscription_fetch_schedule_params end end end diff --git a/sig/orb/models/subscription_fetch_schedule_response.rbs b/sig/orb/models/subscription_fetch_schedule_response.rbs index 45fd9fdd..5a2e6fe1 100644 --- a/sig/orb/models/subscription_fetch_schedule_response.rbs +++ b/sig/orb/models/subscription_fetch_schedule_response.rbs @@ -24,8 +24,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::subscription_fetch_schedule_response - type plan = { id: String?, external_plan_id: String?, name: String? } class Plan < Orb::Internal::Type::BaseModel @@ -40,8 +38,6 @@ module Orb external_plan_id: String?, name: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionFetchScheduleResponse::plan end end end diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index c2be535e..1403da9d 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -53,8 +53,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_fetch_usage_params - type granularity = :day module Granularity diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index 66be60ce..3e267f7f 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -51,8 +51,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_list_params - type status = :active | :ended | :upcoming module Status diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 59a0af35..f575d4f4 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -2,11 +2,11 @@ module Orb module Models type subscription_price_intervals_params = { - add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + add: ::Array[Orb::SubscriptionPriceIntervalsParams::Add], + add_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment], allow_invoice_credit_or_void: bool?, - edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] + edit: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment] } & Orb::Internal::Type::request_parameters @@ -14,113 +14,109 @@ module Orb extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters - attr_reader add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]? + attr_reader add: ::Array[Orb::SubscriptionPriceIntervalsParams::Add]? def add=: ( - ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add] - ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add] + ::Array[Orb::SubscriptionPriceIntervalsParams::Add] + ) -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add] - attr_reader add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]? + attr_reader add_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment]? def add_adjustments=: ( - ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment] - ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment] + ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment] + ) -> ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment] attr_accessor allow_invoice_credit_or_void: bool? - attr_reader edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]? + attr_reader edit: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit]? def edit=: ( - ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit] - ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit] + ::Array[Orb::SubscriptionPriceIntervalsParams::Edit] + ) -> ::Array[Orb::SubscriptionPriceIntervalsParams::Edit] - attr_reader edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]? + attr_reader edit_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment]? def edit_adjustments=: ( - ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] - ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] + ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment] + ) -> ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment] def initialize: ( - ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?add: ::Array[Orb::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment], ?allow_invoice_credit_or_void: bool?, - ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - ?edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + ?edit: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment], ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_price_intervals_params - type add = { - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, - allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, + start_date: Orb::SubscriptionPriceIntervalsParams::Add::start_date, + allocation_price: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, + discounts: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::discount]?, + end_date: Orb::SubscriptionPriceIntervalsParams::Add::end_date?, external_price_id: String?, filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, maximum_amount: Float?, minimum_amount: Float?, - price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, + price: Orb::SubscriptionPriceIntervalsParams::Add::price?, price_id: String?, usage_customer_ids: ::Array[String]? } class Add < Orb::Internal::Type::BaseModel - attr_accessor start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date + attr_accessor start_date: Orb::SubscriptionPriceIntervalsParams::Add::start_date - attr_accessor allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice? + attr_accessor allocation_price: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice? - attr_accessor discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]? + attr_accessor discounts: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::discount]? - attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date? + attr_accessor end_date: Orb::SubscriptionPriceIntervalsParams::Add::end_date? attr_accessor external_price_id: String? attr_accessor filter: String? - attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]? attr_accessor maximum_amount: Float? attr_accessor minimum_amount: Float? - attr_accessor price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price? + attr_accessor price: Orb::SubscriptionPriceIntervalsParams::Add::price? attr_accessor price_id: String? attr_accessor usage_customer_ids: ::Array[String]? def initialize: ( - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, - ?allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, - ?discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, - ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, + start_date: Orb::SubscriptionPriceIntervalsParams::Add::start_date, + ?allocation_price: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, + ?discounts: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::discount]?, + ?end_date: Orb::SubscriptionPriceIntervalsParams::Add::end_date?, ?external_price_id: String?, ?filter: String?, - ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + ?fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, ?maximum_amount: Float?, ?minimum_amount: Float?, - ?price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, + ?price: Orb::SubscriptionPriceIntervalsParams::Add::price?, ?price_id: String?, ?usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add - type start_date = Time | Orb::Models::billing_cycle_relative_date module StartDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::start_date] end type allocation_price = { amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool } @@ -128,7 +124,7 @@ module Orb class AllocationPrice < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence attr_accessor currency: String @@ -136,13 +132,11 @@ module Orb def initialize: ( amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price - type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -156,14 +150,14 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] end end type discount = - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage + Orb::SubscriptionPriceIntervalsParams::Add::Discount::Amount + | Orb::SubscriptionPriceIntervalsParams::Add::Discount::Percentage + | Orb::SubscriptionPriceIntervalsParams::Add::Discount::Usage module Discount extend Orb::Internal::Type::Union @@ -179,8 +173,6 @@ module Orb amount_discount: Float, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount end type percentage = @@ -195,8 +187,6 @@ module Orb percentage_discount: Float, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage end type usage = { discount_type: :usage, usage_discount: Float } @@ -210,11 +200,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage end - def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Amount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Percentage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Usage] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::discount] end type end_date = Time | Orb::Models::billing_cycle_relative_date @@ -222,7 +210,7 @@ module Orb module EndDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::end_date] end type fixed_fee_quantity_transition = @@ -234,64 +222,62 @@ module Orb attr_accessor quantity: Integer def initialize: (effective_date: Time, quantity: Integer) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition end type price = - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing - | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk + Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Package + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix + | Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered + | Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps + | Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk + | Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount + | Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered + | Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage + | Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum + | Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation + | Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum + | Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent + | Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration + | Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum + | Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName + | Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage + | Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing + | Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing + | Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence, currency: String, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence attr_accessor currency: String @@ -301,13 +287,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -317,30 +303,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence, currency: String, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::unit - type cadence = :annual | :semi_annual @@ -359,7 +343,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -368,28 +352,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -398,28 +378,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -428,32 +406,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence, currency: String, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, + package_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence attr_accessor currency: String @@ -463,13 +441,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig + attr_accessor package_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -479,30 +457,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence, currency: String, item_id: String, name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, + package_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::package - type cadence = :annual | :semi_annual @@ -521,7 +497,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::cadence] end type package_config = @@ -536,28 +512,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -566,28 +538,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -596,38 +566,38 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence, currency: String, item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence attr_accessor currency: String attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -637,7 +607,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -647,30 +617,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence, currency: String, item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::matrix - type cadence = :annual | :semi_annual @@ -689,14 +657,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -704,16 +672,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -726,29 +692,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -757,28 +719,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -787,38 +747,38 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_allocation = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence, currency: String, item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + matrix_with_allocation_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, model_type: :matrix_with_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class MatrixWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence attr_accessor currency: String attr_accessor item_id: String - attr_accessor matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig + attr_accessor matrix_with_allocation_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig attr_accessor model_type: :matrix_with_allocation @@ -828,7 +788,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -838,30 +798,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence, currency: String, item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + matrix_with_allocation_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :matrix_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::matrix_with_allocation - type cadence = :annual | :semi_annual @@ -880,7 +838,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::cadence] end type matrix_with_allocation_config = @@ -888,7 +846,7 @@ module Orb allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel @@ -898,17 +856,15 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::matrix_with_allocation_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -921,29 +877,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::MatrixWithAllocationConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -952,28 +904,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -982,32 +932,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence, currency: String, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence attr_accessor currency: String @@ -1017,13 +967,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1033,30 +983,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence, currency: String, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered - type cadence = :annual | :semi_annual @@ -1075,23 +1023,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1107,29 +1053,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1138,28 +1080,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1168,32 +1108,32 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence, currency: String, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence attr_accessor currency: String @@ -1203,13 +1143,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1219,30 +1159,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence, currency: String, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered_bps - type cadence = :annual | :semi_annual @@ -1261,23 +1199,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -1301,29 +1237,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1332,28 +1264,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1362,34 +1292,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence, + bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence, currency: String, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence attr_accessor currency: String @@ -1403,7 +1333,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1413,30 +1343,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence, + bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence, currency: String, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -1445,8 +1373,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::bps_config end type cadence = @@ -1467,27 +1393,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1496,28 +1420,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1526,34 +1448,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence, currency: String, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence attr_accessor currency: String @@ -1567,7 +1489,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1577,44 +1499,40 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence, currency: String, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, @@ -1634,8 +1552,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BulkBpsConfig::tier end end @@ -1657,27 +1573,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1686,28 +1600,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1716,34 +1628,34 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence, currency: String, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence attr_accessor currency: String @@ -1757,7 +1669,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1767,44 +1679,40 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence, currency: String, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -1816,8 +1724,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BulkConfig::tier end end @@ -1839,27 +1745,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1868,28 +1772,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1898,14 +1800,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence, currency: String, item_id: String, model_type: :threshold_total_amount, @@ -1913,17 +1815,17 @@ module Orb threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence attr_accessor currency: String @@ -1939,7 +1841,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1949,30 +1851,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence, currency: String, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::threshold_total_amount - type cadence = :annual | :semi_annual @@ -1991,27 +1891,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2020,28 +1918,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2050,14 +1946,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence, currency: String, item_id: String, model_type: :tiered_package, @@ -2065,17 +1961,17 @@ module Orb tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence attr_accessor currency: String @@ -2091,7 +1987,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2101,30 +1997,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence, currency: String, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered_package - type cadence = :annual | :semi_annual @@ -2143,27 +2037,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2172,28 +2064,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2202,14 +2092,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence, currency: String, grouped_tiered_config: ::Hash[Symbol, top], item_id: String, @@ -2217,17 +2107,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedTiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence attr_accessor currency: String @@ -2243,7 +2133,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2253,30 +2143,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence, currency: String, grouped_tiered_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::grouped_tiered - type cadence = :annual | :semi_annual @@ -2295,27 +2183,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2324,28 +2210,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2354,14 +2238,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence, currency: String, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], @@ -2369,17 +2253,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence attr_accessor currency: String @@ -2395,7 +2279,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2405,30 +2289,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence, currency: String, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::max_group_tiered_package - type cadence = :annual | :semi_annual @@ -2447,27 +2329,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2476,28 +2356,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2506,14 +2384,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence, currency: String, item_id: String, model_type: :tiered_with_minimum, @@ -2521,17 +2399,17 @@ module Orb tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence attr_accessor currency: String @@ -2547,7 +2425,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2557,30 +2435,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence, currency: String, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered_with_minimum - type cadence = :annual | :semi_annual @@ -2599,27 +2475,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2628,28 +2502,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2658,14 +2530,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence, currency: String, item_id: String, model_type: :package_with_allocation, @@ -2673,17 +2545,17 @@ module Orb package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence attr_accessor currency: String @@ -2699,7 +2571,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2709,30 +2581,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence, currency: String, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::package_with_allocation - type cadence = :annual | :semi_annual @@ -2751,27 +2621,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2780,28 +2648,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2810,14 +2676,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package_with_minimum = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence, currency: String, item_id: String, model_type: :tiered_package_with_minimum, @@ -2825,17 +2691,17 @@ module Orb tiered_package_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence attr_accessor currency: String @@ -2851,7 +2717,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2861,30 +2727,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence, currency: String, item_id: String, name: String, tiered_package_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_package_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered_package_with_minimum - type cadence = :annual | :semi_annual @@ -2903,27 +2767,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2932,28 +2794,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2962,14 +2822,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence, currency: String, item_id: String, model_type: :unit_with_percent, @@ -2977,17 +2837,17 @@ module Orb unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence attr_accessor currency: String @@ -3003,7 +2863,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3013,30 +2873,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence, currency: String, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::unit_with_percent - type cadence = :annual | :semi_annual @@ -3055,27 +2913,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3084,28 +2940,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3114,14 +2968,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence, currency: String, item_id: String, model_type: :tiered_with_proration, @@ -3129,17 +2983,17 @@ module Orb tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence attr_accessor currency: String @@ -3155,7 +3009,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3165,30 +3019,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence, currency: String, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::tiered_with_proration - type cadence = :annual | :semi_annual @@ -3207,27 +3059,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3236,28 +3086,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3266,14 +3114,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence, currency: String, item_id: String, model_type: :unit_with_proration, @@ -3281,17 +3129,17 @@ module Orb unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence attr_accessor currency: String @@ -3307,7 +3155,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3317,30 +3165,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence, currency: String, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::unit_with_proration - type cadence = :annual | :semi_annual @@ -3359,27 +3205,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3388,28 +3232,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3418,14 +3260,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence, currency: String, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, @@ -3433,17 +3275,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence attr_accessor currency: String @@ -3459,7 +3301,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3469,30 +3311,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence, currency: String, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::grouped_allocation - type cadence = :annual | :semi_annual @@ -3511,27 +3351,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3540,28 +3378,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3570,14 +3406,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence, currency: String, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, @@ -3585,17 +3421,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence attr_accessor currency: String @@ -3611,7 +3447,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3621,30 +3457,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence, currency: String, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual @@ -3663,27 +3497,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3692,28 +3524,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3722,14 +3552,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence, currency: String, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, @@ -3737,17 +3567,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence attr_accessor currency: String @@ -3763,7 +3593,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3773,30 +3603,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence, currency: String, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual @@ -3815,27 +3643,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3844,28 +3670,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3874,14 +3698,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence, currency: String, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], @@ -3889,17 +3713,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence attr_accessor currency: String @@ -3915,7 +3739,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3925,30 +3749,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence, currency: String, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::matrix_with_display_name - type cadence = :annual | :semi_annual @@ -3967,27 +3789,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3996,28 +3816,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4026,7 +3844,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end @@ -4034,26 +3852,26 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence, currency: String, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence attr_accessor currency: String @@ -4067,7 +3885,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4077,30 +3895,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence, currency: String, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::bulk_with_proration - type cadence = :annual | :semi_annual @@ -4119,27 +3935,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4148,28 +3962,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4178,14 +3990,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence, currency: String, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, @@ -4193,17 +4005,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence attr_accessor currency: String @@ -4219,7 +4031,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4229,30 +4041,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence, currency: String, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::grouped_tiered_package - type cadence = :annual | :semi_annual @@ -4271,27 +4081,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4300,28 +4108,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4330,14 +4136,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence, currency: String, item_id: String, model_type: :scalable_matrix_with_unit_pricing, @@ -4345,17 +4151,17 @@ module Orb 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::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor currency: String @@ -4371,7 +4177,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4381,30 +4187,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence, currency: String, item_id: String, name: String, 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::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual @@ -4423,27 +4227,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4452,28 +4254,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4482,14 +4282,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence, currency: String, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, @@ -4497,17 +4297,17 @@ module Orb 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::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor currency: String @@ -4523,7 +4323,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4533,30 +4333,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence, currency: String, item_id: String, name: String, 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::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual @@ -4575,27 +4373,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4604,28 +4400,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4634,14 +4428,14 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, item_id: String, @@ -4649,17 +4443,17 @@ module Orb name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -4675,7 +4469,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4685,30 +4479,28 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual @@ -4727,27 +4519,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4756,28 +4546,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4786,43 +4574,41 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Unit, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Package, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Matrix, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Tiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkBps, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Bulk, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ThresholdTotalAmount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTiered, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::PackageWithAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredPackageWithMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithPercent, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::TieredWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::UnitWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedAllocation, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::MatrixWithDisplayName, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::BulkWithProration, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedTieredPackage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::CumulativeGroupedBulk] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Add::price] end end type add_adjustment = { - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? + adjustment: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, + start_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + end_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? } class AddAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment + attr_accessor adjustment: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment - attr_accessor start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date + attr_accessor start_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::start_date - attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? + attr_accessor end_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? def initialize: ( - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, - ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? + adjustment: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, + start_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + ?end_date: Orb::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment - type adjustment = - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount - | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount - | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount - | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum - | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount + | Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount + | Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount + | Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum + | Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -4852,8 +4638,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::percentage_discount end type usage_discount = @@ -4881,8 +4665,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::usage_discount end type amount_discount = @@ -4910,8 +4692,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::amount_discount end type minimum = @@ -4943,8 +4723,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::minimum end type maximum = @@ -4972,11 +4750,9 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment] end type start_date = Time | Orb::Models::billing_cycle_relative_date @@ -4984,7 +4760,7 @@ module Orb module StartDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment::start_date] end type end_date = Time | Orb::Models::billing_cycle_relative_date @@ -4992,7 +4768,7 @@ module Orb module EndDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment::end_date] end end @@ -5000,10 +4776,10 @@ module Orb { price_interval_id: String, billing_cycle_day: Integer?, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, + end_date: Orb::SubscriptionPriceIntervalsParams::Edit::end_date?, filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, + fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + start_date: Orb::SubscriptionPriceIntervalsParams::Edit::start_date, usage_customer_ids: ::Array[String]? } @@ -5012,38 +4788,36 @@ module Orb attr_accessor billing_cycle_day: Integer? - attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date? + attr_accessor end_date: Orb::SubscriptionPriceIntervalsParams::Edit::end_date? attr_accessor filter: String? - attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]? - attr_reader start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date? + attr_reader start_date: Orb::SubscriptionPriceIntervalsParams::Edit::start_date? def start_date=: ( - Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date - ) -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date + Orb::SubscriptionPriceIntervalsParams::Edit::start_date + ) -> Orb::SubscriptionPriceIntervalsParams::Edit::start_date attr_accessor usage_customer_ids: ::Array[String]? def initialize: ( price_interval_id: String, ?billing_cycle_day: Integer?, - ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, + ?end_date: Orb::SubscriptionPriceIntervalsParams::Edit::end_date?, ?filter: String?, - ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, - ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, + ?fixed_fee_quantity_transitions: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + ?start_date: Orb::SubscriptionPriceIntervalsParams::Edit::start_date, ?usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit - type end_date = Time | Orb::Models::billing_cycle_relative_date module EndDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::end_date] end type fixed_fee_quantity_transition = @@ -5055,8 +4829,6 @@ module Orb attr_accessor quantity: Integer def initialize: (effective_date: Time, quantity: Integer) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition end type start_date = Time | Orb::Models::billing_cycle_relative_date @@ -5064,42 +4836,40 @@ module Orb module StartDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::Edit::start_date] end end type edit_adjustment = { adjustment_interval_id: String, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + end_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, + start_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date } class EditAdjustment < Orb::Internal::Type::BaseModel attr_accessor adjustment_interval_id: String - attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date? + attr_accessor end_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::end_date? - attr_reader start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date? + attr_reader start_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date? def start_date=: ( - Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date - ) -> Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + ) -> Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date def initialize: ( adjustment_interval_id: String, - ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, - ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + ?end_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, + ?start_date: Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment - type end_date = Time | Orb::Models::billing_cycle_relative_date module EndDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment::end_date] end type start_date = Time | Orb::Models::billing_cycle_relative_date @@ -5107,7 +4877,7 @@ module Orb module StartDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + def self?.variants: -> ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment::start_date] end end end diff --git a/sig/orb/models/subscription_price_intervals_response.rbs b/sig/orb/models/subscription_price_intervals_response.rbs index 45a45259..21e7ec78 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionPriceIntervalsResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_price_intervals_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Amount, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index ceb1e5dd..a6733a5a 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -3,12 +3,12 @@ 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::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?, align_billing_with_plan_change_date: bool?, auto_collection: bool?, billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + billing_cycle_anchor_configuration: Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, change_date: Time?, coupon_redemption_code: String?, credits_overage_rate: Float?, @@ -22,10 +22,10 @@ module Orb 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]?, + remove_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, trial_duration_days: Integer?, usage_customer_ids: ::Array[String]? } @@ -37,9 +37,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::SubscriptionSchedulePlanChangeParams::AddAdjustment]? - attr_accessor add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]? + attr_accessor add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]? attr_accessor align_billing_with_plan_change_date: bool? @@ -47,7 +47,7 @@ module Orb attr_accessor billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment? - attr_accessor billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration? + attr_accessor billing_cycle_anchor_configuration: Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration? attr_accessor change_date: Time? @@ -75,13 +75,13 @@ module Orb attr_accessor price_overrides: ::Array[top]? - attr_accessor remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]? + attr_accessor remove_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]? - attr_accessor remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]? + attr_accessor remove_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice]? - attr_accessor replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]? + attr_accessor replace_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]? - attr_accessor replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]? + attr_accessor replace_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice]? attr_accessor trial_duration_days: Integer? @@ -89,12 +89,12 @@ module Orb 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::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?, ?align_billing_with_plan_change_date: bool?, ?auto_collection: bool?, ?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + ?billing_cycle_anchor_configuration: Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, ?change_date: Time?, ?coupon_redemption_code: String?, ?credits_overage_rate: Float?, @@ -108,17 +108,15 @@ module Orb ?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]?, + ?remove_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, ?trial_duration_days: Integer?, ?usage_customer_ids: ::Array[String]?, ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_schedule_plan_change_params - type change_option = :requested_date | :end_of_subscription_term | :immediate @@ -134,14 +132,14 @@ module Orb type add_adjustment = { - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, + adjustment: Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, end_date: Time?, plan_phase_order: Integer?, start_date: Time? } class AddAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment + attr_accessor adjustment: Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment attr_accessor end_date: Time? @@ -150,20 +148,18 @@ module Orb attr_accessor start_date: Time? def initialize: ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, + adjustment: Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, ?end_date: Time?, ?plan_phase_order: Integer?, ?start_date: Time? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment - type adjustment = - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum + Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount + | Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount + | Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount + | Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum + | Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -193,8 +189,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::percentage_discount end type usage_discount = @@ -222,8 +216,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::usage_discount end type amount_discount = @@ -251,8 +243,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::amount_discount end type minimum = @@ -284,8 +274,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::minimum end type maximum = @@ -313,32 +301,30 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment] end end type add_price = { - allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, + allocation_price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, + discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, minimum_amount: String?, plan_phase_order: Integer?, - price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?, + price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::price?, price_id: String?, start_date: Time? } class AddPrice < Orb::Internal::Type::BaseModel - attr_accessor allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice? + attr_accessor allocation_price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice? - attr_accessor discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]? + attr_accessor discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]? attr_accessor end_date: Time? @@ -350,31 +336,29 @@ module Orb attr_accessor plan_phase_order: Integer? - attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price? + attr_accessor price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::price? attr_accessor price_id: String? attr_accessor start_date: Time? def initialize: ( - ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, - ?discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, + ?allocation_price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, ?end_date: Time?, ?external_price_id: String?, ?maximum_amount: String?, ?minimum_amount: String?, ?plan_phase_order: Integer?, - ?price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?, + ?price: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::price?, ?price_id: String?, ?start_date: Time? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_price - type allocation_price = { amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool } @@ -382,7 +366,7 @@ module Orb class AllocationPrice < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence attr_accessor currency: String @@ -390,13 +374,11 @@ module Orb def initialize: ( amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::allocation_price - type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -410,20 +392,20 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] end end type discount = { - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, + discount_type: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, amount_discount: String?, percentage_discount: Float?, usage_discount: Float? } class Discount < Orb::Internal::Type::BaseModel - attr_accessor discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type + attr_accessor discount_type: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type attr_accessor amount_discount: String? @@ -432,14 +414,12 @@ module Orb attr_accessor usage_discount: Float? def initialize: ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, + discount_type: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, ?amount_discount: String?, ?percentage_discount: Float?, ?usage_discount: Float? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount - type discount_type = :percentage | :usage | :amount module DiscountType @@ -449,62 +429,62 @@ module Orb USAGE: :usage AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] end end type price = - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName - | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence attr_accessor item_id: String @@ -512,13 +492,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -530,33 +510,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::unit - type cadence = :annual | :semi_annual @@ -575,7 +553,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -584,28 +562,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -614,28 +588,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -644,33 +616,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence attr_accessor item_id: String @@ -678,13 +650,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig + attr_accessor package_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -696,33 +668,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::package - type cadence = :annual | :semi_annual @@ -741,7 +711,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::cadence] end type package_config = @@ -756,28 +726,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -786,28 +752,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -816,37 +780,37 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -856,7 +820,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -868,33 +832,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::matrix - type cadence = :annual | :semi_annual @@ -913,14 +875,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -928,16 +890,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -950,29 +910,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -981,28 +937,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1011,33 +965,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence attr_accessor item_id: String @@ -1045,13 +999,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1063,33 +1017,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::tiered - type cadence = :annual | :semi_annual @@ -1108,23 +1060,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1140,29 +1090,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1171,28 +1117,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1201,33 +1145,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence attr_accessor item_id: String @@ -1235,13 +1179,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1253,33 +1197,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::tiered_bps - type cadence = :annual | :semi_annual @@ -1298,23 +1240,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -1338,29 +1278,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1369,28 +1305,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1399,35 +1333,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence attr_accessor item_id: String @@ -1439,7 +1373,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1451,33 +1385,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -1486,8 +1418,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::bps_config end type cadence = @@ -1508,27 +1438,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1537,28 +1465,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1567,35 +1493,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence attr_accessor item_id: String @@ -1607,7 +1533,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1619,47 +1545,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, @@ -1679,8 +1601,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BulkBpsConfig::tier end end @@ -1702,27 +1622,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1731,28 +1649,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1761,35 +1677,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence attr_accessor item_id: String @@ -1801,7 +1717,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1813,47 +1729,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -1865,8 +1777,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BulkConfig::tier end end @@ -1888,27 +1798,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1917,28 +1825,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -1947,33 +1853,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence, item_id: String, model_type: :threshold_total_amount, name: String, threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence attr_accessor item_id: String @@ -1987,7 +1893,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -1999,33 +1905,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::threshold_total_amount - type cadence = :annual | :semi_annual @@ -2044,27 +1948,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2073,28 +1975,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2103,33 +2003,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence, item_id: String, model_type: :tiered_package, name: String, tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence attr_accessor item_id: String @@ -2143,7 +2043,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2155,33 +2055,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::tiered_package - type cadence = :annual | :semi_annual @@ -2200,27 +2098,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2229,28 +2125,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2259,33 +2153,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence, item_id: String, model_type: :tiered_with_minimum, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence attr_accessor item_id: String @@ -2299,7 +2193,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2311,33 +2205,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::tiered_with_minimum - type cadence = :annual | :semi_annual @@ -2356,27 +2248,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2385,28 +2275,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2415,33 +2303,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence, item_id: String, model_type: :unit_with_percent, name: String, unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence attr_accessor item_id: String @@ -2455,7 +2343,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2467,33 +2355,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::unit_with_percent - type cadence = :annual | :semi_annual @@ -2512,27 +2398,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2541,28 +2425,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2571,33 +2453,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence, item_id: String, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence attr_accessor item_id: String @@ -2611,7 +2493,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2623,33 +2505,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::package_with_allocation - type cadence = :annual | :semi_annual @@ -2668,27 +2548,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2697,28 +2575,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2727,33 +2603,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, item_id: String, model_type: :tiered_with_proration, name: String, tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence attr_accessor item_id: String @@ -2767,7 +2643,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2779,33 +2655,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::tiered_with_proration - type cadence = :annual | :semi_annual @@ -2824,27 +2698,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2853,28 +2725,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -2883,33 +2753,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence, item_id: String, model_type: :unit_with_proration, name: String, unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence attr_accessor item_id: String @@ -2923,7 +2793,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -2935,33 +2805,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::unit_with_proration - type cadence = :annual | :semi_annual @@ -2980,27 +2848,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3009,28 +2875,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3039,33 +2903,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence attr_accessor grouped_allocation_config: ::Hash[Symbol, top] @@ -3079,7 +2943,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3091,33 +2955,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::grouped_allocation - type cadence = :annual | :semi_annual @@ -3136,27 +2998,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3165,28 +3025,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3195,33 +3053,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] @@ -3235,7 +3093,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3247,33 +3105,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual @@ -3292,27 +3148,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3321,28 +3175,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3351,7 +3203,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end @@ -3359,19 +3211,19 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -3379,7 +3231,7 @@ module Orb class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence attr_accessor item_id: String @@ -3391,7 +3243,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3403,7 +3255,7 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -3411,25 +3263,23 @@ module Orb def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::bulk_with_proration - type cadence = :annual | :semi_annual @@ -3448,27 +3298,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3477,28 +3325,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3507,33 +3353,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor item_id: String @@ -3547,7 +3393,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3559,33 +3405,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual @@ -3604,27 +3448,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3633,28 +3475,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3663,33 +3503,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor item_id: String @@ -3703,7 +3543,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3715,33 +3555,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual @@ -3760,27 +3598,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3789,28 +3625,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3819,33 +3653,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, model_type: :cumulative_grouped_bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -3859,7 +3693,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -3871,33 +3705,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual @@ -3916,27 +3748,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3945,28 +3775,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -3975,33 +3803,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence attr_accessor item_id: String @@ -4015,7 +3843,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4027,33 +3855,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::max_group_tiered_package - type cadence = :annual | :semi_annual @@ -4072,27 +3898,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4101,28 +3925,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4131,33 +3953,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] @@ -4171,7 +3993,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4183,33 +4005,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual @@ -4228,27 +4048,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4257,28 +4075,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4287,33 +4103,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence attr_accessor item_id: String @@ -4327,7 +4143,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4339,33 +4155,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::matrix_with_display_name - type cadence = :annual | :semi_annual @@ -4384,27 +4198,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4413,28 +4225,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4443,33 +4253,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] @@ -4483,7 +4293,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -4495,33 +4305,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::grouped_tiered_package - type cadence = :annual | :semi_annual @@ -4540,27 +4348,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4569,28 +4375,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -4599,12 +4403,12 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage] + def self?.variants: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::price] end end @@ -4636,8 +4440,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration end type remove_adjustment = { adjustment_id: String } @@ -4646,8 +4448,6 @@ module Orb attr_accessor adjustment_id: String def initialize: (adjustment_id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment end type remove_price = { external_price_id: String?, price_id: String? } @@ -4661,34 +4461,30 @@ module Orb ?external_price_id: String?, ?price_id: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price end type replace_adjustment = { - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, + adjustment: Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, replaces_adjustment_id: String } class ReplaceAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment + attr_accessor adjustment: Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment attr_accessor replaces_adjustment_id: String def initialize: ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, + adjustment: Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, replaces_adjustment_id: String ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment - type adjustment = - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount + | Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount + | Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount + | Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum + | Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum module Adjustment extend Orb::Internal::Type::Union @@ -4718,8 +4514,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::percentage_discount end type usage_discount = @@ -4747,8 +4541,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::usage_discount end type amount_discount = @@ -4776,8 +4568,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::amount_discount end type minimum = @@ -4809,8 +4599,6 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::minimum end type maximum = @@ -4838,33 +4626,31 @@ module Orb ?is_invoice_level: bool, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment] end end type replace_price = { replaces_price_id: String, - allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + allocation_price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, + discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, minimum_amount: String?, - price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, + price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, price_id: String? } class ReplacePrice < Orb::Internal::Type::BaseModel attr_accessor replaces_price_id: String - attr_accessor allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice? + attr_accessor allocation_price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice? - attr_accessor discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]? + attr_accessor discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]? attr_accessor external_price_id: String? @@ -4874,28 +4660,26 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price? + attr_accessor price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::price? attr_accessor price_id: String? def initialize: ( replaces_price_id: String, - ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, - ?discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + ?allocation_price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?maximum_amount: String?, ?minimum_amount: String?, - ?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, + ?price: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, ?price_id: String? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price - type allocation_price = { amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool } @@ -4903,7 +4687,7 @@ module Orb class AllocationPrice < Orb::Internal::Type::BaseModel attr_accessor amount: String - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence attr_accessor currency: String @@ -4911,13 +4695,11 @@ module Orb def initialize: ( amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, currency: String, expires_at_end_of_cadence: bool ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::allocation_price - type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4931,20 +4713,20 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] end end type discount = { - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, + discount_type: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, amount_discount: String?, percentage_discount: Float?, usage_discount: Float? } class Discount < Orb::Internal::Type::BaseModel - attr_accessor discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type + attr_accessor discount_type: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type attr_accessor amount_discount: String? @@ -4953,14 +4735,12 @@ module Orb attr_accessor usage_discount: Float? def initialize: ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, + discount_type: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, ?amount_discount: String?, ?percentage_discount: Float?, ?usage_discount: Float? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount - type discount_type = :percentage | :usage | :amount module DiscountType @@ -4970,62 +4750,62 @@ module Orb USAGE: :usage AMOUNT: :amount - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] end end type price = - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName - | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage module Price extend Orb::Internal::Type::Union type unit = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence, item_id: String, model_type: :unit, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Unit < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence attr_accessor item_id: String @@ -5033,13 +4813,13 @@ module Orb attr_accessor name: String - attr_accessor unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig + attr_accessor unit_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5051,33 +4831,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, + unit_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::UnitConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::unit - type cadence = :annual | :semi_annual @@ -5096,7 +4874,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::cadence] end type unit_config = { unit_amount: String } @@ -5105,28 +4883,24 @@ module Orb attr_accessor unit_amount: String def initialize: (unit_amount: String) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::unit_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5135,28 +4909,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5165,33 +4937,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit::InvoicingCycleConfiguration::duration_unit] end end end type package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence, item_id: String, model_type: :package, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Package < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence attr_accessor item_id: String @@ -5199,13 +4971,13 @@ module Orb attr_accessor name: String - attr_accessor package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig + attr_accessor package_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5217,33 +4989,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, + package_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::PackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::package - type cadence = :annual | :semi_annual @@ -5262,7 +5032,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::cadence] end type package_config = @@ -5277,28 +5047,24 @@ module Orb package_amount: String, package_size: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::package_config end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5307,28 +5073,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5337,37 +5101,37 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package::InvoicingCycleConfiguration::duration_unit] end end end type matrix = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, model_type: :matrix, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Matrix < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence attr_accessor item_id: String - attr_accessor matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig + attr_accessor matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig attr_accessor model_type: :matrix @@ -5377,7 +5141,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5389,33 +5153,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, + matrix_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::matrix - type cadence = :annual | :semi_annual @@ -5434,14 +5196,14 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::cadence] end type matrix_config = { default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::Internal::Type::BaseModel @@ -5449,16 +5211,14 @@ module Orb attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] + matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::MatrixValue] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::matrix_config - type matrix_value = { dimension_values: ::Array[String?], unit_amount: String } @@ -5471,29 +5231,25 @@ module Orb dimension_values: ::Array[String?], unit_amount: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::MatrixConfig::matrix_value end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5502,28 +5258,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5532,33 +5286,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix::InvoicingCycleConfiguration::duration_unit] end end end type tiered = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence, item_id: String, model_type: :tiered, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Tiered < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence attr_accessor item_id: String @@ -5566,13 +5320,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig + attr_accessor tiered_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5584,33 +5338,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, + tiered_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::tiered - type cadence = :annual | :semi_annual @@ -5629,23 +5381,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::cadence] end type tiered_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] } class TieredConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::tiered_config - type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -5661,29 +5411,25 @@ module Orb unit_amount: String, ?last_unit: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::TieredConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5692,28 +5438,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5722,33 +5466,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered::InvoicingCycleConfiguration::duration_unit] end end end type tiered_bps = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence, item_id: String, model_type: :tiered_bps, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredBps < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence attr_accessor item_id: String @@ -5756,13 +5500,13 @@ module Orb attr_accessor name: String - attr_accessor tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig + attr_accessor tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig attr_accessor billable_metric_id: String? attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5774,33 +5518,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, + tiered_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::tiered_bps - type cadence = :annual | :semi_annual @@ -5819,23 +5561,21 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::cadence] end type tiered_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::tiered_bps_config - type tier = { bps: Float, @@ -5859,29 +5599,25 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::TieredBpsConfig::tier end end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5890,28 +5626,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -5920,35 +5654,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps::InvoicingCycleConfiguration::duration_unit] end end end type bps = { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence, item_id: String, model_type: :bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bps < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig + attr_accessor bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence attr_accessor item_id: String @@ -5960,7 +5694,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -5972,33 +5706,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence, + bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::bps - type bps_config = { bps: Float, per_unit_maximum: String? } class BpsConfig < Orb::Internal::Type::BaseModel @@ -6007,8 +5739,6 @@ module Orb attr_accessor per_unit_maximum: String? def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::bps_config end type cadence = @@ -6029,27 +5759,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6058,28 +5786,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6088,35 +5814,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps::InvoicingCycleConfiguration::duration_unit] end end end type bulk_bps = { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence, item_id: String, model_type: :bulk_bps, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class BulkBps < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig + attr_accessor bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence attr_accessor item_id: String @@ -6128,7 +5854,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6140,47 +5866,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence, + bulk_bps_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_bps ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::bulk_bps - type bulk_bps_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::bulk_bps_config - type tier = { bps: Float, @@ -6200,8 +5922,6 @@ module Orb ?maximum_amount: String?, ?per_unit_maximum: String? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BulkBpsConfig::tier end end @@ -6223,27 +5943,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6252,28 +5970,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6282,35 +5998,35 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps::InvoicingCycleConfiguration::duration_unit] end end end type bulk = { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence, item_id: String, model_type: :bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class Bulk < Orb::Internal::Type::BaseModel - attr_accessor bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig + attr_accessor bulk_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence attr_accessor item_id: String @@ -6322,7 +6038,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6334,47 +6050,43 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence, + bulk_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::bulk - type bulk_config = { - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] } class BulkConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] def initialize: ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::Tier] ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::bulk_config - type tier = { unit_amount: String, maximum_units: Float? } class Tier < Orb::Internal::Type::BaseModel @@ -6386,8 +6098,6 @@ module Orb unit_amount: String, ?maximum_units: Float? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BulkConfig::tier end end @@ -6409,27 +6119,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6438,28 +6146,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6468,33 +6174,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk::InvoicingCycleConfiguration::duration_unit] end end end type threshold_total_amount = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, item_id: String, model_type: :threshold_total_amount, name: String, threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ThresholdTotalAmount < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence attr_accessor item_id: String @@ -6508,7 +6214,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6520,33 +6226,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence, item_id: String, name: String, threshold_total_amount_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :threshold_total_amount ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::threshold_total_amount - type cadence = :annual | :semi_annual @@ -6565,27 +6269,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6594,28 +6296,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6624,33 +6324,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit] end end end type tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence, item_id: String, model_type: :tiered_package, name: String, tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence attr_accessor item_id: String @@ -6664,7 +6364,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6676,33 +6376,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence, item_id: String, name: String, tiered_package_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::tiered_package - type cadence = :annual | :semi_annual @@ -6721,27 +6419,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6750,28 +6446,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6780,33 +6474,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence, item_id: String, model_type: :tiered_with_minimum, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence attr_accessor item_id: String @@ -6820,7 +6514,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6832,33 +6526,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence, item_id: String, name: String, tiered_with_minimum_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::tiered_with_minimum - type cadence = :annual | :semi_annual @@ -6877,27 +6569,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6906,28 +6596,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -6936,33 +6624,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_percent = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence, item_id: String, model_type: :unit_with_percent, name: String, unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithPercent < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence attr_accessor item_id: String @@ -6976,7 +6664,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -6988,33 +6676,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence, item_id: String, name: String, unit_with_percent_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_percent ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::unit_with_percent - type cadence = :annual | :semi_annual @@ -7033,27 +6719,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7062,28 +6746,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7092,33 +6774,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit] end end end type package_with_allocation = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence, item_id: String, model_type: :package_with_allocation, name: String, package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class PackageWithAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence attr_accessor item_id: String @@ -7132,7 +6814,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7144,33 +6826,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence, item_id: String, name: String, package_with_allocation_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :package_with_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::package_with_allocation - type cadence = :annual | :semi_annual @@ -7189,27 +6869,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7218,28 +6896,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7248,33 +6924,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit] end end end type tiered_with_proration = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, item_id: String, model_type: :tiered_with_proration, name: String, tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class TieredWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence attr_accessor item_id: String @@ -7288,7 +6964,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7300,33 +6976,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, item_id: String, name: String, tiered_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :tiered_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::tiered_with_proration - type cadence = :annual | :semi_annual @@ -7345,27 +7019,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7374,28 +7046,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7404,33 +7074,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit] end end end type unit_with_proration = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence, item_id: String, model_type: :unit_with_proration, name: String, unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class UnitWithProration < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence attr_accessor item_id: String @@ -7444,7 +7114,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7456,33 +7126,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence, item_id: String, name: String, unit_with_proration_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :unit_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::unit_with_proration - type cadence = :annual | :semi_annual @@ -7501,27 +7169,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7530,28 +7196,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7560,33 +7224,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit] end end end type grouped_allocation = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedAllocation < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence attr_accessor grouped_allocation_config: ::Hash[Symbol, top] @@ -7600,7 +7264,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7612,33 +7276,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence, grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_allocation ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::grouped_allocation - type cadence = :annual | :semi_annual @@ -7657,27 +7319,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7686,28 +7346,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7716,33 +7374,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_prorated_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] @@ -7756,7 +7414,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7768,33 +7426,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence, grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_prorated_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::grouped_with_prorated_minimum - type cadence = :annual | :semi_annual @@ -7813,27 +7469,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7842,28 +7496,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7872,7 +7524,7 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit] end end end @@ -7880,19 +7532,19 @@ module Orb type bulk_with_proration = { bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence, item_id: String, model_type: :bulk_with_proration, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -7900,7 +7552,7 @@ module Orb class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence attr_accessor item_id: String @@ -7912,7 +7564,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -7924,7 +7576,7 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? @@ -7932,25 +7584,23 @@ module Orb def initialize: ( bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence, item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :bulk_with_proration ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::bulk_with_proration - type cadence = :annual | :semi_annual @@ -7969,27 +7619,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -7998,28 +7646,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8028,33 +7674,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_unit_pricing = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor item_id: String @@ -8068,7 +7714,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8080,33 +7726,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence, item_id: String, name: String, scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_unit_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::scalable_matrix_with_unit_pricing - type cadence = :annual | :semi_annual @@ -8125,27 +7769,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8154,28 +7796,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8184,33 +7824,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit] end end end type scalable_matrix_with_tiered_pricing = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor item_id: String @@ -8224,7 +7864,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8236,33 +7876,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence, item_id: String, name: String, scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :scalable_matrix_with_tiered_pricing ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::scalable_matrix_with_tiered_pricing - type cadence = :annual | :semi_annual @@ -8281,27 +7919,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8310,28 +7946,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8340,33 +7974,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit] end end end type cumulative_grouped_bulk = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, model_type: :cumulative_grouped_bulk, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] @@ -8380,7 +8014,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8392,33 +8026,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence, cumulative_grouped_bulk_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :cumulative_grouped_bulk ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::cumulative_grouped_bulk - type cadence = :annual | :semi_annual @@ -8437,27 +8069,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8466,28 +8096,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8496,33 +8124,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit] end end end type max_group_tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence attr_accessor item_id: String @@ -8536,7 +8164,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8548,33 +8176,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence, item_id: String, max_group_tiered_package_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :max_group_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::max_group_tiered_package - type cadence = :annual | :semi_annual @@ -8593,27 +8219,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8622,28 +8246,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8652,33 +8274,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end type grouped_with_metered_minimum = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] @@ -8692,7 +8314,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8704,33 +8326,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence, grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_with_metered_minimum ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::grouped_with_metered_minimum - type cadence = :annual | :semi_annual @@ -8749,27 +8369,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8778,28 +8396,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8808,33 +8424,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit] end end end type matrix_with_display_name = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class MatrixWithDisplayName < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence attr_accessor item_id: String @@ -8848,7 +8464,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -8860,33 +8476,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence, item_id: String, matrix_with_display_name_config: ::Hash[Symbol, top], name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :matrix_with_display_name ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::matrix_with_display_name - type cadence = :annual | :semi_annual @@ -8905,27 +8519,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8934,28 +8546,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -8964,33 +8574,33 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit] end end end type grouped_tiered_package = { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, billable_metric_id: String?, billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, conversion_rate: Float?, currency: String?, external_price_id: String?, fixed_price_quantity: Float?, invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, reference_id: String? } class GroupedTieredPackage < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] @@ -9004,7 +8614,7 @@ module Orb attr_accessor billed_in_advance: bool? - attr_accessor billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration? + attr_accessor billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration? attr_accessor conversion_rate: Float? @@ -9016,33 +8626,31 @@ module Orb attr_accessor invoice_grouping_key: String? - attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? + attr_accessor invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration? attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence, + cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence, grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration?, ?conversion_rate: Float?, ?currency: String?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?reference_id: String?, ?model_type: :grouped_tiered_package ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::grouped_tiered_package - type cadence = :annual | :semi_annual @@ -9061,27 +8669,25 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::cadence] end type billing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit } class BillingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::billing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -9090,28 +8696,26 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit] end end type invoicing_cycle_configuration = { duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit } class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel attr_accessor duration: Integer - attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + attr_accessor duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit def initialize: ( duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit + duration_unit: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::invoicing_cycle_configuration - type duration_unit = :day | :month module DurationUnit @@ -9120,12 +8724,12 @@ module Orb DAY: :day MONTH: :month - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit] end end end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage] + def self?.variants: -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::price] 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 65000a88..500ad628 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionSchedulePlanChangeResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_schedule_plan_change_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_trigger_phase_params.rbs b/sig/orb/models/subscription_trigger_phase_params.rbs index f55023f0..41773ef3 100644 --- a/sig/orb/models/subscription_trigger_phase_params.rbs +++ b/sig/orb/models/subscription_trigger_phase_params.rbs @@ -17,8 +17,6 @@ module Orb ?effective_date: Date?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::subscription_trigger_phase_params end end end diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index 5a452262..e8bcd0c3 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionTriggerPhaseResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_trigger_phase_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_unschedule_cancellation_params.rbs b/sig/orb/models/subscription_unschedule_cancellation_params.rbs index 4983abc1..00fa2e0b 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_params.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::subscription_unschedule_cancellation_params end end end diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index 3392157d..a69a00be 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionUnscheduleCancellationResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_unschedule_cancellation_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs index 004766ca..517b6637 100644 --- a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +++ b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs @@ -13,8 +13,6 @@ module Orb price_id: String, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params end end end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs index cf78fabb..b50602d2 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 @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs index 1479050a..990e13b1 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs @@ -8,8 +8,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_params end end end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs index 2cdc216e..0bae03aa 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs index d49c3310..6b1a8ac1 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -37,8 +37,6 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_params - type change_option = :immediate | :upcoming_invoice | :effective_date module ChangeOption 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 963420bf..86ab05d2 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index c02bd584..eca1794f 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -32,8 +32,6 @@ module Orb ?net_terms: Integer?, ?request_options: Orb::request_opts ) -> void - - def to_hash: -> Orb::Models::subscription_update_params end end end diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index 4df914e3..275da499 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -23,14 +23,12 @@ module Orb ?request_options: Orb::request_opts ) -> void - def to_hash: -> Orb::Models::subscription_update_trial_params - type trial_end_date = Time | :immediate module TrialEndDate extend Orb::Internal::Type::Union - def self?.variants: -> [Time, :immediate] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUpdateTrialParams::trial_end_date] IMMEDIATE: :immediate end diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index 10ee3779..8866337a 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -11,7 +11,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], end_date: Time?, @@ -22,7 +22,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, start_date: Time, @@ -50,7 +50,7 @@ module Orb attr_accessor current_billing_period_start_date: Time? - attr_accessor customer: Orb::Models::Customer + attr_accessor customer: Orb::Customer attr_accessor default_invoice_memo: String? @@ -72,7 +72,7 @@ module Orb attr_accessor pending_subscription_change: Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange? - attr_accessor plan: Orb::Models::Plan + attr_accessor plan: Orb::Plan attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval] @@ -96,7 +96,7 @@ module Orb created_at: Time, current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String?, discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], end_date: Time?, @@ -107,7 +107,7 @@ module Orb minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange?, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, start_date: Time, @@ -116,8 +116,6 @@ module Orb ?changed_resources: Orb::Models::SubscriptionUpdateTrialResponse::ChangedResources? ) -> void - def to_hash: -> Orb::Models::subscription_update_trial_response - type adjustment_interval = { id: String, @@ -146,8 +144,6 @@ module Orb start_date: Time ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval - type adjustment = Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount @@ -193,8 +189,6 @@ module Orb usage_discount: Float, ?adjustment_type: :usage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::usage_discount end type amount_discount = @@ -232,8 +226,6 @@ module Orb reason: String?, ?adjustment_type: :amount_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::amount_discount end type percentage_discount = @@ -271,8 +263,6 @@ module Orb reason: String?, ?adjustment_type: :percentage_discount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::percentage_discount end type minimum = @@ -314,8 +304,6 @@ module Orb reason: String?, ?adjustment_type: :minimum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::minimum end type maximum = @@ -353,11 +341,9 @@ module Orb reason: String?, ?adjustment_type: :maximum ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::maximum end - def self?.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment] end end @@ -376,8 +362,6 @@ module Orb ?month: Integer?, ?year: Integer? ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -419,8 +403,6 @@ module Orb start_date: Time, ?discount_type: :amount ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount end type percentage = @@ -454,8 +436,6 @@ module Orb start_date: Time, ?discount_type: :percentage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage end type usage = @@ -489,11 +469,9 @@ module Orb usage_discount: Float, ?discount_type: :usage ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage end - def self?.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage] + def self?.variants: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval] end type fixed_fee_quantity_schedule = @@ -514,8 +492,6 @@ module Orb quantity: Float, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -545,8 +521,6 @@ module Orb maximum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval end type minimum_interval = @@ -576,8 +550,6 @@ module Orb minimum_amount: String, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval end type pending_subscription_change = { id: String } @@ -586,8 +558,6 @@ module Orb attr_accessor id: String def initialize: (id: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::pending_subscription_change end type price_interval = @@ -638,8 +608,6 @@ module Orb usage_customer_ids: ::Array[String]? ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::price_interval - type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -655,8 +623,6 @@ module Orb price_id: String, quantity: Integer ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -675,8 +641,6 @@ module Orb end_date: Time?, start_date: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -697,35 +661,31 @@ module Orb attr_accessor end_date: Time? def initialize: (end_date: Time?) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::trial_info end type changed_resources = { - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] } class ChangedResources < Orb::Internal::Type::BaseModel - attr_accessor created_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Models::Invoice] + attr_accessor created_invoices: ::Array[Orb::Invoice] - attr_accessor voided_credit_notes: ::Array[Orb::Models::CreditNote] + attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] - attr_accessor voided_invoices: ::Array[Orb::Models::Invoice] + attr_accessor voided_invoices: ::Array[Orb::Invoice] def initialize: ( - created_credit_notes: ::Array[Orb::Models::CreditNote], - created_invoices: ::Array[Orb::Models::Invoice], - voided_credit_notes: ::Array[Orb::Models::CreditNote], - voided_invoices: ::Array[Orb::Models::Invoice] + created_credit_notes: ::Array[Orb::CreditNote], + created_invoices: ::Array[Orb::Invoice], + voided_credit_notes: ::Array[Orb::CreditNote], + voided_invoices: ::Array[Orb::Invoice] ) -> void - - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::changed_resources end end end diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index 12f0a1e5..cd12ea84 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -1,48 +1,44 @@ module Orb module Models type subscription_usage = - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage - | Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + Orb::SubscriptionUsage::UngroupedSubscriptionUsage + | Orb::SubscriptionUsage::GroupedSubscriptionUsage module SubscriptionUsage extend Orb::Internal::Type::Union type ungrouped_subscription_usage = { - data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + data: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data] } class UngroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + attr_accessor data: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data] def initialize: ( - data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + data: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data] ) -> void - def to_hash: -> Orb::Models::SubscriptionUsage::ungrouped_subscription_usage - type data = { - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode + billable_metric: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode } class Data < Orb::Internal::Type::BaseModel - attr_accessor billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric + attr_accessor billable_metric: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric - attr_accessor usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] + attr_accessor usage: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] - attr_accessor view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode + attr_accessor view_mode: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode def initialize: ( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode + billable_metric: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode ) -> void - def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data - type billable_metric = { id: String, name: String } class BillableMetric < Orb::Internal::Type::BaseModel @@ -51,8 +47,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric end type usage = @@ -70,8 +64,6 @@ module Orb timeframe_end: Time, timeframe_start: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative @@ -82,55 +74,51 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] end end end type grouped_subscription_usage = { - data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: Orb::Models::PaginationMetadata? + data: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data], + pagination_metadata: Orb::PaginationMetadata? } class GroupedSubscriptionUsage < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data] + attr_accessor data: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data] - attr_accessor pagination_metadata: Orb::Models::PaginationMetadata? + attr_accessor pagination_metadata: Orb::PaginationMetadata? def initialize: ( - data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - ?pagination_metadata: Orb::Models::PaginationMetadata? + data: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data], + ?pagination_metadata: Orb::PaginationMetadata? ) -> void - def to_hash: -> Orb::Models::SubscriptionUsage::grouped_subscription_usage - type data = { - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode + billable_metric: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + metric_group: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + usage: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode } class Data < Orb::Internal::Type::BaseModel - attr_accessor billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric + attr_accessor billable_metric: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric - attr_accessor metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup + attr_accessor metric_group: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup - attr_accessor usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] + attr_accessor usage: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] - attr_accessor view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode + attr_accessor view_mode: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode def initialize: ( - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode + billable_metric: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + metric_group: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + usage: ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode ) -> void - def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data - type billable_metric = { id: String, name: String } class BillableMetric < Orb::Internal::Type::BaseModel @@ -139,8 +127,6 @@ module Orb attr_accessor name: String def initialize: (id: String, name: String) -> void - - def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric end type metric_group = { property_key: String, property_value: String } @@ -154,8 +140,6 @@ module Orb property_key: String, property_value: String ) -> void - - def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group end type usage = @@ -173,8 +157,6 @@ module Orb timeframe_end: Time, timeframe_start: Time ) -> void - - def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative @@ -185,12 +167,12 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] end end end - def self?.variants: -> [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + def self?.variants: -> ::Array[Orb::Models::subscription_usage] end end end diff --git a/sig/orb/models/subscriptions.rbs b/sig/orb/models/subscriptions.rbs index 93fba888..cbf0efff 100644 --- a/sig/orb/models/subscriptions.rbs +++ b/sig/orb/models/subscriptions.rbs @@ -2,21 +2,19 @@ module Orb module Models type subscriptions_api = { - data: ::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata + data: ::Array[Orb::Subscription], + pagination_metadata: Orb::PaginationMetadata } class SubscriptionsAPI < Orb::Internal::Type::BaseModel - attr_accessor data: ::Array[Orb::Models::Subscription] + attr_accessor data: ::Array[Orb::Subscription] - attr_accessor pagination_metadata: Orb::Models::PaginationMetadata + attr_accessor pagination_metadata: Orb::PaginationMetadata def initialize: ( - data: ::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata + data: ::Array[Orb::Subscription], + pagination_metadata: Orb::PaginationMetadata ) -> void - - def to_hash: -> Orb::Models::subscriptions_api end end end diff --git a/sig/orb/models/top_level_ping_params.rbs b/sig/orb/models/top_level_ping_params.rbs index a0479d77..059323ad 100644 --- a/sig/orb/models/top_level_ping_params.rbs +++ b/sig/orb/models/top_level_ping_params.rbs @@ -7,8 +7,6 @@ module Orb include Orb::Internal::Type::RequestParameters def initialize: (?request_options: Orb::request_opts) -> void - - def to_hash: -> Orb::Models::top_level_ping_params end end end diff --git a/sig/orb/models/top_level_ping_response.rbs b/sig/orb/models/top_level_ping_response.rbs index 4be7e10c..017b69f2 100644 --- a/sig/orb/models/top_level_ping_response.rbs +++ b/sig/orb/models/top_level_ping_response.rbs @@ -6,8 +6,6 @@ module Orb attr_accessor response: String def initialize: (response: String) -> void - - def to_hash: -> Orb::Models::top_level_ping_response end end end diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index 2ae007de..02bdd073 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -3,7 +3,7 @@ module Orb type trial_discount = { applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::TrialDiscount::discount_type, + discount_type: Orb::TrialDiscount::discount_type, reason: String?, trial_amount_discount: String?, trial_percentage_discount: Float? @@ -12,7 +12,7 @@ module Orb class TrialDiscount < Orb::Internal::Type::BaseModel attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor discount_type: Orb::Models::TrialDiscount::discount_type + attr_accessor discount_type: Orb::TrialDiscount::discount_type attr_accessor reason: String? @@ -22,14 +22,12 @@ module Orb def initialize: ( applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::TrialDiscount::discount_type, + discount_type: Orb::TrialDiscount::discount_type, ?reason: String?, ?trial_amount_discount: String?, ?trial_percentage_discount: Float? ) -> void - def to_hash: -> Orb::Models::trial_discount - type discount_type = :trial module DiscountType @@ -37,7 +35,7 @@ module Orb TRIAL: :trial - def self?.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] + def self?.values: -> ::Array[Orb::TrialDiscount::discount_type] end end end diff --git a/sig/orb/models/usage_discount.rbs b/sig/orb/models/usage_discount.rbs index 62d71dfc..5f86d60f 100644 --- a/sig/orb/models/usage_discount.rbs +++ b/sig/orb/models/usage_discount.rbs @@ -3,7 +3,7 @@ module Orb type usage_discount = { applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::UsageDiscount::discount_type, + discount_type: Orb::UsageDiscount::discount_type, usage_discount: Float, reason: String? } @@ -11,7 +11,7 @@ module Orb class UsageDiscount < Orb::Internal::Type::BaseModel attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor discount_type: Orb::Models::UsageDiscount::discount_type + attr_accessor discount_type: Orb::UsageDiscount::discount_type attr_accessor usage_discount: Float @@ -19,13 +19,11 @@ module Orb def initialize: ( applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::UsageDiscount::discount_type, + discount_type: Orb::UsageDiscount::discount_type, usage_discount: Float, ?reason: String? ) -> void - def to_hash: -> Orb::Models::usage_discount - type discount_type = :usage module DiscountType @@ -33,7 +31,7 @@ module Orb USAGE: :usage - def self?.values: -> ::Array[Orb::Models::UsageDiscount::discount_type] + def self?.values: -> ::Array[Orb::UsageDiscount::discount_type] end end end diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index a802477b..8ce59c81 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -13,7 +13,7 @@ module Orb } class RequestOptions < Orb::Internal::Type::BaseModel - def self.validate!: (self | ::Hash[Symbol, top] opts) -> void + def self.validate!: (Orb::request_opts opts) -> void attr_accessor idempotency_key: String? diff --git a/sig/orb/resources/alerts.rbs b/sig/orb/resources/alerts.rbs index d807e316..b1a05fb1 100644 --- a/sig/orb/resources/alerts.rbs +++ b/sig/orb/resources/alerts.rbs @@ -4,13 +4,13 @@ module Orb def retrieve: ( String alert_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def update: ( String alert_configuration_id, - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + thresholds: ::Array[Orb::AlertUpdateParams::Threshold], ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def list: ( ?created_at_gt: Time?, @@ -23,43 +23,43 @@ module Orb ?limit: Integer, ?subscription_id: String?, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Alert] + ) -> Orb::Internal::Page[Orb::Alert] def create_for_customer: ( String customer_id, currency: String, type: Orb::Models::AlertCreateForCustomerParams::type_, - ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?thresholds: ::Array[Orb::AlertCreateForCustomerParams::Threshold]?, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def create_for_external_customer: ( String external_customer_id, currency: String, type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?thresholds: ::Array[Orb::AlertCreateForExternalCustomerParams::Threshold]?, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def create_for_subscription: ( String subscription_id, - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + thresholds: ::Array[Orb::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, ?metric_id: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def disable: ( String alert_configuration_id, ?subscription_id: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def enable: ( String alert_configuration_id, ?subscription_id: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Alert + ) -> Orb::Alert def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/coupons.rbs b/sig/orb/resources/coupons.rbs index 7cab8ad9..22942ea8 100644 --- a/sig/orb/resources/coupons.rbs +++ b/sig/orb/resources/coupons.rbs @@ -9,7 +9,7 @@ module Orb ?duration_in_months: Integer?, ?max_redemptions: Integer?, ?request_options: Orb::request_opts - ) -> Orb::Models::Coupon + ) -> Orb::Coupon def list: ( ?cursor: String?, @@ -17,17 +17,17 @@ module Orb ?redemption_code: String?, ?show_archived: bool?, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Coupon] + ) -> Orb::Internal::Page[Orb::Coupon] def archive: ( String coupon_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Coupon + ) -> Orb::Coupon def fetch: ( String coupon_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Coupon + ) -> Orb::Coupon def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/coupons/subscriptions.rbs b/sig/orb/resources/coupons/subscriptions.rbs index ce1b418e..f649685d 100644 --- a/sig/orb/resources/coupons/subscriptions.rbs +++ b/sig/orb/resources/coupons/subscriptions.rbs @@ -7,7 +7,7 @@ module Orb ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Subscription] + ) -> Orb::Internal::Page[Orb::Subscription] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/credit_notes.rbs b/sig/orb/resources/credit_notes.rbs index f62ddeb7..bba61d0d 100644 --- a/sig/orb/resources/credit_notes.rbs +++ b/sig/orb/resources/credit_notes.rbs @@ -2,11 +2,11 @@ module Orb module Resources class CreditNotes def create: ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: ::Array[Orb::CreditNoteCreateParams::LineItem], ?memo: String?, ?reason: Orb::Models::CreditNoteCreateParams::reason?, ?request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + ) -> Orb::CreditNote def list: ( ?created_at_gt: Time?, @@ -16,12 +16,12 @@ module Orb ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::CreditNote] + ) -> Orb::Internal::Page[Orb::CreditNote] def fetch: ( String credit_note_id, ?request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + ) -> Orb::CreditNote def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers.rbs b/sig/orb/resources/customers.rbs index a12e8327..eff74a5e 100644 --- a/sig/orb/resources/customers.rbs +++ b/sig/orb/resources/customers.rbs @@ -10,46 +10,46 @@ module Orb def create: ( email: String, name: String, - ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerCreateParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?billing_address: Orb::CustomerCreateParams::BillingAddress?, ?currency: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, + ?hierarchy: Orb::CustomerCreateParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerCreateParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerCreateParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?tax_id: Orb::CustomerCreateParams::TaxID?, ?timezone: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Customer + ) -> Orb::Customer def update: ( String customer_id, - ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerUpdateParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?billing_address: Orb::CustomerUpdateParams::BillingAddress?, ?currency: String?, ?email: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, + ?hierarchy: Orb::CustomerUpdateParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?name: String?, ?payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerUpdateParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerUpdateParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?tax_id: Orb::CustomerUpdateParams::TaxID?, ?request_options: Orb::request_opts - ) -> Orb::Models::Customer + ) -> Orb::Customer def list: ( ?created_at_gt: Time?, @@ -59,7 +59,7 @@ module Orb ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Customer] + ) -> Orb::Internal::Page[Orb::Customer] def delete: ( String customer_id, @@ -69,12 +69,12 @@ module Orb def fetch: ( String customer_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Customer + ) -> Orb::Customer def fetch_by_external_id: ( String external_customer_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Customer + ) -> Orb::Customer def sync_payment_methods_from_gateway: ( String customer_id, @@ -88,25 +88,25 @@ module Orb def update_by_external_id: ( String id, - ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?accounting_sync_configuration: Orb::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, - ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?billing_address: Orb::CustomerUpdateByExternalIDParams::BillingAddress?, ?currency: String?, ?email: String?, ?email_delivery: bool?, ?external_customer_id: String?, - ?hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, + ?hierarchy: Orb::CustomerUpdateByExternalIDParams::Hierarchy?, ?metadata: ::Hash[Symbol, String?]?, ?name: String?, ?payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, ?payment_provider_id: String?, - ?reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, - ?shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, + ?reporting_configuration: Orb::CustomerUpdateByExternalIDParams::ReportingConfiguration?, + ?shipping_address: Orb::CustomerUpdateByExternalIDParams::ShippingAddress?, ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?tax_id: Orb::CustomerUpdateByExternalIDParams::TaxID?, ?request_options: Orb::request_opts - ) -> Orb::Models::Customer + ) -> Orb::Customer def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits/ledger.rbs b/sig/orb/resources/customers/credits/ledger.rbs index ec8467ff..10791315 100644 --- a/sig/orb/resources/customers/credits/ledger.rbs +++ b/sig/orb/resources/customers/credits/ledger.rbs @@ -28,7 +28,7 @@ module Orb ?currency: String?, ?description: String?, ?effective_date: Time?, - ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, + ?invoice_settings: Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, ?metadata: ::Hash[Symbol, String?]?, ?per_unit_cost_basis: String?, ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, @@ -45,7 +45,7 @@ module Orb ?currency: String?, ?description: String?, ?effective_date: Time?, - ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, + ?invoice_settings: Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, ?metadata: ::Hash[Symbol, String?]?, ?per_unit_cost_basis: String?, ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, diff --git a/sig/orb/resources/customers/credits/top_ups.rbs b/sig/orb/resources/customers/credits/top_ups.rbs index 57c20613..3177cde8 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, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, ?active_from: Time?, @@ -33,7 +33,7 @@ module Orb String external_customer_id, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, per_unit_cost_basis: String, threshold: String, ?active_from: Time?, diff --git a/sig/orb/resources/dimensional_price_groups.rbs b/sig/orb/resources/dimensional_price_groups.rbs index 7f2cee06..8ee4a33f 100644 --- a/sig/orb/resources/dimensional_price_groups.rbs +++ b/sig/orb/resources/dimensional_price_groups.rbs @@ -10,18 +10,18 @@ module Orb ?external_dimensional_price_group_id: String?, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + ) -> Orb::DimensionalPriceGroup def retrieve: ( String dimensional_price_group_id, ?request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + ) -> Orb::DimensionalPriceGroup def list: ( ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::DimensionalPriceGroup] + ) -> Orb::Internal::Page[Orb::DimensionalPriceGroup] def initialize: (client: Orb::Client) -> void end 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 35373d1c..752834c0 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 @@ -5,7 +5,7 @@ module Orb def retrieve: ( String external_dimensional_price_group_id, ?request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + ) -> Orb::DimensionalPriceGroup def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events.rbs b/sig/orb/resources/events.rbs index 5f1a070b..b3edc209 100644 --- a/sig/orb/resources/events.rbs +++ b/sig/orb/resources/events.rbs @@ -21,7 +21,7 @@ module Orb ) -> Orb::Models::EventDeprecateResponse def ingest: ( - events: ::Array[Orb::Models::EventIngestParams::Event], + events: ::Array[Orb::EventIngestParams::Event], ?backfill_id: String?, ?debug: bool, ?request_options: Orb::request_opts diff --git a/sig/orb/resources/events/volume.rbs b/sig/orb/resources/events/volume.rbs index 0af9b6e2..d5349d94 100644 --- a/sig/orb/resources/events/volume.rbs +++ b/sig/orb/resources/events/volume.rbs @@ -8,7 +8,7 @@ module Orb ?limit: Integer, ?timeframe_end: Time, ?request_options: Orb::request_opts - ) -> Orb::Models::Events::EventVolumes + ) -> Orb::Events::EventVolumes def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/invoices.rbs b/sig/orb/resources/invoices.rbs index f0055d02..0b65701b 100644 --- a/sig/orb/resources/invoices.rbs +++ b/sig/orb/resources/invoices.rbs @@ -4,7 +4,7 @@ module Orb def create: ( currency: String, invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::InvoiceCreateParams::LineItem], net_terms: Integer, ?customer_id: String?, ?discount: Orb::Models::discount?, @@ -13,13 +13,13 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?will_auto_issue: bool, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def update: ( String invoice_id, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def list: ( ?amount: String?, @@ -39,15 +39,15 @@ module Orb ?invoice_date_lte: Time?, ?is_recurring: bool?, ?limit: Integer, - ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?status: ::Array[Orb::InvoiceListParams::status]?, ?subscription_id: String?, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Invoice] + ) -> Orb::Internal::Page[Orb::Invoice] def fetch: ( String invoice_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def fetch_upcoming: ( subscription_id: String, @@ -58,7 +58,7 @@ module Orb String invoice_id, ?synchronous: bool, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def mark_paid: ( String invoice_id, @@ -66,17 +66,17 @@ module Orb ?external_id: String?, ?notes: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def pay: ( String invoice_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def `void`: ( String invoice_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Invoice + ) -> Orb::Invoice def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/items.rbs b/sig/orb/resources/items.rbs index ab194466..86188351 100644 --- a/sig/orb/resources/items.rbs +++ b/sig/orb/resources/items.rbs @@ -4,25 +4,25 @@ module Orb def create: ( name: String, ?request_options: Orb::request_opts - ) -> Orb::Models::Item + ) -> Orb::Item def update: ( String item_id, - ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?external_connections: ::Array[Orb::ItemUpdateParams::ExternalConnection]?, ?name: String?, ?request_options: Orb::request_opts - ) -> Orb::Models::Item + ) -> Orb::Item def list: ( ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Item] + ) -> Orb::Internal::Page[Orb::Item] def fetch: ( String item_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Item + ) -> Orb::Item def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/metrics.rbs b/sig/orb/resources/metrics.rbs index 389249e1..da96e902 100644 --- a/sig/orb/resources/metrics.rbs +++ b/sig/orb/resources/metrics.rbs @@ -8,13 +8,13 @@ module Orb sql: String, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + ) -> Orb::BillableMetric def update: ( String metric_id, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + ) -> Orb::BillableMetric def list: ( ?created_at_gt: Time?, @@ -24,12 +24,12 @@ module Orb ?cursor: String?, ?limit: Integer, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::BillableMetric] + ) -> Orb::Internal::Page[Orb::BillableMetric] def fetch: ( String metric_id, ?request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + ) -> Orb::BillableMetric def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/plans.rbs b/sig/orb/resources/plans.rbs index 9911b122..9df00adf 100644 --- a/sig/orb/resources/plans.rbs +++ b/sig/orb/resources/plans.rbs @@ -6,21 +6,21 @@ module Orb def create: ( currency: String, name: String, - prices: ::Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::PlanCreateParams::price], ?default_invoice_memo: String?, ?external_plan_id: String?, ?metadata: ::Hash[Symbol, String?]?, ?net_terms: Integer?, ?status: Orb::Models::PlanCreateParams::status, ?request_options: Orb::request_opts - ) -> Orb::Models::Plan + ) -> Orb::Plan def update: ( String plan_id, ?external_plan_id: String?, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::Plan + ) -> Orb::Plan def list: ( ?created_at_gt: Time?, @@ -31,12 +31,12 @@ module Orb ?limit: Integer, ?status: Orb::Models::PlanListParams::status, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Plan] + ) -> Orb::Internal::Page[Orb::Plan] def fetch: ( String plan_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Plan + ) -> Orb::Plan def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/plans/external_plan_id.rbs b/sig/orb/resources/plans/external_plan_id.rbs index 41ff425b..b0bd8d99 100644 --- a/sig/orb/resources/plans/external_plan_id.rbs +++ b/sig/orb/resources/plans/external_plan_id.rbs @@ -7,12 +7,12 @@ module Orb ?external_plan_id: String?, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts - ) -> Orb::Models::Plan + ) -> Orb::Plan def fetch: ( String external_plan_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Plan + ) -> Orb::Plan def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 18f0aaca..61f24a2a 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -9,15 +9,15 @@ module Orb item_id: String, model_type: Orb::Models::PriceCreateParams::model_type, name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - package_config: Orb::Models::PriceCreateParams::PackageConfig, - matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, - matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, + unit_config: Orb::PriceCreateParams::UnitConfig, + package_config: Orb::PriceCreateParams::PackageConfig, + matrix_config: Orb::PriceCreateParams::MatrixConfig, + matrix_with_allocation_config: Orb::PriceCreateParams::MatrixWithAllocationConfig, + tiered_config: Orb::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::PriceCreateParams::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], grouped_tiered_config: ::Hash[Symbol, top], @@ -39,12 +39,12 @@ module Orb cumulative_grouped_bulk_config: ::Hash[Symbol, top], ?billable_metric_id: String?, ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?billing_cycle_configuration: Orb::PriceCreateParams::BillingCycleConfiguration?, ?conversion_rate: Float?, ?external_price_id: String?, ?fixed_price_quantity: Float?, ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?invoicing_cycle_configuration: Orb::PriceCreateParams::InvoicingCycleConfiguration?, ?metadata: ::Hash[Symbol, String?]?, ?request_options: Orb::request_opts ) -> Orb::Models::price diff --git a/sig/orb/resources/subscriptions.rbs b/sig/orb/resources/subscriptions.rbs index 6380f54f..4386a078 100644 --- a/sig/orb/resources/subscriptions.rbs +++ b/sig/orb/resources/subscriptions.rbs @@ -2,12 +2,12 @@ module Orb module Resources class Subscriptions def create: ( - ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?add_adjustments: ::Array[Orb::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?, ?align_billing_with_subscription_start_date: bool, ?auto_collection: bool?, ?aws_region: String?, - ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?billing_cycle_anchor_configuration: Orb::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, ?coupon_redemption_code: String?, ?credits_overage_rate: Float?, ?customer_id: String?, @@ -26,10 +26,10 @@ module Orb ?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]?, + ?remove_adjustments: ::Array[Orb::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::SubscriptionCreateParams::ReplacePrice]?, ?start_date: Time?, ?trial_duration_days: Integer?, ?usage_customer_ids: ::Array[String]?, @@ -44,7 +44,7 @@ module Orb ?metadata: ::Hash[Symbol, String?]?, ?net_terms: Integer?, ?request_options: Orb::request_opts - ) -> Orb::Models::Subscription + ) -> Orb::Subscription def list: ( ?created_at_gt: Time?, @@ -57,7 +57,7 @@ module Orb ?limit: Integer, ?status: Orb::Models::SubscriptionListParams::status?, ?request_options: Orb::request_opts - ) -> Orb::Internal::Page[Orb::Models::Subscription] + ) -> Orb::Internal::Page[Orb::Subscription] def cancel: ( String subscription_id, @@ -70,7 +70,7 @@ module Orb def fetch: ( String subscription_id, ?request_options: Orb::request_opts - ) -> Orb::Models::Subscription + ) -> Orb::Subscription def fetch_costs: ( String subscription_id, @@ -109,23 +109,23 @@ module Orb def price_intervals: ( String subscription_id, - ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?add: ::Array[Orb::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::AddAdjustment], ?allow_invoice_credit_or_void: bool?, - ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - ?edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + ?edit: ::Array[Orb::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::SubscriptionPriceIntervalsParams::EditAdjustment], ?request_options: Orb::request_opts ) -> Orb::Models::SubscriptionPriceIntervalsResponse def schedule_plan_change: ( 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::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?, ?align_billing_with_plan_change_date: bool?, ?auto_collection: bool?, ?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + ?billing_cycle_anchor_configuration: Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, ?change_date: Time?, ?coupon_redemption_code: String?, ?credits_overage_rate: Float?, @@ -139,10 +139,10 @@ module Orb ?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]?, + ?remove_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, ?trial_duration_days: Integer?, ?usage_customer_ids: ::Array[String]?, ?request_options: Orb::request_opts diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index f0a7da93..194d2622 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -7,7 +7,7 @@ def test_retrieve response = @orb.alerts.retrieve("alert_id") assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -15,13 +15,13 @@ def test_retrieve id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -30,7 +30,7 @@ def test_update_required_params response = @orb.alerts.update("alert_configuration_id", thresholds: [{value: 0}]) assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -38,13 +38,13 @@ def test_update_required_params id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -62,7 +62,7 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Alert + row => Orb::Alert end assert_pattern do @@ -70,13 +70,13 @@ def test_list id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -86,7 +86,7 @@ def test_create_for_customer_required_params @orb.alerts.create_for_customer("customer_id", currency: "currency", type: :credit_balance_depleted) assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -94,13 +94,13 @@ def test_create_for_customer_required_params id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -114,7 +114,7 @@ def test_create_for_external_customer_required_params ) assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -122,13 +122,13 @@ def test_create_for_external_customer_required_params id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -138,7 +138,7 @@ def test_create_for_subscription_required_params @orb.alerts.create_for_subscription("subscription_id", thresholds: [{value: 0}], type: :usage_exceeded) assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -146,13 +146,13 @@ def test_create_for_subscription_required_params id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -161,7 +161,7 @@ def test_disable response = @orb.alerts.disable("alert_configuration_id") assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -169,13 +169,13 @@ def test_disable id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end @@ -184,7 +184,7 @@ def test_enable response = @orb.alerts.enable("alert_configuration_id") assert_pattern do - response => Orb::Models::Alert + response => Orb::Alert end assert_pattern do @@ -192,13 +192,13 @@ def test_enable id: String, created_at: Time, currency: String | nil, - customer: Orb::Models::Alert::Customer | nil, + customer: Orb::Alert::Customer | nil, enabled: Orb::Internal::Type::Boolean, - metric: Orb::Models::Alert::Metric | nil, - plan: Orb::Models::Alert::Plan | nil, - subscription: Orb::Models::Alert::Subscription | nil, - thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Alert::Threshold]) | nil, - type: Orb::Models::Alert::Type + metric: Orb::Alert::Metric | nil, + plan: Orb::Alert::Plan | nil, + subscription: Orb::Alert::Subscription | nil, + thresholds: ^(Orb::Internal::Type::ArrayOf[Orb::Alert::Threshold]) | nil, + type: Orb::Alert::Type } end end diff --git a/test/orb/resources/coupons/subscriptions_test.rb b/test/orb/resources/coupons/subscriptions_test.rb index 52d4c49b..70b37196 100644 --- a/test/orb/resources/coupons/subscriptions_test.rb +++ b/test/orb/resources/coupons/subscriptions_test.rb @@ -14,37 +14,37 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Subscription + row => Orb::Subscription end assert_pattern do row => { id: String, active_plan_phase_order: Integer | nil, - adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), + adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval]), auto_collection: Orb::Internal::Type::Boolean | nil, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, - discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Subscription::DiscountInterval]), + discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval]), end_date: Time | nil, - fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::FixedFeeQuantitySchedule]), + fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule]), invoicing_threshold: String | nil, - maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MaximumInterval]), + maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval]), metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MinimumInterval]), + minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval]), net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, - price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval]), - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon | nil, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange | nil, + plan: Orb::Plan, + price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval]), + redeemed_coupon: Orb::Subscription::RedeemedCoupon | nil, start_date: Time, - status: Orb::Models::Subscription::Status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::Status, + trial_info: Orb::Subscription::TrialInfo } end end diff --git a/test/orb/resources/coupons_test.rb b/test/orb/resources/coupons_test.rb index b019bd68..aae859bb 100644 --- a/test/orb/resources/coupons_test.rb +++ b/test/orb/resources/coupons_test.rb @@ -11,14 +11,14 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::Coupon + response => Orb::Coupon end assert_pattern do response => { id: String, archived_at: Time | nil, - discount: Orb::Models::Coupon::Discount, + discount: Orb::Coupon::Discount, duration_in_months: Integer | nil, max_redemptions: Integer | nil, redemption_code: String, @@ -38,14 +38,14 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Coupon + row => Orb::Coupon end assert_pattern do row => { id: String, archived_at: Time | nil, - discount: Orb::Models::Coupon::Discount, + discount: Orb::Coupon::Discount, duration_in_months: Integer | nil, max_redemptions: Integer | nil, redemption_code: String, @@ -58,14 +58,14 @@ def test_archive response = @orb.coupons.archive("coupon_id") assert_pattern do - response => Orb::Models::Coupon + response => Orb::Coupon end assert_pattern do response => { id: String, archived_at: Time | nil, - discount: Orb::Models::Coupon::Discount, + discount: Orb::Coupon::Discount, duration_in_months: Integer | nil, max_redemptions: Integer | nil, redemption_code: String, @@ -78,14 +78,14 @@ def test_fetch response = @orb.coupons.fetch("coupon_id") assert_pattern do - response => Orb::Models::Coupon + response => Orb::Coupon end assert_pattern do response => { id: String, archived_at: Time | nil, - discount: Orb::Models::Coupon::Discount, + discount: Orb::Coupon::Discount, duration_in_months: Integer | nil, max_redemptions: Integer | nil, redemption_code: String, diff --git a/test/orb/resources/credit_notes_test.rb b/test/orb/resources/credit_notes_test.rb index 72ebf520..103737e0 100644 --- a/test/orb/resources/credit_notes_test.rb +++ b/test/orb/resources/credit_notes_test.rb @@ -8,7 +8,7 @@ def test_create_required_params @orb.credit_notes.create(line_items: [{amount: "amount", invoice_line_item_id: "4khy3nwzktxv7"}]) assert_pattern do - response => Orb::Models::CreditNote + response => Orb::CreditNote end assert_pattern do @@ -17,18 +17,18 @@ def test_create_required_params created_at: Time, credit_note_number: String, credit_note_pdf: String | nil, - customer: Orb::Models::CreditNote::Customer, + customer: Orb::CreditNote::Customer, invoice_id: String, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem]), - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem]), + maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment | nil, memo: String | nil, minimum_amount_refunded: String | nil, - reason: Orb::Models::CreditNote::Reason | nil, + reason: Orb::CreditNote::Reason | nil, subtotal: String, total: String, - type: Orb::Models::CreditNote::Type, + type: Orb::CreditNote::Type, voided_at: Time | nil, - discounts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::Discount]) | nil + discounts: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::Discount]) | nil } end end @@ -44,7 +44,7 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::CreditNote + row => Orb::CreditNote end assert_pattern do @@ -53,18 +53,18 @@ def test_list created_at: Time, credit_note_number: String, credit_note_pdf: String | nil, - customer: Orb::Models::CreditNote::Customer, + customer: Orb::CreditNote::Customer, invoice_id: String, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem]), - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem]), + maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment | nil, memo: String | nil, minimum_amount_refunded: String | nil, - reason: Orb::Models::CreditNote::Reason | nil, + reason: Orb::CreditNote::Reason | nil, subtotal: String, total: String, - type: Orb::Models::CreditNote::Type, + type: Orb::CreditNote::Type, voided_at: Time | nil, - discounts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::Discount]) | nil + discounts: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::Discount]) | nil } end end @@ -73,7 +73,7 @@ def test_fetch response = @orb.credit_notes.fetch("credit_note_id") assert_pattern do - response => Orb::Models::CreditNote + response => Orb::CreditNote end assert_pattern do @@ -82,18 +82,18 @@ def test_fetch created_at: Time, credit_note_number: String, credit_note_pdf: String | nil, - customer: Orb::Models::CreditNote::Customer, + customer: Orb::CreditNote::Customer, invoice_id: String, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::LineItem]), - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::LineItem]), + maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment | nil, memo: String | nil, minimum_amount_refunded: String | nil, - reason: Orb::Models::CreditNote::Reason | nil, + reason: Orb::CreditNote::Reason | nil, subtotal: String, total: String, - type: Orb::Models::CreditNote::Type, + type: Orb::CreditNote::Type, voided_at: Time | nil, - discounts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::CreditNote::Discount]) | nil + discounts: ^(Orb::Internal::Type::ArrayOf[Orb::CreditNote::Discount]) | nil } end end diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index 8c3ebed0..3091973e 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -7,7 +7,7 @@ def test_create_required_params response = @orb.customers.create(email: "dev@stainless.com", name: "x") assert_pattern do - response => Orb::Models::Customer + response => Orb::Customer end assert_pattern do @@ -16,24 +16,24 @@ def test_create_required_params additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end @@ -42,7 +42,7 @@ def test_update response = @orb.customers.update("customer_id") assert_pattern do - response => Orb::Models::Customer + response => Orb::Customer end assert_pattern do @@ -51,24 +51,24 @@ def test_update additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end @@ -84,7 +84,7 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Customer + row => Orb::Customer end assert_pattern do @@ -93,24 +93,24 @@ def test_list additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end @@ -127,7 +127,7 @@ def test_fetch response = @orb.customers.fetch("customer_id") assert_pattern do - response => Orb::Models::Customer + response => Orb::Customer end assert_pattern do @@ -136,24 +136,24 @@ def test_fetch additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end @@ -162,7 +162,7 @@ def test_fetch_by_external_id response = @orb.customers.fetch_by_external_id("external_customer_id") assert_pattern do - response => Orb::Models::Customer + response => Orb::Customer end assert_pattern do @@ -171,24 +171,24 @@ def test_fetch_by_external_id additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end @@ -214,7 +214,7 @@ def test_update_by_external_id response = @orb.customers.update_by_external_id("external_customer_id") assert_pattern do - response => Orb::Models::Customer + response => Orb::Customer end assert_pattern do @@ -223,24 +223,24 @@ def test_update_by_external_id additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, balance: String, - billing_address: Orb::Models::Customer::BillingAddress | nil, + billing_address: Orb::Customer::BillingAddress | nil, created_at: Time, currency: String | nil, email: String, email_delivery: Orb::Internal::Type::Boolean, exempt_from_automated_tax: Orb::Internal::Type::Boolean | nil, external_customer_id: String | nil, - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: Orb::Customer::Hierarchy, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - payment_provider: Orb::Models::Customer::PaymentProvider | nil, + payment_provider: Orb::Customer::PaymentProvider | nil, payment_provider_id: String | nil, portal_url: String | nil, - shipping_address: Orb::Models::Customer::ShippingAddress | nil, - tax_id: Orb::Models::Customer::TaxID | nil, + shipping_address: Orb::Customer::ShippingAddress | nil, + tax_id: Orb::Customer::TaxID | nil, timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration | nil, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration | nil + accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration | nil, + reporting_configuration: Orb::Customer::ReportingConfiguration | nil } end end diff --git a/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb b/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb index 4799869f..9f575441 100644 --- a/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb +++ b/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb @@ -10,7 +10,7 @@ def test_retrieve ) assert_pattern do - response => Orb::Models::DimensionalPriceGroup + response => Orb::DimensionalPriceGroup end assert_pattern do diff --git a/test/orb/resources/dimensional_price_groups_test.rb b/test/orb/resources/dimensional_price_groups_test.rb index 6fc6e84d..974856d8 100644 --- a/test/orb/resources/dimensional_price_groups_test.rb +++ b/test/orb/resources/dimensional_price_groups_test.rb @@ -12,7 +12,7 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::DimensionalPriceGroup + response => Orb::DimensionalPriceGroup end assert_pattern do @@ -31,7 +31,7 @@ def test_retrieve response = @orb.dimensional_price_groups.retrieve("dimensional_price_group_id") assert_pattern do - response => Orb::Models::DimensionalPriceGroup + response => Orb::DimensionalPriceGroup end assert_pattern do @@ -57,7 +57,7 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::DimensionalPriceGroup + row => Orb::DimensionalPriceGroup end assert_pattern do diff --git a/test/orb/resources/events/volume_test.rb b/test/orb/resources/events/volume_test.rb index 0cc08947..0e25367e 100644 --- a/test/orb/resources/events/volume_test.rb +++ b/test/orb/resources/events/volume_test.rb @@ -7,12 +7,12 @@ def test_list_required_params response = @orb.events.volume.list(timeframe_start: "2019-12-27T18:11:19.117Z") assert_pattern do - response => Orb::Models::Events::EventVolumes + response => Orb::Events::EventVolumes end assert_pattern do response => { - data: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Events::EventVolumes::Data]) + data: ^(Orb::Internal::Type::ArrayOf[Orb::Events::EventVolumes::Data]) } end end diff --git a/test/orb/resources/invoice_line_items_test.rb b/test/orb/resources/invoice_line_items_test.rb index 40d46a4e..2af99ceb 100644 --- a/test/orb/resources/invoice_line_items_test.rb +++ b/test/orb/resources/invoice_line_items_test.rb @@ -25,7 +25,7 @@ def test_create_required_params adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment]), amount: String, credits_applied: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, end_date: Time, filter: String | nil, grouping: String | nil, @@ -35,7 +35,7 @@ def test_create_required_params minimum_amount: String | nil, name: String, partially_invoiced_amount: String, - price: Orb::Models::Price | nil, + price: Orb::Price | nil, quantity: Float, start_date: Time, sub_line_items: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem]), diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index e339808d..430e09ba 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -23,47 +23,47 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -77,47 +77,47 @@ def test_update response = @orb.invoices.update("invoice_id") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -138,47 +138,47 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Invoice + row => Orb::Invoice end assert_pattern do row => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -192,47 +192,47 @@ def test_fetch response = @orb.invoices.fetch("invoice_id") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -262,7 +262,7 @@ def test_fetch_upcoming_required_params customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]), customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, @@ -300,47 +300,47 @@ def test_issue response = @orb.invoices.issue("invoice_id") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -354,47 +354,47 @@ def test_mark_paid_required_params response = @orb.invoices.mark_paid("invoice_id", payment_received_date: "2023-09-22") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -408,47 +408,47 @@ def test_pay response = @orb.invoices.pay("invoice_id") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, @@ -462,47 +462,47 @@ def test_void response = @orb.invoices.void("invoice_id") assert_pattern do - response => Orb::Models::Invoice + response => Orb::Invoice end assert_pattern do response => { id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress | nil, + auto_collection: Orb::Invoice::AutoCollection, + billing_address: Orb::Invoice::BillingAddress | nil, created_at: Time, - credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CreditNote]), + credit_notes: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CreditNote]), currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::CustomerBalanceTransaction]), - customer_tax_id: Orb::Models::Invoice::CustomerTaxID | nil, + customer: Orb::Invoice::Customer, + customer_balance_transactions: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::CustomerBalanceTransaction]), + customer_tax_id: Orb::Invoice::CustomerTaxID | nil, discount: Orb::Internal::Type::Unknown, - discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLevelDiscount]), + discounts: ^(Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount]), due_date: Time | nil, eligible_to_issue_at: Time | nil, hosted_invoice_url: String | nil, invoice_date: Time, invoice_number: String, invoice_pdf: String | nil, - invoice_source: Orb::Models::Invoice::InvoiceSource, + invoice_source: Orb::Invoice::InvoiceSource, issue_failed_at: Time | nil, issued_at: Time | nil, - line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::LineItem]), - maximum: Orb::Models::Invoice::Maximum | nil, + line_items: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::LineItem]), + maximum: Orb::Invoice::Maximum | nil, maximum_amount: String | nil, memo: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Invoice::Minimum | nil, + minimum: Orb::Invoice::Minimum | nil, minimum_amount: String | nil, paid_at: Time | nil, - payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Invoice::PaymentAttempt]), + payment_attempts: ^(Orb::Internal::Type::ArrayOf[Orb::Invoice::PaymentAttempt]), payment_failed_at: Time | nil, payment_started_at: Time | nil, scheduled_issue_at: Time | nil, - shipping_address: Orb::Models::Invoice::ShippingAddress | nil, - status: Orb::Models::Invoice::Status, - subscription: Orb::Models::Invoice::Subscription | nil, + shipping_address: Orb::Invoice::ShippingAddress | nil, + status: Orb::Invoice::Status, + subscription: Orb::Invoice::Subscription | nil, subtotal: String, sync_failed_at: Time | nil, total: String, diff --git a/test/orb/resources/items_test.rb b/test/orb/resources/items_test.rb index 28d43523..d295e654 100644 --- a/test/orb/resources/items_test.rb +++ b/test/orb/resources/items_test.rb @@ -7,14 +7,14 @@ def test_create_required_params response = @orb.items.create(name: "API requests") assert_pattern do - response => Orb::Models::Item + response => Orb::Item end assert_pattern do response => { id: String, created_at: Time, - external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Item::ExternalConnection]), + external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection]), name: String } end @@ -24,14 +24,14 @@ def test_update response = @orb.items.update("item_id") assert_pattern do - response => Orb::Models::Item + response => Orb::Item end assert_pattern do response => { id: String, created_at: Time, - external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Item::ExternalConnection]), + external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection]), name: String } end @@ -48,14 +48,14 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Item + row => Orb::Item end assert_pattern do row => { id: String, created_at: Time, - external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Item::ExternalConnection]), + external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection]), name: String } end @@ -65,14 +65,14 @@ def test_fetch response = @orb.items.fetch("item_id") assert_pattern do - response => Orb::Models::Item + response => Orb::Item end assert_pattern do response => { id: String, created_at: Time, - external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Item::ExternalConnection]), + external_connections: ^(Orb::Internal::Type::ArrayOf[Orb::Item::ExternalConnection]), name: String } end diff --git a/test/orb/resources/metrics_test.rb b/test/orb/resources/metrics_test.rb index 646da18d..5be80c46 100644 --- a/test/orb/resources/metrics_test.rb +++ b/test/orb/resources/metrics_test.rb @@ -13,17 +13,17 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::BillableMetric + response => Orb::BillableMetric end assert_pattern do response => { id: String, description: String | nil, - item: Orb::Models::Item, + item: Orb::Item, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - status: Orb::Models::BillableMetric::Status + status: Orb::BillableMetric::Status } end end @@ -32,17 +32,17 @@ def test_update response = @orb.metrics.update("metric_id") assert_pattern do - response => Orb::Models::BillableMetric + response => Orb::BillableMetric end assert_pattern do response => { id: String, description: String | nil, - item: Orb::Models::Item, + item: Orb::Item, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - status: Orb::Models::BillableMetric::Status + status: Orb::BillableMetric::Status } end end @@ -58,17 +58,17 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::BillableMetric + row => Orb::BillableMetric end assert_pattern do row => { id: String, description: String | nil, - item: Orb::Models::Item, + item: Orb::Item, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - status: Orb::Models::BillableMetric::Status + status: Orb::BillableMetric::Status } end end @@ -77,17 +77,17 @@ def test_fetch response = @orb.metrics.fetch("metric_id") assert_pattern do - response => Orb::Models::BillableMetric + response => Orb::BillableMetric end assert_pattern do response => { id: String, description: String | nil, - item: Orb::Models::Item, + item: Orb::Item, metadata: ^(Orb::Internal::Type::HashOf[String]), name: String, - status: Orb::Models::BillableMetric::Status + status: Orb::BillableMetric::Status } end end diff --git a/test/orb/resources/plans/external_plan_id_test.rb b/test/orb/resources/plans/external_plan_id_test.rb index 326ee8d0..a1c60a68 100644 --- a/test/orb/resources/plans/external_plan_id_test.rb +++ b/test/orb/resources/plans/external_plan_id_test.rb @@ -7,34 +7,34 @@ def test_update response = @orb.plans.external_plan_id.update("external_plan_id") assert_pattern do - response => Orb::Models::Plan + response => Orb::Plan end assert_pattern do response => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end @@ -44,34 +44,34 @@ def test_fetch response = @orb.plans.external_plan_id.fetch("external_plan_id") assert_pattern do - response => Orb::Models::Plan + response => Orb::Plan end assert_pattern do response => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end diff --git a/test/orb/resources/plans_test.rb b/test/orb/resources/plans_test.rb index ee1f9998..17b263fd 100644 --- a/test/orb/resources/plans_test.rb +++ b/test/orb/resources/plans_test.rb @@ -20,34 +20,34 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::Plan + response => Orb::Plan end assert_pattern do response => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end @@ -57,34 +57,34 @@ def test_update response = @orb.plans.update("plan_id") assert_pattern do - response => Orb::Models::Plan + response => Orb::Plan end assert_pattern do response => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end @@ -101,34 +101,34 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Plan + row => Orb::Plan end assert_pattern do row => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end @@ -138,34 +138,34 @@ def test_fetch response = @orb.plans.fetch("plan_id") assert_pattern do - response => Orb::Models::Plan + response => Orb::Plan end assert_pattern do response => { id: String, - adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Plan::Adjustment]), - base_plan: Orb::Models::Plan::BasePlan | nil, + adjustments: ^(Orb::Internal::Type::ArrayOf[union: Orb::Plan::Adjustment]), + base_plan: Orb::Plan::BasePlan | nil, base_plan_id: String | nil, created_at: Time, currency: String, default_invoice_memo: String | nil, description: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_plan_id: String | nil, invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum | nil, + maximum: Orb::Plan::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Plan::Minimum | nil, + minimum: Orb::Plan::Minimum | nil, minimum_amount: String | nil, name: String, net_terms: Integer | nil, - plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Plan::PlanPhase]) | nil, - prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Price]), - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::Status, - trial_config: Orb::Models::Plan::TrialConfig, + plan_phases: ^(Orb::Internal::Type::ArrayOf[Orb::Plan::PlanPhase]) | nil, + prices: ^(Orb::Internal::Type::ArrayOf[union: Orb::Price]), + product: Orb::Plan::Product, + status: Orb::Plan::Status, + trial_config: Orb::Plan::TrialConfig, version: Integer } end diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index d648adc6..d6cc8bea 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -7,39 +7,39 @@ def test_update response = @orb.prices.external_price_id.update("external_price_id") assert_pattern do - response => Orb::Models::Price + response => Orb::Price end assert_pattern do case response - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -48,730 +48,730 @@ def test_update in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end @@ -781,39 +781,39 @@ def test_fetch response = @orb.prices.external_price_id.fetch("external_price_id") assert_pattern do - response => Orb::Models::Price + response => Orb::Price end assert_pattern do case response - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -822,730 +822,730 @@ def test_fetch in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 80888083..c1ae1aa1 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -15,39 +15,39 @@ def test_create_required_params ) assert_pattern do - response => Orb::Models::Price + response => Orb::Price end assert_pattern do case response - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -56,730 +56,730 @@ def test_create_required_params in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end @@ -789,39 +789,39 @@ def test_update response = @orb.prices.update("price_id") assert_pattern do - response => Orb::Models::Price + response => Orb::Price end assert_pattern do case response - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -830,730 +830,730 @@ def test_update in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end @@ -1570,39 +1570,39 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Price + row => Orb::Price end assert_pattern do case row - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -1611,730 +1611,730 @@ def test_list in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end @@ -2354,7 +2354,7 @@ def test_evaluate_required_params assert_pattern do response => { - data: ^(Orb::Internal::Type::ArrayOf[Orb::Models::EvaluatePriceGroup]) + data: ^(Orb::Internal::Type::ArrayOf[Orb::EvaluatePriceGroup]) } end end @@ -2363,39 +2363,39 @@ def test_fetch response = @orb.prices.fetch("price_id") assert_pattern do - response => Orb::Models::Price + response => Orb::Price end assert_pattern do case response - in Orb::Models::Price::Unit - in Orb::Models::Price::Package - in Orb::Models::Price::Matrix - in Orb::Models::Price::Tiered - in Orb::Models::Price::TieredBps - in Orb::Models::Price::Bps - in Orb::Models::Price::BulkBps - in Orb::Models::Price::Bulk - in Orb::Models::Price::ThresholdTotalAmount - in Orb::Models::Price::TieredPackage - in Orb::Models::Price::GroupedTiered - in Orb::Models::Price::TieredWithMinimum - in Orb::Models::Price::TieredPackageWithMinimum - in Orb::Models::Price::PackageWithAllocation - in Orb::Models::Price::UnitWithPercent - in Orb::Models::Price::MatrixWithAllocation - in Orb::Models::Price::TieredWithProration - in Orb::Models::Price::UnitWithProration - in Orb::Models::Price::GroupedAllocation - in Orb::Models::Price::GroupedWithProratedMinimum - in Orb::Models::Price::GroupedWithMeteredMinimum - in Orb::Models::Price::MatrixWithDisplayName - in Orb::Models::Price::BulkWithProration - in Orb::Models::Price::GroupedTieredPackage - in Orb::Models::Price::MaxGroupTieredPackage - in Orb::Models::Price::ScalableMatrixWithUnitPricing - in Orb::Models::Price::ScalableMatrixWithTieredPricing - in Orb::Models::Price::CumulativeGroupedBulk + in Orb::Price::Unit + in Orb::Price::Package + in Orb::Price::Matrix + in Orb::Price::Tiered + in Orb::Price::TieredBps + in Orb::Price::Bps + in Orb::Price::BulkBps + in Orb::Price::Bulk + in Orb::Price::ThresholdTotalAmount + in Orb::Price::TieredPackage + in Orb::Price::GroupedTiered + in Orb::Price::TieredWithMinimum + in Orb::Price::TieredPackageWithMinimum + in Orb::Price::PackageWithAllocation + in Orb::Price::UnitWithPercent + in Orb::Price::MatrixWithAllocation + in Orb::Price::TieredWithProration + in Orb::Price::UnitWithProration + in Orb::Price::GroupedAllocation + in Orb::Price::GroupedWithProratedMinimum + in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::MatrixWithDisplayName + in Orb::Price::BulkWithProration + in Orb::Price::GroupedTieredPackage + in Orb::Price::MaxGroupTieredPackage + in Orb::Price::ScalableMatrixWithUnitPricing + in Orb::Price::ScalableMatrixWithTieredPricing + in Orb::Price::CumulativeGroupedBulk end end @@ -2404,730 +2404,730 @@ def test_fetch in { model_type: :unit, id: String, - billable_metric: Orb::Models::Price::Unit::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Unit::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::Cadence, + billable_metric: Orb::Price::Unit::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Unit::BillingCycleConfiguration, + cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Unit::CreditAllocation | nil, + credit_allocation: Orb::Price::Unit::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Unit::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Unit::Item, - maximum: Orb::Models::Price::Unit::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Unit::InvoicingCycleConfiguration | nil, + item: Orb::Price::Unit::Item, + maximum: Orb::Price::Unit::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Unit::Minimum | nil, + minimum: Orb::Price::Unit::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Unit::PriceType, - unit_config: Orb::Models::Price::Unit::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::Unit::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Unit::PriceType, + unit_config: Orb::Price::Unit::UnitConfig, + dimensional_price_configuration: Orb::Price::Unit::DimensionalPriceConfiguration | nil } in { model_type: :package, id: String, - billable_metric: Orb::Models::Price::Package::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Package::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::Cadence, + billable_metric: Orb::Price::Package::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Package::BillingCycleConfiguration, + cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Package::CreditAllocation | nil, + credit_allocation: Orb::Price::Package::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Package::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Package::Item, - maximum: Orb::Models::Price::Package::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Package::InvoicingCycleConfiguration | nil, + item: Orb::Price::Package::Item, + maximum: Orb::Price::Package::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Package::Minimum | nil, + minimum: Orb::Price::Package::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::Models::Price::Package::PackageConfig, + package_config: Orb::Price::Package::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Package::PriceType, - dimensional_price_configuration: Orb::Models::Price::Package::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Package::PriceType, + dimensional_price_configuration: Orb::Price::Package::DimensionalPriceConfiguration | nil } in { model_type: :matrix, id: String, - billable_metric: Orb::Models::Price::Matrix::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Matrix::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::Cadence, + billable_metric: Orb::Price::Matrix::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Matrix::BillingCycleConfiguration, + cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Matrix::CreditAllocation | nil, + credit_allocation: Orb::Price::Matrix::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Matrix::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Matrix::Item, - matrix_config: Orb::Models::Price::Matrix::MatrixConfig, - maximum: Orb::Models::Price::Matrix::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Matrix::InvoicingCycleConfiguration | nil, + item: Orb::Price::Matrix::Item, + matrix_config: Orb::Price::Matrix::MatrixConfig, + maximum: Orb::Price::Matrix::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Matrix::Minimum | nil, + minimum: Orb::Price::Matrix::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Matrix::PriceType, - dimensional_price_configuration: Orb::Models::Price::Matrix::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Matrix::PriceType, + dimensional_price_configuration: Orb::Price::Matrix::DimensionalPriceConfiguration | nil } in { model_type: :tiered, id: String, - billable_metric: Orb::Models::Price::Tiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Tiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::Cadence, + billable_metric: Orb::Price::Tiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Tiered::BillingCycleConfiguration, + cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Tiered::CreditAllocation | nil, + credit_allocation: Orb::Price::Tiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Tiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Tiered::Item, - maximum: Orb::Models::Price::Tiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Tiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::Tiered::Item, + maximum: Orb::Price::Tiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Tiered::Minimum | nil, + minimum: Orb::Price::Tiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Tiered::PriceType, - tiered_config: Orb::Models::Price::Tiered::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::Tiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Tiered::PriceType, + tiered_config: Orb::Price::Tiered::TieredConfig, + dimensional_price_configuration: Orb::Price::Tiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_bps, id: String, - billable_metric: Orb::Models::Price::TieredBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredBps::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBps::Cadence, + billable_metric: Orb::Price::TieredBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredBps::BillingCycleConfiguration, + cadence: Orb::Price::TieredBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredBps::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredBps::Item, - maximum: Orb::Models::Price::TieredBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredBps::Item, + maximum: Orb::Price::TieredBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredBps::Minimum | nil, + minimum: Orb::Price::TieredBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredBps::PriceType, - tiered_bps_config: Orb::Models::Price::TieredBps::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::TieredBps::PriceType, + tiered_bps_config: Orb::Price::TieredBps::TieredBpsConfig, + dimensional_price_configuration: Orb::Price::TieredBps::DimensionalPriceConfiguration | nil } in { model_type: :bps, id: String, - billable_metric: Orb::Models::Price::Bps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bps::BillingCycleConfiguration, - bps_config: Orb::Models::Price::Bps::BpsConfig, - cadence: Orb::Models::Price::Bps::Cadence, + billable_metric: Orb::Price::Bps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bps::BillingCycleConfiguration, + bps_config: Orb::Price::Bps::BpsConfig, + cadence: Orb::Price::Bps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bps::CreditAllocation | nil, + credit_allocation: Orb::Price::Bps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bps::Item, - maximum: Orb::Models::Price::Bps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bps::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bps::Item, + maximum: Orb::Price::Bps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bps::Minimum | nil, + minimum: Orb::Price::Bps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bps::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bps::PriceType, + dimensional_price_configuration: Orb::Price::Bps::DimensionalPriceConfiguration | nil } in { model_type: :bulk_bps, id: String, - billable_metric: Orb::Models::Price::BulkBps::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkBps::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBps::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBps::Cadence, + billable_metric: Orb::Price::BulkBps::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkBps::BillingCycleConfiguration, + bulk_bps_config: Orb::Price::BulkBps::BulkBpsConfig, + cadence: Orb::Price::BulkBps::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkBps::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkBps::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkBps::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkBps::Item, - maximum: Orb::Models::Price::BulkBps::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkBps::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkBps::Item, + maximum: Orb::Price::BulkBps::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkBps::Minimum | nil, + minimum: Orb::Price::BulkBps::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkBps::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkBps::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkBps::PriceType, + dimensional_price_configuration: Orb::Price::BulkBps::DimensionalPriceConfiguration | nil } in { model_type: :bulk, id: String, - billable_metric: Orb::Models::Price::Bulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::Bulk::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::Bulk::BulkConfig, - cadence: Orb::Models::Price::Bulk::Cadence, + billable_metric: Orb::Price::Bulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::Bulk::BillingCycleConfiguration, + bulk_config: Orb::Price::Bulk::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::Bulk::CreditAllocation | nil, + credit_allocation: Orb::Price::Bulk::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::Bulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::Bulk::Item, - maximum: Orb::Models::Price::Bulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::Bulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::Bulk::Item, + maximum: Orb::Price::Bulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::Bulk::Minimum | nil, + minimum: Orb::Price::Bulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::Bulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::Bulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::Bulk::PriceType, + dimensional_price_configuration: Orb::Price::Bulk::DimensionalPriceConfiguration | nil } in { model_type: :threshold_total_amount, id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmount::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmount::Cadence, + billable_metric: Orb::Price::ThresholdTotalAmount::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ThresholdTotalAmount::BillingCycleConfiguration, + cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmount::CreditAllocation | nil, + credit_allocation: Orb::Price::ThresholdTotalAmount::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ThresholdTotalAmount::Item, - maximum: Orb::Models::Price::ThresholdTotalAmount::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ThresholdTotalAmount::InvoicingCycleConfiguration | nil, + item: Orb::Price::ThresholdTotalAmount::Item, + maximum: Orb::Price::ThresholdTotalAmount::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ThresholdTotalAmount::Minimum | nil, + minimum: Orb::Price::ThresholdTotalAmount::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ThresholdTotalAmount::PriceType, + price_type: Orb::Price::ThresholdTotalAmount::PriceType, threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ThresholdTotalAmount::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package, id: String, - billable_metric: Orb::Models::Price::TieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackage::Cadence, + billable_metric: Orb::Price::TieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackage::Item, - maximum: Orb::Models::Price::TieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackage::Item, + maximum: Orb::Price::TieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackage::Minimum | nil, + minimum: Orb::Price::TieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackage::PriceType, + price_type: Orb::Price::TieredPackage::PriceType, tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackage::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered, id: String, - billable_metric: Orb::Models::Price::GroupedTiered::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTiered::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::Cadence, + billable_metric: Orb::Price::GroupedTiered::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTiered::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTiered::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTiered::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTiered::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTiered::Item, - maximum: Orb::Models::Price::GroupedTiered::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTiered::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTiered::Item, + maximum: Orb::Price::GroupedTiered::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTiered::Minimum | nil, + minimum: Orb::Price::GroupedTiered::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTiered::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTiered::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTiered::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTiered::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::Cadence, + billable_metric: Orb::Price::TieredWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithMinimum::Item, - maximum: Orb::Models::Price::TieredWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithMinimum::Item, + maximum: Orb::Price::TieredWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :tiered_package_with_minimum, id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimum::Cadence, + billable_metric: Orb::Price::TieredPackageWithMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::BillingCycleConfiguration, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredPackageWithMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredPackageWithMinimum::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredPackageWithMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredPackageWithMinimum::Item, + maximum: Orb::Price::TieredPackageWithMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredPackageWithMinimum::Minimum | nil, + minimum: Orb::Price::TieredPackageWithMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredPackageWithMinimum::PriceType, + price_type: Orb::Price::TieredPackageWithMinimum::PriceType, tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredPackageWithMinimum::DimensionalPriceConfiguration | nil } in { model_type: :package_with_allocation, id: String, - billable_metric: Orb::Models::Price::PackageWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocation::Cadence, + billable_metric: Orb::Price::PackageWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::PackageWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::PackageWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::PackageWithAllocation::Item, - maximum: Orb::Models::Price::PackageWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::PackageWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::PackageWithAllocation::Item, + maximum: Orb::Price::PackageWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::PackageWithAllocation::Minimum | nil, + minimum: Orb::Price::PackageWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::PackageWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::PackageWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::PackageWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_percent, id: String, - billable_metric: Orb::Models::Price::UnitWithPercent::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercent::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercent::Cadence, + billable_metric: Orb::Price::UnitWithPercent::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithPercent::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercent::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithPercent::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithPercent::Item, - maximum: Orb::Models::Price::UnitWithPercent::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithPercent::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithPercent::Item, + maximum: Orb::Price::UnitWithPercent::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithPercent::Minimum | nil, + minimum: Orb::Price::UnitWithPercent::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithPercent::PriceType, + price_type: Orb::Price::UnitWithPercent::PriceType, unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithPercent::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithPercent::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_allocation, id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocation::Cadence, + billable_metric: Orb::Price::MatrixWithAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithAllocation::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithAllocation::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocation::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::MatrixWithAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithAllocation::Item, + matrix_with_allocation_config: Orb::Price::MatrixWithAllocation::MatrixWithAllocationConfig, + maximum: Orb::Price::MatrixWithAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithAllocation::Minimum | nil, + minimum: Orb::Price::MatrixWithAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithAllocation::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithAllocation::DimensionalPriceConfiguration | nil } in { model_type: :tiered_with_proration, id: String, - billable_metric: Orb::Models::Price::TieredWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::TieredWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProration::Cadence, + billable_metric: Orb::Price::TieredWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::TieredWithProration::BillingCycleConfiguration, + cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::TieredWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::TieredWithProration::Item, - maximum: Orb::Models::Price::TieredWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::TieredWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::TieredWithProration::Item, + maximum: Orb::Price::TieredWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::TieredWithProration::Minimum | nil, + minimum: Orb::Price::TieredWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::TieredWithProration::PriceType, + price_type: Orb::Price::TieredWithProration::PriceType, tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::TieredWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::TieredWithProration::DimensionalPriceConfiguration | nil } in { model_type: :unit_with_proration, id: String, - billable_metric: Orb::Models::Price::UnitWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::UnitWithProration::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProration::Cadence, + billable_metric: Orb::Price::UnitWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::UnitWithProration::BillingCycleConfiguration, + cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::UnitWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::UnitWithProration::Item, - maximum: Orb::Models::Price::UnitWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::UnitWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::UnitWithProration::Item, + maximum: Orb::Price::UnitWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::UnitWithProration::Minimum | nil, + minimum: Orb::Price::UnitWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::UnitWithProration::PriceType, + price_type: Orb::Price::UnitWithProration::PriceType, unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::UnitWithProration::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::UnitWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_allocation, id: String, - billable_metric: Orb::Models::Price::GroupedAllocation::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocation::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocation::Cadence, + billable_metric: Orb::Price::GroupedAllocation::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedAllocation::BillingCycleConfiguration, + cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocation::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedAllocation::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedAllocation::Item, - maximum: Orb::Models::Price::GroupedAllocation::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedAllocation::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedAllocation::Item, + maximum: Orb::Price::GroupedAllocation::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedAllocation::Minimum | nil, + minimum: Orb::Price::GroupedAllocation::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedAllocation::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocation::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedAllocation::PriceType, + dimensional_price_configuration: Orb::Price::GroupedAllocation::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_prorated_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithProratedMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithProratedMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithProratedMinimum::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithProratedMinimum::Item, + maximum: Orb::Price::GroupedWithProratedMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithProratedMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithProratedMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithProratedMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithProratedMinimum::DimensionalPriceConfiguration | nil } in { model_type: :grouped_with_metered_minimum, id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimum::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::Cadence, + billable_metric: Orb::Price::GroupedWithMeteredMinimum::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedWithMeteredMinimum::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedWithMeteredMinimum::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimum::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedWithMeteredMinimum::Item, + maximum: Orb::Price::GroupedWithMeteredMinimum::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedWithMeteredMinimum::Minimum | nil, + minimum: Orb::Price::GroupedWithMeteredMinimum::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedWithMeteredMinimum::PriceType, + dimensional_price_configuration: Orb::Price::GroupedWithMeteredMinimum::DimensionalPriceConfiguration | nil } in { model_type: :matrix_with_display_name, id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayName::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::Cadence, + billable_metric: Orb::Price::MatrixWithDisplayName::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MatrixWithDisplayName::BillingCycleConfiguration, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayName::CreditAllocation | nil, + credit_allocation: Orb::Price::MatrixWithDisplayName::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MatrixWithDisplayName::Item, + invoicing_cycle_configuration: Orb::Price::MatrixWithDisplayName::InvoicingCycleConfiguration | nil, + item: Orb::Price::MatrixWithDisplayName::Item, matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MatrixWithDisplayName::Maximum | nil, + maximum: Orb::Price::MatrixWithDisplayName::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MatrixWithDisplayName::Minimum | nil, + minimum: Orb::Price::MatrixWithDisplayName::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MatrixWithDisplayName::PriceType, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MatrixWithDisplayName::PriceType, + dimensional_price_configuration: Orb::Price::MatrixWithDisplayName::DimensionalPriceConfiguration | nil } in { model_type: :bulk_with_proration, id: String, - billable_metric: Orb::Models::Price::BulkWithProration::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::BulkWithProration::BillingCycleConfiguration, + billable_metric: Orb::Price::BulkWithProration::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::BulkWithProration::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Models::Price::BulkWithProration::Cadence, + cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProration::CreditAllocation | nil, + credit_allocation: Orb::Price::BulkWithProration::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProration::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::BulkWithProration::Item, - maximum: Orb::Models::Price::BulkWithProration::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::BulkWithProration::InvoicingCycleConfiguration | nil, + item: Orb::Price::BulkWithProration::Item, + maximum: Orb::Price::BulkWithProration::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::BulkWithProration::Minimum | nil, + minimum: Orb::Price::BulkWithProration::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::BulkWithProration::PriceType, - dimensional_price_configuration: Orb::Models::Price::BulkWithProration::DimensionalPriceConfiguration | nil + price_type: Orb::Price::BulkWithProration::PriceType, + dimensional_price_configuration: Orb::Price::BulkWithProration::DimensionalPriceConfiguration | nil } in { model_type: :grouped_tiered_package, id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::Cadence, + billable_metric: Orb::Price::GroupedTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::GroupedTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::GroupedTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::GroupedTieredPackage::Item, - maximum: Orb::Models::Price::GroupedTieredPackage::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::GroupedTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::GroupedTieredPackage::Item, + maximum: Orb::Price::GroupedTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::GroupedTieredPackage::Minimum | nil, + minimum: Orb::Price::GroupedTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::GroupedTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::GroupedTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::GroupedTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :max_group_tiered_package, id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackage::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::Cadence, + billable_metric: Orb::Price::MaxGroupTieredPackage::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::BillingCycleConfiguration, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackage::CreditAllocation | nil, + credit_allocation: Orb::Price::MaxGroupTieredPackage::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::MaxGroupTieredPackage::Item, + invoicing_cycle_configuration: Orb::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration | nil, + item: Orb::Price::MaxGroupTieredPackage::Item, max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - maximum: Orb::Models::Price::MaxGroupTieredPackage::Maximum | nil, + maximum: Orb::Price::MaxGroupTieredPackage::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::MaxGroupTieredPackage::Minimum | nil, + minimum: Orb::Price::MaxGroupTieredPackage::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::MaxGroupTieredPackage::PriceType, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil + price_type: Orb::Price::MaxGroupTieredPackage::PriceType, + dimensional_price_configuration: Orb::Price::MaxGroupTieredPackage::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_unit_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithUnitPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithUnitPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithUnitPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithUnitPricing::Item, + maximum: Orb::Price::ScalableMatrixWithUnitPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithUnitPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithUnitPricing::DimensionalPriceConfiguration | nil } in { model_type: :scalable_matrix_with_tiered_pricing, id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence, + billable_metric: Orb::Price::ScalableMatrixWithTieredPricing::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration, + cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, + credit_allocation: Orb::Price::ScalableMatrixWithTieredPricing::CreditAllocation | nil, currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::ScalableMatrixWithTieredPricing::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration | nil, + item: Orb::Price::ScalableMatrixWithTieredPricing::Item, + maximum: Orb::Price::ScalableMatrixWithTieredPricing::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricing::Minimum | nil, + minimum: Orb::Price::ScalableMatrixWithTieredPricing::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType, + price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil + dimensional_price_configuration: Orb::Price::ScalableMatrixWithTieredPricing::DimensionalPriceConfiguration | nil } in { model_type: :cumulative_grouped_bulk, id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulk::BillableMetric | nil, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::Cadence, + billable_metric: Orb::Price::CumulativeGroupedBulk::BillableMetric | nil, + billing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::BillingCycleConfiguration, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulk::CreditAllocation | nil, + credit_allocation: Orb::Price::CumulativeGroupedBulk::CreditAllocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), currency: String, - discount: Orb::Models::Discount | nil, + discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, - item: Orb::Models::Price::CumulativeGroupedBulk::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulk::Maximum | nil, + invoicing_cycle_configuration: Orb::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration | nil, + item: Orb::Price::CumulativeGroupedBulk::Item, + maximum: Orb::Price::CumulativeGroupedBulk::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Models::Price::CumulativeGroupedBulk::Minimum | nil, + minimum: Orb::Price::CumulativeGroupedBulk::Minimum | nil, minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Models::Price::CumulativeGroupedBulk::PriceType, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil + price_type: Orb::Price::CumulativeGroupedBulk::PriceType, + dimensional_price_configuration: Orb::Price::CumulativeGroupedBulk::DimensionalPriceConfiguration | nil } end end diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index 2dea7bdb..7131ac07 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -21,7 +21,7 @@ def test_create created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionCreateResponse::DiscountInterval]), end_date: Time | nil, @@ -32,7 +32,7 @@ def test_create minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCreateResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon | nil, start_date: Time, @@ -47,37 +47,37 @@ def test_update response = @orb.subscriptions.update("subscription_id") assert_pattern do - response => Orb::Models::Subscription + response => Orb::Subscription end assert_pattern do response => { id: String, active_plan_phase_order: Integer | nil, - adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), + adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval]), auto_collection: Orb::Internal::Type::Boolean | nil, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, - discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Subscription::DiscountInterval]), + discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval]), end_date: Time | nil, - fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::FixedFeeQuantitySchedule]), + fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule]), invoicing_threshold: String | nil, - maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MaximumInterval]), + maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval]), metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MinimumInterval]), + minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval]), net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, - price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval]), - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon | nil, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange | nil, + plan: Orb::Plan, + price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval]), + redeemed_coupon: Orb::Subscription::RedeemedCoupon | nil, start_date: Time, - status: Orb::Models::Subscription::Status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::Status, + trial_info: Orb::Subscription::TrialInfo } end end @@ -93,37 +93,37 @@ def test_list return if row.nil? assert_pattern do - row => Orb::Models::Subscription + row => Orb::Subscription end assert_pattern do row => { id: String, active_plan_phase_order: Integer | nil, - adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), + adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval]), auto_collection: Orb::Internal::Type::Boolean | nil, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, - discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Subscription::DiscountInterval]), + discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval]), end_date: Time | nil, - fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::FixedFeeQuantitySchedule]), + fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule]), invoicing_threshold: String | nil, - maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MaximumInterval]), + maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval]), metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MinimumInterval]), + minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval]), net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, - price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval]), - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon | nil, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange | nil, + plan: Orb::Plan, + price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval]), + redeemed_coupon: Orb::Subscription::RedeemedCoupon | nil, start_date: Time, - status: Orb::Models::Subscription::Status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::Status, + trial_info: Orb::Subscription::TrialInfo } end end @@ -146,7 +146,7 @@ def test_cancel_required_params created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionCancelResponse::DiscountInterval]), end_date: Time | nil, @@ -157,7 +157,7 @@ def test_cancel_required_params minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCancelResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionCancelResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionCancelResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon | nil, start_date: Time, @@ -172,37 +172,37 @@ def test_fetch response = @orb.subscriptions.fetch("subscription_id") assert_pattern do - response => Orb::Models::Subscription + response => Orb::Subscription end assert_pattern do response => { id: String, active_plan_phase_order: Integer | nil, - adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::AdjustmentInterval]), + adjustment_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::AdjustmentInterval]), auto_collection: Orb::Internal::Type::Boolean | nil, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: Orb::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, - discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::Subscription::DiscountInterval]), + discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Subscription::DiscountInterval]), end_date: Time | nil, - fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::FixedFeeQuantitySchedule]), + fixed_fee_quantity_schedule: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::FixedFeeQuantitySchedule]), invoicing_threshold: String | nil, - maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MaximumInterval]), + maximum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MaximumInterval]), metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::MinimumInterval]), + minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::MinimumInterval]), net_terms: Integer, - pending_subscription_change: Orb::Models::Subscription::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, - price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::Subscription::PriceInterval]), - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon | nil, + pending_subscription_change: Orb::Subscription::PendingSubscriptionChange | nil, + plan: Orb::Plan, + price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Subscription::PriceInterval]), + redeemed_coupon: Orb::Subscription::RedeemedCoupon | nil, start_date: Time, - status: Orb::Models::Subscription::Status, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Subscription::Status, + trial_info: Orb::Subscription::TrialInfo } end end @@ -251,13 +251,13 @@ def test_fetch_usage response = @orb.subscriptions.fetch_usage("subscription_id") assert_pattern do - response => Orb::Models::SubscriptionUsage + response => Orb::SubscriptionUsage end assert_pattern do case response - in Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage - in Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + in Orb::SubscriptionUsage::UngroupedSubscriptionUsage + in Orb::SubscriptionUsage::GroupedSubscriptionUsage end end end @@ -282,7 +282,7 @@ def test_price_intervals created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval]), end_date: Time | nil, @@ -293,7 +293,7 @@ def test_price_intervals minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionPriceIntervalsResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon | nil, start_date: Time, @@ -322,7 +322,7 @@ def test_schedule_plan_change_required_params created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval]), end_date: Time | nil, @@ -333,7 +333,7 @@ def test_schedule_plan_change_required_params minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionSchedulePlanChangeResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon | nil, start_date: Time, @@ -362,7 +362,7 @@ def test_trigger_phase created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval]), end_date: Time | nil, @@ -373,7 +373,7 @@ def test_trigger_phase minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionTriggerPhaseResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon | nil, start_date: Time, @@ -402,7 +402,7 @@ def test_unschedule_cancellation created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval]), end_date: Time | nil, @@ -413,7 +413,7 @@ def test_unschedule_cancellation minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleCancellationResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon | nil, start_date: Time, @@ -443,7 +443,7 @@ def test_unschedule_fixed_fee_quantity_updates_required_params created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval]), end_date: Time | nil, @@ -454,7 +454,7 @@ def test_unschedule_fixed_fee_quantity_updates_required_params minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon | nil, start_date: Time, @@ -483,7 +483,7 @@ def test_unschedule_pending_plan_changes created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval]), end_date: Time | nil, @@ -494,7 +494,7 @@ def test_unschedule_pending_plan_changes minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon | nil, start_date: Time, @@ -524,7 +524,7 @@ def test_update_fixed_fee_quantity_required_params created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval]), end_date: Time | nil, @@ -535,7 +535,7 @@ def test_update_fixed_fee_quantity_required_params minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon | nil, start_date: Time, @@ -564,7 +564,7 @@ def test_update_trial_required_params created_at: Time, current_billing_period_end_date: Time | nil, current_billing_period_start_date: Time | nil, - customer: Orb::Models::Customer, + customer: Orb::Customer, default_invoice_memo: String | nil, discount_intervals: ^(Orb::Internal::Type::ArrayOf[union: Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval]), end_date: Time | nil, @@ -575,7 +575,7 @@ def test_update_trial_required_params minimum_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]), net_terms: Integer, pending_subscription_change: Orb::Models::SubscriptionUpdateTrialResponse::PendingSubscriptionChange | nil, - plan: Orb::Models::Plan, + plan: Orb::Plan, price_intervals: ^(Orb::Internal::Type::ArrayOf[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]), redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon | nil, start_date: Time, From ae043f949a3d78fbe287ffcf3282b90cde0c894f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 14:17:30 +0000 Subject: [PATCH 4/4] release: 0.3.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ README.md | 2 +- lib/orb/version.rb | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cce92405..dbe5ddf4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.3.1" + ".": "0.3.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 062e8f3d..38672b1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.3.2 (2025-05-07) + +Full Changelog: [v0.3.1...v0.3.2](https://github.com/orbcorp/orb-ruby/compare/v0.3.1...v0.3.2) + +### Bug Fixes + +* **internal:** ensure formatting always uses c.utf-8 locale ([c4cc44a](https://github.com/orbcorp/orb-ruby/commit/c4cc44a8e280089938586de353b08e8091056ca0)) + + +### Chores + +* **internal:** version bump ([fede0e6](https://github.com/orbcorp/orb-ruby/commit/fede0e64ca4753cc961e8308ddcef2b39dcb6f24)) +* revert ignoring Gemfile.lock ([e572719](https://github.com/orbcorp/orb-ruby/commit/e572719854490cfa7735dcc70d9cfd1dc4d4a122)) + ## 0.3.1 (2025-05-06) Full Changelog: [v0.3.0...v0.3.1](https://github.com/orbcorp/orb-ruby/compare/v0.3.0...v0.3.1) diff --git a/README.md b/README.md index fabbe447..520f4f4f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "orb-billing", "~> 0.3.1" +gem "orb-billing", "~> 0.3.2" ``` diff --git a/lib/orb/version.rb b/lib/orb/version.rb index e7e19699..e393901f 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.3.1" + VERSION = "0.3.2" end